From 68d48f948e8bf1f47648179fe0680040d1f23b1f Mon Sep 17 00:00:00 2001 From: "Kevin W. Sutter" Date: Thu, 20 Nov 2008 21:48:54 +0000 Subject: [PATCH] OPENJPA-774. Committing the patch provided by Alexey Ousov in trunk and the 1.3.x branch. git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@719388 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/openjpa/jdbc/kernel/SQLStoreQuery.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 5356a01a8..17202786e 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 @@ -242,8 +242,11 @@ public class SQLStoreQuery PreparedStatement stmnt = null; try { - stmnt = prepareCall(conn, buf); - + if (_call) + stmnt = prepareCall(conn, buf); + else + stmnt = prepareStatement(conn, buf); + buf.setParameters(paramList); if (stmnt != null) buf.setParameters(stmnt);