From 837638b91b320139aae84df052335c4c8f0f240f Mon Sep 17 00:00:00 2001 From: "Richard G. Curtis" Date: Thu, 20 Sep 2012 17:55:21 +0000 Subject: [PATCH] OPENJPA-2264: Change PreparedStatementManagerImpl.logSQLWarnings to take a Statement rather than a PreparedStatement. git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1388137 13f79535-47bb-0310-9956-ffa450edef68 --- .../openjpa/jdbc/kernel/PreparedStatementManagerImpl.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/PreparedStatementManagerImpl.java b/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/PreparedStatementManagerImpl.java index d3cabcad1..299923338 100644 --- a/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/PreparedStatementManagerImpl.java +++ b/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/PreparedStatementManagerImpl.java @@ -23,6 +23,7 @@ import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.SQLWarning; +import java.sql.Statement; import java.util.ArrayList; import java.util.Collection; import java.util.LinkedList; @@ -293,7 +294,7 @@ public class PreparedStatementManagerImpl * Provided the JDBC log category is logging warnings, this method will * log any SQL warnings that result from the execution of a SQL statement. */ - protected void logSQLWarnings(PreparedStatement stmt) { + protected void logSQLWarnings(Statement stmt) { if (stmt != null && _log != null && _log.isTraceEnabled()) { try { SQLWarning warn = stmt.getWarnings();