mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
- Fix for BUG#1858 "SQL-Thread stops working when using optimize table":
we change THD::system_thread from a 'bool' to a bitmap to be able to distinguish between delayed-insert threads and slave threads. - Fix for BUG#1701 "Update from multiple tables" (one line in sql_parse.cc, plus a new test rpl_multi_update.test). That's just adding an initialization.
This commit is contained in:
@ -2902,6 +2902,12 @@ mysql_init_query(THD *thd)
|
||||
thd->lex.select_lex.table_list.first=0;
|
||||
thd->lex.select_lex.table_list.next= (byte**) &thd->lex.select_lex.table_list.first;
|
||||
thd->lex.select_lex.next=0;
|
||||
/*
|
||||
select_lex.options is also inited in dispatch_command(), but for
|
||||
replication (which bypasses dispatch_command() and calls mysql_parse()
|
||||
directly) we must do it here.
|
||||
*/
|
||||
thd->lex.select_lex.options=0;
|
||||
thd->lex.olap=0;
|
||||
thd->lex.select->olap= UNSPECIFIED_OLAP_TYPE;
|
||||
thd->fatal_error=0; // Safety
|
||||
|
Reference in New Issue
Block a user