1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Fix for bug#8656: Crash with group_concat on alias in outer table

fixed result_field support of Item_ref
This commit is contained in:
unknown
2005-03-16 16:44:28 +03:00
parent 9245168429
commit a5c87958a6
3 changed files with 16 additions and 0 deletions

View File

@ -462,3 +462,10 @@ SELECT GROUP_CONCAT(id) AS gc FROM t1 HAVING gc IS NULL;
gc
NULL
DROP TABLE t1;
create table r2 (a int, b int);
insert into r2 values (1,1), (2,2);
select b x, (select group_concat(x) from r2) from r2;
x (select group_concat(x) from r2)
1 1,1
2 2,2
drop table r2;