Skip to content

Commit bb0d699

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 273e079 commit bb0d699

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;
@@ -351,7 +350,8 @@ public CompletionStage<RowSet<Row>> preparedQueryOutsideTransaction(String sql)
351350
}
352351

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

0 commit comments

Comments
 (0)