Skip to content

Commit 91610e0

Browse files
committed
[#2932] Disable current context assertions
The Quarkus test suite fails because of them. We will reapply them when we have an alternative solution.
1 parent 18786b7 commit 91610e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hibernate-reactive-core/src/main/java/org/hibernate/reactive/pool/impl/SqlClientConnection.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
import org.hibernate.engine.jdbc.spi.SqlStatementLogger;
1818
import org.hibernate.reactive.adaptor.impl.JdbcNull;
1919
import org.hibernate.reactive.adaptor.impl.ResultSetAdaptor;
20-
import org.hibernate.reactive.common.InternalStateAssertions;
2120
import org.hibernate.reactive.logging.impl.Log;
2221
import org.hibernate.reactive.logging.impl.LoggerFactory;
2322
import org.hibernate.reactive.pool.BatchingConnection;
@@ -290,7 +289,8 @@ public CompletionStage<RowSet<Row>> preparedQueryOutsideTransaction(String sql)
290289
}
291290

292291
private void feedback(String sql) {
293-
InternalStateAssertions.assertCurrentContextMatches( this, connectionContext );
292+
// Disable assertions for now. See https://github.com/hibernate/hibernate-reactive/issues/2932
293+
// InternalStateAssertions.assertCurrentContextMatches( this, connectionContext );
294294
Objects.requireNonNull( sql, "SQL query cannot be null" );
295295
// DDL already gets formatted by the client, so don't reformat it
296296
FormatStyle formatStyle = sqlStatementLogger.isFormat() && !sql.contains( System.lineSeparator() )

0 commit comments

Comments
 (0)