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:
Marc Prud'hommeaux 2006-12-17 01:10:19 +00:00
parent 25988d2793
commit fee371db06
1 changed files with 1 additions and 1 deletions

View File

@ -825,7 +825,7 @@ public class JPQLExpressionBuilder
// special case for <value> IN (<subquery>) or
// <value> IN (<single value>)
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
// do not have support for IN expressions