1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

reset @@TIMESTAMP for COM_CHANGE_USER

this also fixes tokudb.type_year failure
(in ./mtr tokudb.type_timestamp tokudb.type_year)
This commit is contained in:
Sergei Golubchik
2016-04-11 08:18:21 +02:00
parent 4aacb20dce
commit 69da361ccd
3 changed files with 20 additions and 1 deletions

View File

@ -945,7 +945,6 @@ THD::THD(my_thread_id id, bool is_wsrep_applier)
statement_id_counter= 0UL;
// Must be reset to handle error with THD's created for init of mysqld
lex->current_select= 0;
user_time.val= start_time= start_time_sec_part= 0;
start_utime= utime_after_query= 0;
utime_after_lock= 0L;
progress.arena= 0;
@ -1399,6 +1398,8 @@ void THD::init(void)
mysql_mutex_unlock(&LOCK_global_system_variables);
user_time.val= start_time= start_time_sec_part= 0;
server_status= SERVER_STATUS_AUTOCOMMIT;
if (variables.sql_mode & MODE_NO_BACKSLASH_ESCAPES)
server_status|= SERVER_STATUS_NO_BACKSLASH_ESCAPES;