a fix (Bug #3435: STDDEV|VARIANCE(constant) returns constant if no rows)

This commit is contained in:
unknown 2004-05-05 16:06:01 +05:00
commit 393ed84c9a
3 changed files with 18 additions and 0 deletions

View file

@ -648,3 +648,11 @@ select a from t1 having a=1;
a
1
drop table t1;
create table t1 (a int);
select variance(2) from t1;
variance(2)
NULL
select stddev(2) from t1;
stddev(2)
NULL
drop table t1;