mirror of
https://github.com/MariaDB/server.git
synced 2026-05-16 03:47:17 +02: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:
parent
9245168429
commit
a5c87958a6
3 changed files with 16 additions and 0 deletions
|
|
@ -284,3 +284,11 @@ drop table t1;
|
|||
CREATE TABLE t1 (id int);
|
||||
SELECT GROUP_CONCAT(id) AS gc FROM t1 HAVING gc IS NULL;
|
||||
DROP TABLE t1;
|
||||
|
||||
#
|
||||
# Bug #8656: Crash with group_concat on alias in outer table
|
||||
#
|
||||
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;
|
||||
drop table r2;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue