When a connection is requested from a datasource and later that connection is closed an exception is thrown
Caused by: org.firebirdsql.jdbc.FBSQLException: Connection enlisted in distributed transaction
at org.firebirdsql.jdbc.AbstractConnection.setAutoCommit(AbstractConnection.java:436)
at org.firebirdsql.jdbc.AbstractConnection.close(AbstractConnection.java:566)
It looks like I broke this when fixing JDBC344. The current expectation of the close() method is "// autocommit is always true for managed tx.", but that is no longer true.
I also need to review the tests as it looks like this only happens when using distributed transactions with the JCA resource adapter instead of a JDBC XADataSource, and that combination doesn't seem to be covered in the tests.
Submitted by: @doychin
Is related to JDBC344
When a connection is requested from a datasource and later that connection is closed an exception is thrown
Caused by: org.firebirdsql.jdbc.FBSQLException: Connection enlisted in distributed transaction
at org.firebirdsql.jdbc.AbstractConnection.setAutoCommit(AbstractConnection.java:436)
at org.firebirdsql.jdbc.AbstractConnection.close(AbstractConnection.java:566)
Commits: e3ee841 30509f7 FirebirdSQL/fbt-repository@d88235f FirebirdSQL/fbt-repository@58a0b0b
The text was updated successfully, but these errors were encountered: