HHH-13741 Make sure SQL is logged for regular select queries

This commit is contained in:
Christian Beikov 2023-09-19 10:53:07 +02:00
parent 1c5bdd5151
commit f84c2b56db
1 changed files with 1 additions and 1 deletions

View File

@ -241,7 +241,7 @@ public class DeferredResultSetAccess extends AbstractResultSetAccess {
} }
finally { finally {
eventListenerManager.jdbcExecuteStatementEnd(); eventListenerManager.jdbcExecuteStatementEnd();
sqlStatementLogger.logSlowQuery( preparedStatement, executeStartNanos, context() ); sqlStatementLogger.logSlowQuery( finalSql, executeStartNanos, context() );
} }
skipRows( resultSet ); skipRows( resultSet );