diff options
author | unknown <ram@gw.mysql.r18.ru> | 2004-05-05 16:06:01 +0500 |
---|---|---|
committer | unknown <ram@gw.mysql.r18.ru> | 2004-05-05 16:06:01 +0500 |
commit | 393ed84c9a0cd98479aa8bf8c4de1236740639ea (patch) | |
tree | 3e92d79cf977b8227075452a38bf4357ea176d40 /mysql-test/t/func_group.test | |
parent | 575541b9f755425eaeb07babfa07b6fd30f6d5d1 (diff) | |
download | mariadb-git-393ed84c9a0cd98479aa8bf8c4de1236740639ea.tar.gz |
a fix (Bug #3435: STDDEV|VARIANCE(constant) returns constant if no rows)
Diffstat (limited to 'mysql-test/t/func_group.test')
-rw-r--r-- | mysql-test/t/func_group.test | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/mysql-test/t/func_group.test b/mysql-test/t/func_group.test index a1acf5f89eb..7966a2262f4 100644 --- a/mysql-test/t/func_group.test +++ b/mysql-test/t/func_group.test @@ -387,3 +387,12 @@ insert into t1 values (1); select max(a) as b from t1 having b=1; select a from t1 having a=1; drop table t1; + +# +# Bug #3435: variance(const), stddev(const) and an empty table +# + +create table t1 (a int); +select variance(2) from t1; +select stddev(2) from t1; +drop table t1; |