Prevents calls to setAutoCommit that don't change the auto-commit
state
------------------------------------------------------------------------
Key: AG-93
URL:
https://issues.jboss.org/browse/AG-93
Project: Agroal
Issue Type: Bug
Components: pool
Affects Versions: 1.1
Reporter: Luis Barreiro
Assignee: Luis Barreiro
Priority: Major
Fix For: 1.2
Calls to setAutoCommit always set it as a dirty attribute, even if they don't
effectively change auto-commit state. This will cause another call to setAutoCommit when
returning the connection to the pool.
Some drivers don't do well with calls to setAutoCommit when in transaction. This
change will prevent those calls (as long as it's set to false in the configuration).