mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Manual merge from mysql-5.1-bugteam to mysql-trunk-merge.
conflicts: conflict mysys/safemalloc.c conflict sql/mysqld.cc conflict sql/sp.cc conflict sql/sql_lex.cc conflict sql/sql_lex.h conflict sql/sql_parse.cc conflict sql/sql_prepare.cc
This commit is contained in:
@@ -3254,9 +3254,12 @@ int Query_log_event::do_apply_event(Relay_log_info const *rli,
|
||||
thd->table_map_for_update= (table_map)table_map_for_update;
|
||||
|
||||
/* Execute the query (note that we bypass dispatch_command()) */
|
||||
Parser_state parser_state(thd, thd->query(), thd->query_length());
|
||||
mysql_parse(thd, thd->query(), thd->query_length(), &parser_state);
|
||||
log_slow_statement(thd);
|
||||
Parser_state parser_state;
|
||||
if (!parser_state.init(thd, thd->query(), thd->query_length()))
|
||||
{
|
||||
mysql_parse(thd, thd->query(), thd->query_length(), &parser_state);
|
||||
log_slow_statement(thd);
|
||||
}
|
||||
|
||||
/*
|
||||
Resetting the enable_slow_log thd variable.
|
||||
|
Reference in New Issue
Block a user