mirror of https://github.com/apache/openjpa.git
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:
parent
0ae1199283
commit
837638b91b
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue