mysql display / implicit / automatic submission

show variables like '% autocommit%'; - to see if auto-commit

set autocommit on;

 

mysql performing such insertion (insert) operation time or need to commit, see storage engine,

if the engine does not support transactions, such as myisam, it did not commit whether valid.

If the transaction is to support the engine, such as innodb, the things you need to know whether to automatically commit the transaction support (ie commit)

 

mysql stored procedure has finally commit and commit are no different. (To test but encountered this problem)

If the stored procedure does not perform commit, then the spring container once the transaction rollback occurs, the operation of the stored procedure execution will be rolled back. If the stored procedure is executed commit, then the database itself has been submitted at this time of the transaction, then the transaction in the spring even hosted a container, and due to other causes abnormal service code automatically rolled back, but this is not a stored procedure rollback, because the data itself before the transaction has been completed report on the implementation in a stored procedure, that is to say at this time spring rollback to the stored procedure is invalid up.

Guess you like

Origin www.cnblogs.com/Dfrank/p/11839480.html