diff options
author | xing-zhi, jiang <a97410985new@gmail.com> | 2021-06-24 14:16:11 +0300 |
---|---|---|
committer | Robert Bindar <robert@mariadb.org> | 2021-06-29 16:15:24 +0300 |
commit | 768c51880a5aa6d25d4c0fe7de7a88561ff46422 (patch) | |
tree | 01eefd6de24144b160c7a6c97de0524b1761fee9 /sql/lex.h | |
parent | 58252fff15acfe7c7b0452a87e202e3f8e454e19 (diff) | |
download | mariadb-git-768c51880a5aa6d25d4c0fe7de7a88561ff46422.tar.gz |
MDEV-25129 Add KEYWORDS view to the INFORMATION_SCHEMA
Add KEYWORDS table and SQL_FUNCTIONS table to INFORMATION_SCHEMA.
This commits needs some minor changes when propagated upwards
(e.g. func_array in item_create.cc has a termination element that
doesn't exist in later versions of MariaDB)
Diffstat (limited to 'sql/lex.h')
-rw-r--r-- | sql/lex.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sql/lex.h b/sql/lex.h index ca7c6635329..c0cb9adc236 100644 --- a/sql/lex.h +++ b/sql/lex.h @@ -45,7 +45,7 @@ SYM_GROUP sym_group_rtree= {"RTree keys", "HAVE_RTREE_KEYS"}; lists */ -static SYMBOL symbols[] = { +SYMBOL symbols[] = { { "&&", SYM(AND_AND_SYM)}, { "<=", SYM(LE)}, { "<>", SYM(NE)}, @@ -687,7 +687,7 @@ static SYMBOL symbols[] = { }; -static SYMBOL sql_functions[] = { +SYMBOL sql_functions[] = { { "ADDDATE", SYM(ADDDATE_SYM)}, { "BIT_AND", SYM(BIT_AND)}, { "BIT_OR", SYM(BIT_OR)}, @@ -732,4 +732,7 @@ static SYMBOL sql_functions[] = { { "VAR_SAMP", SYM(VAR_SAMP_SYM)}, }; +size_t symbols_length= sizeof(symbols) / sizeof(SYMBOL); +size_t sql_functions_length= sizeof(sql_functions) / sizeof(SYMBOL); + #endif /* LEX_INCLUDED */ |