cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrus Adamchik <and...@objectstyle.org>
Subject Re: Nested #chain directives
Date Tue, 01 Apr 2008 08:36:30 GMT
Never tried this... So what SQL do you you in the logs for this  
statement?

Andrus

On Mar 31, 2008, at 8:56 PM, Dan Morgan wrote:

> Can #chain directives be nested, as in:
>
> #chain( 'OR' 'WHERE' ) #chain( 'AND' ) (#chunk($someValue)  
> someColumn > #bind($someValue 'INTEGER') #end #chunk($someValue2)  
> someColumn2 <= #bind($someValue2 'INTEGER') #end) #end  
> #chain( 'AND' ) (#chunk($someValue3) someColumn3 > #bind($someValue3  
> 'INTEGER') #end #chunk($someValue4) someColumn4 <= #bind($someValue4  
> 'INTEGER') #end) #end #end
>
> Thanks,
>
> Daniel L. Morgan
> EMail      : <dmorgan@ihomefinder.com<mailto:dmorgan@ihomefinder.com>>
>
>
>


Mime
View raw message