mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 19:37:16 +02:00
a fix (Bug #3435: STDDEV|VARIANCE(constant) returns constant if no rows)
This commit is contained in:
parent
575541b9f7
commit
393ed84c9a
3 changed files with 18 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue