ExpresionToApply not working for inserts

Posts   
 
    
YvesVD
User
Posts: 177
Joined: 19-Oct-2006
# Posted on: 25-Mar-2008 12:45:57   

Hi,

I want to use a function call in an Oracle insert statement. INSERT INTO TAG_BEROEP (DT_WIJZ) VALUES (GetDate())

I've coded the following line but nothing happens clientEntity.Fields[TagBeroepFields.DtWijz.FieldIndex].ExpressionToApply = QueryHelper.GetDate();

    public static IExpression GetDate()
    {
        return new DbFunctionCall("GetDate", null);
    }

Should this also work for updates ?

Thanks in advance

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39903
Joined: 17-Aug-2003
# Posted on: 25-Mar-2008 17:35:11   

It's not supported for inserts. It's on our todo list, but we don't have a final date when / if it will be available. It's not scheduled for addition in v2.6

Frans Bouma | Lead developer LLBLGen Pro
YvesVD
User
Posts: 177
Joined: 19-Oct-2006
# Posted on: 07-Apr-2008 10:32:08   

Actually, we migrated from version 2.0 to 2.5 and those problems occured after migration. Are there no other ways to add an expression in an insert statement ?

Thanks in advance

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 07-Apr-2008 10:49:47   

This is not supported yet. You can workaround this by adding GetDate() as a default to the database field.