Re: Nested #chain directives

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Tue Apr 01 2008 - 04:36:30 EDT

  • Next message: Andrus Adamchik: "Re: How to propoerly close context db connection"

    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 : <dmorga..homefinder.com<mailto:dmorgan@ihomefinder.com>>
    >
    >
    >



    This archive was generated by hypermail 2.0.0 : Tue Apr 01 2008 - 04:37:05 EDT