summaryrefslogtreecommitdiff
path: root/mysql-test/r/func_group.result
diff options
context:
space:
mode:
authorunknown <hf@deer.(none)>2005-03-07 17:45:39 +0400
committerunknown <hf@deer.(none)>2005-03-07 17:45:39 +0400
commit01c3fb8ed1bc095bf63a4dbe89821c04edf7f6f1 (patch)
tree03780ecf421fe46133526204465af5e51bd759e3 /mysql-test/r/func_group.result
parent77174b3a89c4dcba40841c15bbe18dbc2abd5cc2 (diff)
parent34ff8fbdb1833128d69b2154174ef1b0260eba2b (diff)
downloadmariadb-git-01c3fb8ed1bc095bf63a4dbe89821c04edf7f6f1.tar.gz
Merging
Diffstat (limited to 'mysql-test/r/func_group.result')
-rw-r--r--mysql-test/r/func_group.result24
1 files changed, 24 insertions, 0 deletions
diff --git a/mysql-test/r/func_group.result b/mysql-test/r/func_group.result
index ba769a0b23d..34ecb2906d2 100644
--- a/mysql-test/r/func_group.result
+++ b/mysql-test/r/func_group.result
@@ -832,6 +832,30 @@ id stddev_pop(value1) var_pop(value1) stddev_samp(value1) var_samp(value1)
1 0.816497 0.666667 1.000000 1.000000
2 1.118034 1.250000 1.290994 1.666667
DROP TABLE t1;
+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;
+col1 count(col1) sum(col1) avg(col1)
+-5.000000000030 2 -10.000000000060 -5.0000000000300000
+-5.000000000020 4 -20.000000000080 -5.0000000000200000
+-5.000000000010 4 -20.000000000040 -5.0000000000100000
+-5.000000000000 2 -10.000000000000 -5.0000000000000000
+DROP TABLE t1;
+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;
+col1 sum(col1) max(col1) min(col1)
+-5.000000000010 -10.000000000020 -5.000000000010 -5.000000000010
+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;
+col1 sum(col1) max(col1) min(col1)
+5.000000000010 10.000000000020 5.000000000010 5.000000000010
+DROP TABLE t1;
+
CREATE TABLE t1(
id int PRIMARY KEY,
a int,