summaryrefslogtreecommitdiff
path: root/mysql-test/r/user_var.result
diff options
context:
space:
mode:
authorunknown <evgen@moonbone.local>2007-06-03 14:46:09 +0400
committerunknown <evgen@moonbone.local>2007-06-03 14:46:09 +0400
commit4ef028600a3a0f13ef29a8b356e9ce5883080a84 (patch)
treeee8d009561c5404aa57162969dfd22cefce99e80 /mysql-test/r/user_var.result
parent684653b89eee128a1085caa3c58304d60683ccc0 (diff)
downloadmariadb-git-4ef028600a3a0f13ef29a8b356e9ce5883080a84.tar.gz
user_var.result, user_var.test:
Extended test case for the bug#28494. mysql-test/t/user_var.test: Extended test case for the bug#28494. mysql-test/r/user_var.result: Extended test case for the bug#28494.
Diffstat (limited to 'mysql-test/r/user_var.result')
-rw-r--r--mysql-test/r/user_var.result25
1 files changed, 23 insertions, 2 deletions
diff --git a/mysql-test/r/user_var.result b/mysql-test/r/user_var.result
index b90bb1f062b..15a9fe2ecda 100644
--- a/mysql-test/r/user_var.result
+++ b/mysql-test/r/user_var.result
@@ -317,8 +317,11 @@ SHOW COUNT(*) WARNINGS;
SHOW COUNT(*) ERRORS;
@@session.error_count
1
-create table t1(f1 int);
-insert into t1 values(1),(1),(2),(3),(4),(1),(3),(1);
+create table t1(f1 int, f2 varchar(2), f3 float, f4 decimal(2,1));
+insert into t1 values
+(1, "a", 1.5, 1.6), (1, "a", 1.5, 1.6), (2, "b", 2.5, 2.6),
+(3, "c", 3.5, 3.6), (4, "d", 4.5, 4.6), (1, "a", 1.5, 1.6),
+(3, "c", 3.5, 3.6), (1, "a", 1.5, 1.6);
select @a:=f1, count(f1) from t1 group by 1 desc;
@a:=f1 count(f1)
4 1
@@ -331,4 +334,22 @@ select @a:=f1, count(f1) from t1 group by 1 asc;
2 1
3 2
4 1
+select @a:=f2, count(f2) from t1 group by 1 desc;
+@a:=f2 count(f2)
+a 4
+b 1
+c 2
+d 1
+select @a:=f3, count(f3) from t1 group by 1 desc;
+@a:=f3 count(f3)
+1.5 4
+2.5 1
+3.5 2
+4.5 1
+select @a:=f4, count(f4) from t1 group by 1 desc;
+@a:=f4 count(f4)
+4.6 1
+3.6 2
+2.6 1
+1.6 4
drop table t1;