diff options
author | unknown <gluh@gluh.mysql.r18.ru> | 2005-03-16 16:44:28 +0300 |
---|---|---|
committer | unknown <gluh@gluh.mysql.r18.ru> | 2005-03-16 16:44:28 +0300 |
commit | a5c87958a6ae43bd4b998dd4d54a19043a8e3b0f (patch) | |
tree | 7fee6588640e9cf5d33b92f655676f9db201beab /mysql-test/t/func_gconcat.test | |
parent | 9245168429bc963a73cbc16259535e612badd8e3 (diff) | |
download | mariadb-git-a5c87958a6ae43bd4b998dd4d54a19043a8e3b0f.tar.gz |
Fix for bug#8656: Crash with group_concat on alias in outer table
fixed result_field support of Item_ref
Diffstat (limited to 'mysql-test/t/func_gconcat.test')
-rw-r--r-- | mysql-test/t/func_gconcat.test | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mysql-test/t/func_gconcat.test b/mysql-test/t/func_gconcat.test index 6a91a7ac9c7..d32c8796075 100644 --- a/mysql-test/t/func_gconcat.test +++ b/mysql-test/t/func_gconcat.test @@ -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; |