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
Since 3449ab0 ( #438 ) ProxySQL tracks the value of autocommit and enforces it in database connection.
This implementation had the drawback that if a client sends set autocommit=0 , and read/write split is implemented too, transactions are opened on slaves as pointed in #469 , and therefore the feature was reverted.
Now ProxySQL doesn't track anymore the value of autocommit, and this means that statements could be executed in autocommit mode when the client assumes that autocommit is OFF .
This is problematic for application and libraries that do not explicitly starts transactions. See:
add a new variable mysql-enforce_autocommit_on_reads
if the variable is set to false (default) and a SELECT (not FOR UPDATE) is executed, the client value of autocommit is not enforced into the database connection
in all the other cases, the client value of autocommitenforced into the database connection
The text was updated successfully, but these errors were encountered:
WHY
Since 3449ab0 ( #438 ) ProxySQL tracks the value of autocommit and enforces it in database connection.
This implementation had the drawback that if a client sends
set autocommit=0
, and read/write split is implemented too, transactions are opened on slaves as pointed in #469 , and therefore the feature was reverted.Now ProxySQL doesn't track anymore the value of autocommit, and this means that statements could be executed in autocommit mode when the client assumes that autocommit is OFF .
This is problematic for application and libraries that do not explicitly starts transactions. See:
WHAT
mysql-enforce_autocommit_on_reads
false
(default) and aSELECT
(notFOR UPDATE
) is executed, the client value ofautocommit
is not enforced into the database connectionautocommit
enforced into the database connectionThe text was updated successfully, but these errors were encountered: