diff options
author | unknown <svoj@mysql.com> | 2005-02-25 22:19:04 +0400 |
---|---|---|
committer | unknown <svoj@mysql.com> | 2005-02-25 22:19:04 +0400 |
commit | d339dd13cdb7fea28bc3800328bb74fd68fb4683 (patch) | |
tree | dacd1c6c90c80b374fbffd31ffd2a7caed5943fa /sql/lex.h | |
parent | c5d4d50ab703d9b3cb087ea5e721baed6fbdab8c (diff) | |
download | mariadb-git-d339dd13cdb7fea28bc3800328bb74fd68fb4683.tar.gz |
BUG#3190 fix (request for STDDEV_SAMP, VAR_SAMP).
This bug is also known as WL#1639.
mysql-test/r/func_group.result:
Test case for stddev_pop, var_pop, stddev_samp, var_samp was added.
mysql-test/t/func_group.test:
Test case for stddev_pop, var_pop, stddev_samp, var_samp was added.
sql/item_sum.cc:
New functions stddev_samp and var_samp were added.
sql/item_sum.h:
New functions stddev_samp and var_samp were added.
sql/lex.h:
New functions stddev_pop, var_pop, stddev_samp and var_samp were added.
sql/sql_yacc.yy:
New functions stddev_pop, var_pop, stddev_samp and var_samp were added.
Diffstat (limited to 'sql/lex.h')
-rw-r--r-- | sql/lex.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sql/lex.h b/sql/lex.h index 3894e8f6274..d0dc287775e 100644 --- a/sql/lex.h +++ b/sql/lex.h @@ -735,6 +735,8 @@ static SYMBOL sql_functions[] = { { "STARTPOINT", F_SYM(FUNC_ARG1),0,CREATE_FUNC_GEOM(create_func_startpoint)}, { "STD", SYM(STD_SYM)}, { "STDDEV", SYM(STD_SYM)}, + { "STDDEV_POP", SYM(STD_SYM)}, + { "STDDEV_SAMP", SYM(STDDEV_SAMP_SYM)}, { "STR_TO_DATE", F_SYM(FUNC_ARG2),0,CREATE_FUNC(create_func_str_to_date)}, { "STRCMP", F_SYM(FUNC_ARG2),0,CREATE_FUNC(create_func_strcmp)}, { "SUBSTR", SYM(SUBSTRING)}, @@ -760,6 +762,8 @@ static SYMBOL sql_functions[] = { { "UPPER", F_SYM(FUNC_ARG1),0,CREATE_FUNC(create_func_ucase)}, { "UUID", F_SYM(FUNC_ARG0),0,CREATE_FUNC(create_func_uuid)}, { "VARIANCE", SYM(VARIANCE_SYM)}, + { "VAR_POP", SYM(VARIANCE_SYM)}, + { "VAR_SAMP", SYM(VAR_SAMP_SYM)}, { "VERSION", F_SYM(FUNC_ARG0),0,CREATE_FUNC(create_func_version)}, { "WEEKDAY", F_SYM(FUNC_ARG1),0,CREATE_FUNC(create_func_weekday)}, { "WEEKOFYEAR", F_SYM(FUNC_ARG1),0,CREATE_FUNC(create_func_weekofyear)}, |