summaryrefslogtreecommitdiff
path: root/sql/sql_lex.cc
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2015-06-03 11:11:53 +0200
committerSergei Golubchik <serg@mariadb.org>2015-06-03 15:44:31 +0200
commit64569fa81de811b2c355c8d51bf4d3daa6b56444 (patch)
treee5acc92ebb25c0dae813a4d39f03747c5710c076 /sql/sql_lex.cc
parent0ffef5d2a72bad8fe0cb72b78e426f4f50a29bf2 (diff)
downloadmariadb-git-64569fa81de811b2c355c8d51bf4d3daa6b56444.tar.gz
parser: better error messages for CHECK/REPAIR VIEW
remove the code that checks for correct options for for CHECK/REPAIR VIEW. Rewrite the grammar for the parser to check that. This changes error messages as -ERROR 42000: You have an error ... near '' at line 1 +ERROR 42000: You have an error ... near 'quick' at line 1
Diffstat (limited to 'sql/sql_lex.cc')
-rw-r--r--sql/sql_lex.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_lex.cc b/sql/sql_lex.cc
index 74591b5371e..a71051e801b 100644
--- a/sql/sql_lex.cc
+++ b/sql/sql_lex.cc
@@ -533,6 +533,7 @@ void lex_start(THD *thd)
lex->is_lex_started= TRUE;
lex->used_tables= 0;
+ lex->only_view= FALSE;
lex->reset_slave_info.all= false;
lex->limit_rows_examined= 0;
lex->limit_rows_examined_cnt= ULONGLONG_MAX;