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
This commit is contained in:
Richard G. Curtis 2012-09-20 17:55:21 +00:00
parent 0ae1199283
commit 837638b91b
1 changed files with 2 additions and 1 deletions

View File

@ -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();