Column in expression

Posts   
 
    
Mennisujay
User
Posts: 11
Joined: 25-Feb-2005
# Posted on: 21-Jun-2005 15:06:43   

hi Otis,

Can you please tell me what will be the predicate expressions for the where clause of query below

select * from tblActivity where DATEADD(mi, -nMinutesToRemind, DtDue) > '6/21/2005 20:00:00'

here, DtDue and nMinutesToRemind both belongs to tblActivity.

Regards Sujay

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 21-Jun-2005 17:38:43   

SQL functions like DateADD aren't supported at the moment.

Sometimes you can work around it, by using normal arithmetic, but you add minutes, so that's not supported. You can try to write your own predicate class, derived from 'Predicate' in the ormsupportclasses, similar to for example FieldCompareValuePredicate.

Frans Bouma | Lead developer LLBLGen Pro