diff options
author | evgen@moonbone.local <> | 2007-06-03 14:46:09 +0400 |
---|---|---|
committer | evgen@moonbone.local <> | 2007-06-03 14:46:09 +0400 |
commit | 7dbe9d3318ecc6e18a9469de9b8ae61f55c47f84 (patch) | |
tree | ee8d009561c5404aa57162969dfd22cefce99e80 /mysql-test/t/user_var.test | |
parent | 162a6b42ecd645a654d4395ab3388b667c89d4c1 (diff) | |
download | mariadb-git-7dbe9d3318ecc6e18a9469de9b8ae61f55c47f84.tar.gz |
user_var.result, user_var.test:
Extended test case for the bug#28494.
Diffstat (limited to 'mysql-test/t/user_var.test')
-rw-r--r-- | mysql-test/t/user_var.test | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/mysql-test/t/user_var.test b/mysql-test/t/user_var.test index 3df949ae669..3a3e8f88f83 100644 --- a/mysql-test/t/user_var.test +++ b/mysql-test/t/user_var.test @@ -226,8 +226,14 @@ SHOW COUNT(*) ERRORS; # # Bug#28494: Grouping by Item_func_set_user_var produces incorrect result. # -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; select @a:=f1, count(f1) from t1 group by 1 asc; +select @a:=f2, count(f2) from t1 group by 1 desc; +select @a:=f3, count(f3) from t1 group by 1 desc; +select @a:=f4, count(f4) from t1 group by 1 desc; drop table t1; |