diff --git a/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/SQLStoreQuery.java b/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/SQLStoreQuery.java index b1378e651..12db989ba 100644 --- a/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/SQLStoreQuery.java +++ b/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/SQLStoreQuery.java @@ -346,7 +346,7 @@ public class SQLStoreQuery for (Integer key : paramOrder) { if (!userParams.containsKey(key)) throw new UserException(_loc.get("uparam-missing", - sql, key, userParams)); + key, sql, userParams)); result[idx++] = userParams.get(key); } // modify original JPA-style SQL to proper SQL