openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mprud...@apache.org
Subject svn commit: r524939 - /incubator/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/QueryImpl.java
Date Mon, 02 Apr 2007 21:59:22 GMT
Author: mprudhom
Date: Mon Apr  2 14:59:21 2007
New Revision: 524939

URL: http://svn.apache.org/viewvc?view=rev&rev=524939
Log:
OPENJPA-196 Removed the requirement that the number of positional parameters assigned to a
query correspond exactly to the number of positional parameters declared in that query.

Modified:
    incubator/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/QueryImpl.java

Modified: incubator/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/QueryImpl.java
URL: http://svn.apache.org/viewvc/incubator/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/QueryImpl.java?view=diff&rev=524939&r1=524938&r2=524939
==============================================================================
--- incubator/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/QueryImpl.java
(original)
+++ incubator/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/QueryImpl.java
Mon Apr  2 14:59:21 2007
@@ -1661,9 +1661,6 @@
         if (typeCount > params.length)
             throw new UserException(_loc.get("unbound-params",
                 paramTypes.keySet()));
-        if (typeCount < params.length)
-            throw new UserException(_loc.get("extra-params", new Object[]
-                { String.valueOf(typeCount), String.valueOf(params.length) }));
 
         Iterator itr = paramTypes.entrySet().iterator();
         Map.Entry entry;



Mime
View raw message