summaryrefslogtreecommitdiff
path: root/sql/lex.h
diff options
context:
space:
mode:
authormalff/marcsql@weblab.(none) <>2007-01-11 14:58:05 -0700
committermalff/marcsql@weblab.(none) <>2007-01-11 14:58:05 -0700
commit9655f5fb0330d9eb67effe6755dec45f28f1e446 (patch)
tree53f7cc34c8a22ed9ceaf16d39f046e08a1c24778 /sql/lex.h
parentc55862698ebc7aafdfeeba47170c9f7b89b66eec (diff)
downloadmariadb-git-9655f5fb0330d9eb67effe6755dec45f28f1e446.tar.gz
Bug#22687 (Functions UNIQUE_USERS, GROUP_UNIQUE_USERS)
According to some internal communication, these two functions are place holders for future enhancements. Because they use a variable number of parameters, the implementation defined a reserved keyword for them in the parser grammar. Unfortunately, doing so creates a bug similar to Bug 21114 reported for the function FORMAT. In the 5.1 code base, due to improvements in the code implemented with bug 21114, having a reserved keyword for functions with a variable number of arguments is not needed any more by the implementation. As a result, this fix removes the place-holder implementation, and removes the unnecessary reserved keywords. Should the functions UNIQUE_USERS and GROUP_UNIQUE_USERS be finally implemented in a later release, the implementation should sub class Create_native_func in sql/item_create.cc. For example, see the class Create_func_concat.
Diffstat (limited to 'sql/lex.h')
-rw-r--r--sql/lex.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/sql/lex.h b/sql/lex.h
index 254d7f10fb7..aff8149efd0 100644
--- a/sql/lex.h
+++ b/sql/lex.h
@@ -593,7 +593,6 @@ static SYMBOL sql_functions[] = {
{ "DATE_SUB", SYM(DATE_SUB_INTERVAL)},
{ "EXTRACT", SYM(EXTRACT_SYM)},
{ "GROUP_CONCAT", SYM(GROUP_CONCAT_SYM)},
- { "GROUP_UNIQUE_USERS", SYM(GROUP_UNIQUE_USERS)},
{ "MAX", SYM(MAX_SYM)},
{ "MID", SYM(SUBSTRING)}, /* unireg function */
{ "MIN", SYM(MIN_SYM)},
@@ -611,7 +610,6 @@ static SYMBOL sql_functions[] = {
{ "SYSDATE", SYM(SYSDATE)},
{ "SYSTEM_USER", SYM(USER)},
{ "TRIM", SYM(TRIM)},
- { "UNIQUE_USERS", SYM(UNIQUE_USERS)},
{ "VARIANCE", SYM(VARIANCE_SYM)},
{ "VAR_POP", SYM(VARIANCE_SYM)},
{ "VAR_SAMP", SYM(VAR_SAMP_SYM)},