-
-
Notifications
You must be signed in to change notification settings - Fork 101
Open
@DavideD
Description
It happene with the Hibernate ORM upgrade to 7.1
In 3.1 the code is here:
PreparedStatement preparedStatement = null; preparedStatement = jdbcCoordinator.getStatementPreparer().prepareStatement( sqlSelect ); Object[] parameters = new Object[1]; if ( sessionUidColumn != null ) { parameters[0] = UUID.fromString( sessionUidAccess.apply( session ) ); }
PreparedStatement is not used, and in Hibernate Reactive the binding is done via an adapter.
It should look something like this:
final Object[] parameters = PreparedStatementAdaptor .bind( statement -> { if ( sessionUidColumn != null ) { sessionUidColumn.getJdbcMapping().getJdbcValueBinder() .bind( statement, UUID.fromString( sessionUidAccess.apply( session ) ), 1, session ); } } );
But there is no test case at the moment.
Metadata
Metadata
Assignees
Labels
No labels