summaryrefslogtreecommitdiff
path: root/mysql-test/r/func_gconcat.result
diff options
context:
space:
mode:
authorunknown <gkodinov/kgeorge@magare.gmz>2008-05-01 14:54:59 +0300
committerunknown <gkodinov/kgeorge@magare.gmz>2008-05-01 14:54:59 +0300
commit0e287a9c9c6b70d88f689405f6c9707de227911d (patch)
treed8de038593d4fc21b7405dbc5f0f940b97ab6577 /mysql-test/r/func_gconcat.result
parent368542d47b6fd2996d8a3eaf73f9c6f002b9b379 (diff)
parent1a68ec2809726e12f148a07cf3771c3d73d9983e (diff)
downloadmariadb-git-0e287a9c9c6b70d88f689405f6c9707de227911d.tar.gz
Merge magare.gmz:/home/kgeorge/mysql/work/B35298-5.0-bugteam
into magare.gmz:/home/kgeorge/mysql/work/B35298-5.1-bugteam mysql-test/r/func_gconcat.result: Auto merged mysql-test/t/func_gconcat.test: Auto merged sql/item_sum.cc: Auto merged configure.in: merge 5.0-bugteam to 5.1-bugteam
Diffstat (limited to 'mysql-test/r/func_gconcat.result')
-rw-r--r--mysql-test/r/func_gconcat.result26
1 files changed, 26 insertions, 0 deletions
diff --git a/mysql-test/r/func_gconcat.result b/mysql-test/r/func_gconcat.result
index 04f83788571..3b78851a1b9 100644
--- a/mysql-test/r/func_gconcat.result
+++ b/mysql-test/r/func_gconcat.result
@@ -952,4 +952,30 @@ GROUP BY 1
d1
NULL
DROP TABLE t1;
+CREATE TABLE t1 (a INT);
+CREATE TABLE t2 (a INT);
+INSERT INTO t1 VALUES(1);
+SELECT GROUP_CONCAT(DISTINCT t2.a) FROM t1 LEFT JOIN t2 ON t2.a = t1.a GROUP BY t1.a;
+GROUP_CONCAT(DISTINCT t2.a)
+NULL
+DROP TABLE t1, t2;
+CREATE TABLE t1 (a INT, KEY(a));
+CREATE TABLE t2 (b INT);
+INSERT INTO t1 VALUES (NULL), (8), (2);
+INSERT INTO t2 VALUES (4), (10);
+SELECT 1 FROM t1 WHERE t1.a NOT IN
+(
+SELECT GROUP_CONCAT(DISTINCT t1.a)
+FROM t1 WHERE t1.a IN
+(
+SELECT b FROM t2
+)
+AND NOT t1.a >= (SELECT t1.a FROM t1 LIMIT 1)
+GROUP BY t1.a
+);
+1
+1
+1
+1
+DROP TABLE t1, t2;
End of 5.0 tests