Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
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'