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
This commit is contained in:
Kevin W. Sutter 2008-11-20 21:48:54 +00:00
parent bb937f3634
commit 68d48f948e
1 changed files with 5 additions and 2 deletions

View File

@ -242,7 +242,10 @@ public class SQLStoreQuery
PreparedStatement stmnt = null; PreparedStatement stmnt = null;
try { try {
if (_call)
stmnt = prepareCall(conn, buf); stmnt = prepareCall(conn, buf);
else
stmnt = prepareStatement(conn, buf);
buf.setParameters(paramList); buf.setParameters(paramList);
if (stmnt != null) if (stmnt != null)