diff options
author | hf@deer.(none) <> | 2005-03-07 17:45:39 +0400 |
---|---|---|
committer | hf@deer.(none) <> | 2005-03-07 17:45:39 +0400 |
commit | e5a2d037437cc92966b2d593bc7a9bef1d3c7e94 (patch) | |
tree | 03780ecf421fe46133526204465af5e51bd759e3 /mysql-test/t/func_group.test | |
parent | fa27e11923af273a83aefbecd1c3b9405593c62b (diff) | |
parent | cef95249bd993e5a6cb983d6deff64fcaed02ef5 (diff) | |
download | mariadb-git-e5a2d037437cc92966b2d593bc7a9bef1d3c7e94.tar.gz |
Merging
Diffstat (limited to 'mysql-test/t/func_group.test')
-rw-r--r-- | mysql-test/t/func_group.test | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/mysql-test/t/func_group.test b/mysql-test/t/func_group.test index 2d8bac701b1..de9c7ff3ecb 100644 --- a/mysql-test/t/func_group.test +++ b/mysql-test/t/func_group.test @@ -537,6 +537,31 @@ CREATE TABLE t1 (id int(11),value1 float(10,2)); INSERT INTO t1 VALUES (1,0.00),(1,1.00), (1,2.00), (2,10.00), (2,11.00), (2,12.00), (2,13.00); select id, stddev_pop(value1), var_pop(value1), stddev_samp(value1), var_samp(value1) from t1 group by id; DROP TABLE t1; + +# +# BUG#8464 decimal AVG returns incorrect result +# + +CREATE TABLE t1 (col1 decimal(16,12)); +INSERT INTO t1 VALUES (-5.00000000001),(-5.00000000002),(-5.00000000003),(-5.00000000000),(-5.00000000001),(-5.00000000002); +insert into t1 select * from t1; +select col1,count(col1),sum(col1),avg(col1) from t1 group by col1; +DROP TABLE t1; + +# +# BUG#8465 decimal MIN and MAX return incorrect result +# + +create table t1 (col1 decimal(16,12)); +insert into t1 values (-5.00000000001); +insert into t1 values (-5.00000000001); +select col1,sum(col1),max(col1),min(col1) from t1 group by col1; +delete from t1; +insert into t1 values (5.00000000001); +insert into t1 values (5.00000000001); +select col1,sum(col1),max(col1),min(col1) from t1 group by col1; +DROP TABLE t1; + # # Bug 8893: wrong result for min/max optimization with 2 indexes # |