summaryrefslogtreecommitdiff
path: root/sql/sql_lex.cc
diff options
context:
space:
mode:
authorAleksey Midenkov <midenok@gmail.com>2017-07-12 11:24:03 +0300
committerAleksey Midenkov <midenok@gmail.com>2017-07-12 12:10:13 +0300
commit91c8b43e77ea1ec65eb16a178d8e63a7b3065854 (patch)
tree17c8dcf330ddc43430f7ef9671c05fd49abe2470 /sql/sql_lex.cc
parent60e456df3328657bba1648157abd1c1aa4b0838c (diff)
downloadmariadb-git-91c8b43e77ea1ec65eb16a178d8e63a7b3065854.tar.gz
Parser: syntax for query system_time [closes #230]
Eliminated `QUERY FOR`.
Diffstat (limited to 'sql/sql_lex.cc')
-rw-r--r--sql/sql_lex.cc15
1 files changed, 0 insertions, 15 deletions
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;
}