|
Please take a look at org.hibernate.test.connections.ConnectionManagementTestCase and create a pull request with a new test that uses Session.doWork(Connection) to execute a Query.iterate(). Adding this test to ConnectionManagementTestCase will execute the test using the various connection scenarios (including aggressive release).
I suspect that the statement is not being registered via JdbcCoordinatorImpl.register(Statement) when executed via the Work API.
Thanks, Gail
|