Commit 61aaf4ed authored by Alexey Kopytov's avatar Alexey Kopytov

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

parent 20e0a9ab
...@@ -277,8 +277,9 @@ static void run_query(THD *thd, char *buf, char *end, ...@@ -277,8 +277,9 @@ static void run_query(THD *thd, char *buf, char *end,
DBUG_ASSERT(!thd->locked_tables_mode); DBUG_ASSERT(!thd->locked_tables_mode);
{ {
Parser_state parser_state(thd, thd->query(), thd->query_length()); Parser_state parser_state;
mysql_parse(thd, thd->query(), thd->query_length(), &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) 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