While fixing issue 1116, calls to connection.getAutoCommit() and connection.isReadOnly() were added to gate calls to the associated setters in PoolBase. However, this breaks integration with the mongo-jdbc-driver as getAutoCommit() throws a SQLFeatureNotSupportedException because the driver acts as though autoCommit is always false.
As per the Connection documentation, "if setAutoCommit is called, and the auto-commit mode is not changed, the call is a no-op", so I believe the correct way to handle this would be to remove the gates, but I believe the following would work as well:
While fixing issue 1116, calls to
connection.getAutoCommit()
andconnection.isReadOnly()
were added to gate calls to the associated setters inPoolBase
. However, this breaks integration with the mongo-jdbc-driver asgetAutoCommit()
throws aSQLFeatureNotSupportedException
because the driver acts as thoughautoCommit
is always false.As per the
Connection
documentation, "ifsetAutoCommit
is called, and the auto-commit mode is not changed, the call is a no-op", so I believe the correct way to handle this would be to remove the gates, but I believe the following would work as well: