diff options
author | Alexander Barkov <bar@mariadb.org> | 2016-08-03 15:55:48 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.org> | 2016-08-03 15:55:48 +0400 |
commit | ecb7ce7844237e2366ab5e8d9963f370cb1042aa (patch) | |
tree | 4b54885daca258b5749310893c7694086681b612 /mysql-test/t/func_math.test | |
parent | 35c9c856347fe340f3d564f33e76bb6f9ea05e76 (diff) | |
download | mariadb-git-ecb7ce7844237e2366ab5e8d9963f370cb1042aa.tar.gz |
MDEV-10467 Assertion `nr >= 0.0' failed in Item_sum_std::val_real()
Backporting MDEV-5781 from 10.0.
Diffstat (limited to 'mysql-test/t/func_math.test')
-rw-r--r-- | mysql-test/t/func_math.test | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/mysql-test/t/func_math.test b/mysql-test/t/func_math.test index cd90184ebf5..d31b33b5df9 100644 --- a/mysql-test/t/func_math.test +++ b/mysql-test/t/func_math.test @@ -567,3 +567,15 @@ select 5.0 div 2.0; select 5.0 div 2; select 5 div 2.0; select 5.9 div 2, 1.23456789e3 DIV 2, 1.23456789e9 DIV 2, 1.23456789e19 DIV 2; + +--echo # +--echo # MDEV-10467 Assertion `nr >= 0.0' failed in Item_sum_std::val_real() +--echo # +CREATE TABLE t1 (i INT); +INSERT INTO t1 VALUES (1),(2); +SELECT STDDEV_SAMP(ROUND('0', 309)) FROM t1; +DROP TABLE t1; + +--echo # +--echo # End of 5.5 tests +--echo # |