You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Andrus Adamchik (JIRA)" <ji...@apache.org> on 2013/07/29 12:17:50 UTC

[jira] [Created] (CAY-1856) Expression.expWithParameters does not work when parameters are placed in the inline collection

Andrus Adamchik created CAY-1856:
------------------------------------

             Summary: Expression.expWithParameters does not work when parameters are placed in the inline collection
                 Key: CAY-1856
                 URL: https://issues.apache.org/jira/browse/CAY-1856
             Project: Cayenne
          Issue Type: Improvement
          Components: Core Library
            Reporter: Andrus Adamchik
            Assignee: Andrus Adamchik
             Fix For: 3.2M2


Per http://cayenne.apache.org/docs/3.1/cayenne-guide/expressions-bnf.html "IN" expression supports binding to both a list parameter and an explicit list of scalars (each scalar can be a parameter) :

"in" ( namedParameter | "(" scalarCommaList ")" ) 

I.e. both these forms are valid:

"a in $list"
"a in ($v1, $v2, $v3, 'bla')"

The second form doesn't work - parameters are not bound when calling 'Expression.expWithParameters'

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira