From 91c8b43e77ea1ec65eb16a178d8e63a7b3065854 Mon Sep 17 00:00:00 2001 From: Aleksey Midenkov Date: Wed, 12 Jul 2017 11:24:03 +0300 Subject: Parser: syntax for query system_time [closes #230] Eliminated `QUERY FOR`. --- sql/sql_lex.cc | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'sql/sql_lex.cc') diff --git a/sql/sql_lex.cc b/sql/sql_lex.cc index 067b78e3a05..589d02fb55b 100644 --- a/sql/sql_lex.cc +++ b/sql/sql_lex.cc @@ -1368,21 +1368,6 @@ int MYSQLlex(YYSTYPE *yylval, THD *thd) return FOR_SYM; } break; - case QUERY_SYM: - { - CHARSET_INFO *cs= thd->charset(); - const char *p= lip->get_ptr(); - while (my_isspace(cs, *p)) - ++p; - if (lip->get_end_of_query() - p > 3 && my_isspace(cs, p[3]) && - 0 == strncasecmp(p, "for", 3)) - { - token= lex_one_token(yylval, thd); - lip->add_digest_token(token, yylval); - return QUERY_FOR_SYM; - } - return QUERY_SYM; - } default: break; } -- cgit v1.2.1