mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-32875 SERVER_STATUS_AUTOCOMMIT set after connecting, if autocommit=0
After successful connection, server always sets SERVER_STATUS_AUTOCOMMIT in server_status in the OK packet. This is wrong, if global variable autocommit=0. Fixed THD::init(), added mysql_client_test test. Thanks to Diego Dupin for the providing the patch. Signed-off-by: Vladislav Vaintroub <vvaintroub@gmail.com>
This commit is contained in:
@ -1227,7 +1227,9 @@ void THD::init()
|
||||
|
||||
user_time.val= start_time= start_time_sec_part= 0;
|
||||
|
||||
server_status= SERVER_STATUS_AUTOCOMMIT;
|
||||
server_status= 0;
|
||||
if (variables.option_bits & OPTION_AUTOCOMMIT)
|
||||
server_status|= SERVER_STATUS_AUTOCOMMIT;
|
||||
if (variables.sql_mode & MODE_NO_BACKSLASH_ESCAPES)
|
||||
server_status|= SERVER_STATUS_NO_BACKSLASH_ESCAPES;
|
||||
if (variables.sql_mode & MODE_ANSI_QUOTES)
|
||||
|
Reference in New Issue
Block a user