openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From curti...@apache.org
Subject svn commit: r1388137 - /openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/PreparedStatementManagerImpl.java
Date Thu, 20 Sep 2012 17:55:22 GMT
Author: curtisr7
Date: Thu Sep 20 17:55:21 2012
New Revision: 1388137

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

Modified:
    openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/PreparedStatementManagerImpl.java

Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/PreparedStatementManagerImpl.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/PreparedStatementManagerImpl.java?rev=1388137&r1=1388136&r2=1388137&view=diff
==============================================================================
--- openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/PreparedStatementManagerImpl.java
(original)
+++ openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/PreparedStatementManagerImpl.java
Thu Sep 20 17:55:21 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