You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
MySQL connections have autocommit disabled after transaction with autocommit: false. #9877
I expect the second SELECT statement to show autocommit=1.
What is actually happening?
autocommit=0. The 'SET AUTOCOMMIT = 0' is run inside of the transaction, but affects the session. So when the connection goes back into the pool it's in an unexpected state. Unless the application does all reads within an explicit transaction, it can lead to inconsistent reads.
changed the title [-]MySQL connections in with autocommit disabled after transaction with autocommit: false.[/-][+]MySQL connections have autocommit disabled after transaction with autocommit: false.[/+]on Sep 5, 2018
Activity
[-]MySQL connections in with autocommit disabled after transaction with autocommit: false.[/-][+]MySQL connections have autocommit disabled after transaction with autocommit: false.[/+]fix(transaction): delete autocommit when transaction begin (sequelize…
fix(transaction): delete autocommit when transaction begin (sequelize…
fix(transaction): delete autocommit when transaction begin (sequelize…