mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merge moonbone.local:/mnt/gentoo64/work/test-5.0-opt-mysql
into moonbone.local:/mnt/gentoo64/work/test-5.1-opt-mysql sql/item_func.cc: Auto merged sql/item_func.h: Auto merged mysql-test/r/user_var.result: Manual merge mysql-test/t/user_var.test: Manual merge
This commit is contained in:
@ -318,9 +318,17 @@ SHOW COUNT(*) ERRORS;
|
||||
@@session.error_count
|
||||
1
|
||||
create table t1(f1 int);
|
||||
insert into t1 values(1),(1),(2);
|
||||
select @a:=f1, count(f1) from t1 group by 1 order by 1;
|
||||
insert into t1 values(1),(1),(2),(3),(4),(1),(3),(1);
|
||||
select @a:=f1, count(f1) from t1 group by 1 desc;
|
||||
@a:=f1 count(f1)
|
||||
1 2
|
||||
4 1
|
||||
3 2
|
||||
2 1
|
||||
1 4
|
||||
select @a:=f1, count(f1) from t1 group by 1 asc;
|
||||
@a:=f1 count(f1)
|
||||
1 4
|
||||
2 1
|
||||
3 2
|
||||
4 1
|
||||
drop table t1;
|
||||
|
Reference in New Issue
Block a user