Skip to content

Commit 2155767

Browse files
committed
[hibernate#2055] Avoid logging temporary command twice
1 parent 2b41512 commit 2155767

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

hibernate-reactive-core/src/main/java/org/hibernate/reactive/query/sqm/mutation/internal/temptable/ReactiveTemporaryTableHelper.java

-6
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,8 @@ public TemporaryTableCreationWork(
6767

6868
@Override
6969
public CompletionStage<Void> reactiveExecute(ReactiveConnection connection) {
70-
final JdbcServices jdbcServices = sessionFactory.getJdbcServices();
71-
7270
try {
7371
final String creationCommand = exporter.getSqlCreateCommand( temporaryTable );
74-
logStatement( creationCommand, jdbcServices );
7572

7673
return connection.executeUnprepared( creationCommand )
7774
.handle( (integer, throwable) -> {
@@ -115,11 +112,8 @@ public TemporaryTableDropWork(
115112

116113
@Override
117114
public CompletionStage<Void> reactiveExecute(ReactiveConnection connection) {
118-
final JdbcServices jdbcServices = sessionFactory.getJdbcServices();
119-
120115
try {
121116
final String dropCommand = exporter.getSqlDropCommand( temporaryTable );
122-
logStatement( dropCommand, jdbcServices );
123117

124118
return connection.update( dropCommand )
125119
.handle( (integer, throwable) -> {

0 commit comments

Comments
 (0)