summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorAlexey Botchkov <holyfoot@askmonty.org>2021-03-26 10:15:32 +0400
committerAlexey Botchkov <holyfoot@askmonty.org>2021-04-21 10:21:44 +0400
commit11c8ce4348f430d600e2c724c8659b6c3f22f22d (patch)
treedae159c97476c888230a9ae511a617771e920dca /sql
parent0cea1ea7d345566d1ed53c83f550d220484bafc4 (diff)
downloadmariadb-git-11c8ce4348f430d600e2c724c8659b6c3f22f22d.tar.gz
MDEV-25138 JSON_TABLE: A space between JSON_TABLE and opening bracket causes syntax error.
syntax fixed.
Diffstat (limited to 'sql')
-rw-r--r--sql/lex.h2
-rw-r--r--sql/sql_yacc.yy1
2 files changed, 2 insertions, 1 deletions
diff --git a/sql/lex.h b/sql/lex.h
index 440ac2de664..fb701f0afd4 100644
--- a/sql/lex.h
+++ b/sql/lex.h
@@ -329,6 +329,7 @@ static SYMBOL symbols[] = {
{ "INVOKER", SYM(INVOKER_SYM)},
{ "JOIN", SYM(JOIN_SYM)},
{ "JSON", SYM(JSON_SYM)},
+ { "JSON_TABLE", SYM(JSON_TABLE_SYM)},
{ "KEY", SYM(KEY_SYM)},
{ "KEYS", SYM(KEYS)},
{ "KEY_BLOCK_SIZE", SYM(KEY_BLOCK_SIZE)},
@@ -762,7 +763,6 @@ static SYMBOL sql_functions[] = {
{ "GROUP_CONCAT", SYM(GROUP_CONCAT_SYM)},
{ "JSON_ARRAYAGG", SYM(JSON_ARRAYAGG_SYM)},
{ "JSON_OBJECTAGG", SYM(JSON_OBJECTAGG_SYM)},
- { "JSON_TABLE", SYM(JSON_TABLE_SYM)},
{ "LAG", SYM(LAG_SYM)},
{ "LEAD", SYM(LEAD_SYM)},
{ "MAX", SYM(MAX_SYM)},
diff --git a/sql/sql_yacc.yy b/sql/sql_yacc.yy
index 9c994b326df..01f9a8277ee 100644
--- a/sql/sql_yacc.yy
+++ b/sql/sql_yacc.yy
@@ -15914,6 +15914,7 @@ keyword_sp_var_and_label:
| ISSUER_SYM
| INSERT_METHOD
| INVISIBLE_SYM
+ | JSON_TABLE_SYM
| KEY_BLOCK_SIZE
| LAST_VALUE
| LAST_SYM