Commit 28455867 authored by Alexey Kopytov's avatar Alexey Kopytov

Fixed ha_ndbcluster_binlog.cc to use Parser_state::init().

parent 3844367f
......@@ -277,8 +277,9 @@ static void run_query(THD *thd, char *buf, char *end,
DBUG_ASSERT(!thd->locked_tables_mode);
{
Parser_state parser_state(thd, thd->query(), thd->query_length());
mysql_parse(thd, thd->query(), thd->query_length(), &parser_state);
Parser_state parser_state;
if (!parser_state.init(thd, thd->query(), thd->query_length()))
mysql_parse(thd, thd->query(), thd->query_length(), &parser_state);
}
if (no_print_error && thd->is_slave_error)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment