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

This commit is contained in:
Alexey Kopytov 2010-06-12 00:35:28 +04:00
parent 3844367f2b
commit 2845586723

View File

@ -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)