Loading mysql-test/r/rpl_multi_update3.result +1 −0 Original line number Diff line number Diff line Loading @@ -40,3 +40,4 @@ SELECT * FROM t2 ORDER BY a; a b 1 6 2 6 drop table t1,t2; mysql-test/t/rpl_multi_update3.test +1 −0 Original line number Diff line number Diff line Loading @@ -31,3 +31,4 @@ sync_with_master; SELECT * FROM t1 ORDER BY a; SELECT * FROM t2 ORDER BY a; drop table t1,t2; sql/sql_parse.cc +5 −3 Original line number Diff line number Diff line Loading @@ -1943,9 +1943,11 @@ mysql_execute_command(THD *thd) if (tables || &lex->select_lex != lex->all_selects_list) mysql_reset_errors(thd); /* When subselects or time_zone info is used in a query * we create a new TABLE_LIST containing all referenced tables * and set local variable 'tables' to point to this list. */ /* When subselects or time_zone info is used in a query we create a new TABLE_LIST containing all referenced tables and set local variable 'tables' to point to this list. */ if ((&lex->select_lex != lex->all_selects_list || lex->time_zone_tables_used) && lex->unit.create_total_list(thd, lex, &tables)) Loading Loading
mysql-test/r/rpl_multi_update3.result +1 −0 Original line number Diff line number Diff line Loading @@ -40,3 +40,4 @@ SELECT * FROM t2 ORDER BY a; a b 1 6 2 6 drop table t1,t2;
mysql-test/t/rpl_multi_update3.test +1 −0 Original line number Diff line number Diff line Loading @@ -31,3 +31,4 @@ sync_with_master; SELECT * FROM t1 ORDER BY a; SELECT * FROM t2 ORDER BY a; drop table t1,t2;
sql/sql_parse.cc +5 −3 Original line number Diff line number Diff line Loading @@ -1943,9 +1943,11 @@ mysql_execute_command(THD *thd) if (tables || &lex->select_lex != lex->all_selects_list) mysql_reset_errors(thd); /* When subselects or time_zone info is used in a query * we create a new TABLE_LIST containing all referenced tables * and set local variable 'tables' to point to this list. */ /* When subselects or time_zone info is used in a query we create a new TABLE_LIST containing all referenced tables and set local variable 'tables' to point to this list. */ if ((&lex->select_lex != lex->all_selects_list || lex->time_zone_tables_used) && lex->unit.create_total_list(thd, lex, &tables)) Loading