From a05d56326399a9d7b500789fac10ac13f6e47c2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Canna=C3=B2?= Date: Fri, 10 Mar 2017 01:34:34 +0000 Subject: [PATCH] Reset autocommit on CHANGE_USER #927 --- lib/MySQL_Session.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/MySQL_Session.cpp b/lib/MySQL_Session.cpp index 0d95e19fc..d228a2a13 100644 --- a/lib/MySQL_Session.cpp +++ b/lib/MySQL_Session.cpp @@ -276,6 +276,8 @@ void MySQL_Session::init() { } void MySQL_Session::reset() { + autocommit=true; + autocommit_on_hostgroup=-1; current_hostgroup=-1; default_hostgroup=-1; if (sess_STMTs_meta) {