diff --git a/hibernate-core/src/main/java/org/hibernate/engine/jdbc/internal/proxy/CallableStatementProxyHandler.java b/hibernate-core/src/main/java/org/hibernate/engine/jdbc/internal/proxy/CallableStatementProxyHandler.java index 0460e2f160..9f22f908a0 100644 --- a/hibernate-core/src/main/java/org/hibernate/engine/jdbc/internal/proxy/CallableStatementProxyHandler.java +++ b/hibernate-core/src/main/java/org/hibernate/engine/jdbc/internal/proxy/CallableStatementProxyHandler.java @@ -53,6 +53,6 @@ public class CallableStatementProxyHandler extends PreparedStatementProxyHandler } private Object executeQuery() throws SQLException { - return getConnectionProxy().getJdbcServices().getDialect().getResultSet( ( CallableStatement ) getStatementWithoutChecks() ); + return getConnectionProxy().getJdbcServices().getDialect().getResultSet( ( CallableStatement ) this ); } }