diff options
author | Alexey Kopytov <Alexey.Kopytov@Sun.com> | 2010-06-12 00:35:28 +0400 |
---|---|---|
committer | Alexey Kopytov <Alexey.Kopytov@Sun.com> | 2010-06-12 00:35:28 +0400 |
commit | 2845586723f383cd0bf7929eb80a263ef6e69da9 (patch) | |
tree | ce614e6aa6a4a818363a45a87fa48807997f97a7 /sql/ha_ndbcluster_binlog.cc | |
parent | 3844367f2b62c559b636c676e1ec728ca0bdb30b (diff) | |
download | mariadb-git-2845586723f383cd0bf7929eb80a263ef6e69da9.tar.gz |
Fixed ha_ndbcluster_binlog.cc to use Parser_state::init().
Diffstat (limited to 'sql/ha_ndbcluster_binlog.cc')
-rw-r--r-- | sql/ha_ndbcluster_binlog.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sql/ha_ndbcluster_binlog.cc b/sql/ha_ndbcluster_binlog.cc index d38544f9b9f..a61f5b4feea 100644 --- a/sql/ha_ndbcluster_binlog.cc +++ b/sql/ha_ndbcluster_binlog.cc @@ -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) |