openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From curti...@apache.org
Subject svn commit: r1406668 - /openjpa/branches/2.2.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/PreparedStatementManagerImpl.java
Date Wed, 07 Nov 2012 15:14:09 GMT
Author: curtisr7
Date: Wed Nov  7 15:14:08 2012
New Revision: 1406668

URL: http://svn.apache.org/viewvc?rev=1406668&view=rev
Log:
OPENJPA-2264: Change PreparedStatementManagerImpl.logSQLWarnings to take a Statement rather
than a PreparedStatement. Merged from trunk.

Modified:
    openjpa/branches/2.2.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/PreparedStatementManagerImpl.java

Modified: openjpa/branches/2.2.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/PreparedStatementManagerImpl.java
URL: http://svn.apache.org/viewvc/openjpa/branches/2.2.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/PreparedStatementManagerImpl.java?rev=1406668&r1=1406667&r2=1406668&view=diff
==============================================================================
--- openjpa/branches/2.2.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/PreparedStatementManagerImpl.java
(original)
+++ openjpa/branches/2.2.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/PreparedStatementManagerImpl.java
Wed Nov  7 15:14:08 2012
@@ -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 PreparedStatementManagerImp
      * 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();



Mime
View raw message