mirror of https://github.com/apache/openjpa.git
Put in missing check for a NOT clause when short-circuiting an IN expression that has a single value.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@487926 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
25988d2793
commit
fee371db06
|
@ -825,7 +825,7 @@ public class JPQLExpressionBuilder
|
||||||
// special case for <value> IN (<subquery>) or
|
// special case for <value> IN (<subquery>) or
|
||||||
// <value> IN (<single value>)
|
// <value> IN (<single value>)
|
||||||
if (!(val2 instanceof Literal) && node.getChildCount() == 2)
|
if (!(val2 instanceof Literal) && node.getChildCount() == 2)
|
||||||
return factory.contains(val2, val1);
|
return evalNot(not, factory.contains(val2, val1));
|
||||||
|
|
||||||
// this is currently a sequence of OR expressions, since we
|
// this is currently a sequence of OR expressions, since we
|
||||||
// do not have support for IN expressions
|
// do not have support for IN expressions
|
||||||
|
|
Loading…
Reference in New Issue