1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

fixed fix_fields() parameters for GROUP_CONCAT() ORDER BY clause

(BUG#1537)
This commit is contained in:
bell@laptop.sanja.is.com.ua
2003-10-12 16:10:40 +03:00
parent 8313e0da03
commit 8f5c3f3981
3 changed files with 21 additions and 3 deletions

View File

@ -196,3 +196,14 @@ insert into t1 values('test'),('test2');
select * from t1 having group_concat(bar)='';
bar
drop table t1;
create table t1 (a int, a1 varchar(10));
create table t2 (a0 int);
insert into t1 values (0,"a"),(0,"b"),(1,"c");
insert into t2 values (1),(2),(3);
select group_concat(a1 order by (t1.a IN (select a0 from t2))) from t1;
group_concat(a1 order by (t1.a IN (select a0 from t2)))
b,a,c
select group_concat(a1 order by (t1.a)) from t1;
group_concat(a1 order by (t1.a))
b,a,c
drop table t1, t2;