Comments - useLocalTransactionState for mariadb connector/j

4 years, 6 months ago Diego Dupin

MariaDB Java connector has some behavior equivalent to MySQL option useLocalTransactionState enable, to avoid executing unnecessary COMMIT and ROLLBACK commands when executing Connection.commit() / rollback() methods.

(This doesn't apply on Connection.setAutoCommit(boolean) method, because this command do not only commit the current transaction if any but also change auto_commit mode. So 'set autocommit=<boolean>' command will always be executed if changing mode)

 
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.