MySQL Lists are EOL. Please join:

List:Internals« Previous MessageNext Message »
From:konstantin Date:November 18 2005 8:46pm
Subject:bk commit into 5.0 tree (konstantin:1.1977) BUG#8568
View as plain text  
Below is the list of changes that have just been committed into a local
5.0 repository of kostja. When kostja does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html

ChangeSet
  1.1977 05/11/18 23:46:04 konstantin@stripped +2 -0
  A test case for Bug#8568 "GROUP_CONCAT returns string, unless in 
  a UNION in which case returns BLOB". The bug is not present anymore.

  mysql-test/t/func_gconcat.test
    1.38 05/11/18 23:45:47 konstantin@stripped +16 -0
    Add a test case for Bug#8568

  mysql-test/r/func_gconcat.result
    1.49 05/11/18 23:45:47 konstantin@stripped +15 -0
    Bug#8568: test results

# This is a BitKeeper patch.  What follows are the unified diffs for the
# set of deltas contained in the patch.  The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User:	konstantin
# Host:	dragonfly.local
# Root:	/opt/local/work/mysql-5.0-8568

--- 1.48/mysql-test/r/func_gconcat.result	2005-11-03 01:49:32 +03:00
+++ 1.49/mysql-test/r/func_gconcat.result	2005-11-18 23:45:47 +03:00
@@ -596,3 +596,18 @@
 ,x
 ,z
 DROP TABLE t1;
+set names latin1;
+create table t1 (a char, b char);
+insert into t1 values ('a', 'a'), ('a', 'b'), ('b', 'a'), ('b', 'b');
+create table t2 select group_concat(b) as a from t1 where a = 'a';
+create table t3 (select group_concat(a) as a from t1 where a = 'a') union
+(select group_concat(b) as a from t1 where a = 'b');
+select charset(a) from t2;
+charset(a)
+latin1
+select charset(a) from t3;
+charset(a)
+latin1
+latin1
+drop table t1, t2, t3;
+set names default;

--- 1.37/mysql-test/t/func_gconcat.test	2005-09-09 11:44:06 +04:00
+++ 1.38/mysql-test/t/func_gconcat.test	2005-11-18 23:45:47 +03:00
@@ -390,3 +390,19 @@
 DROP TABLE t1;
 
 # End of 4.1 tests
+
+#
+# Bug#8568 "GROUP_CONCAT returns string, unless in a UNION in which case
+# returns BLOB": add a test case, the bug can not be repeated any more.
+#
+
+set names latin1;
+create table t1 (a char, b char);
+insert into t1 values ('a', 'a'), ('a', 'b'), ('b', 'a'), ('b', 'b');
+create table t2 select group_concat(b) as a from t1 where a = 'a';
+create table t3 (select group_concat(a) as a from t1 where a = 'a') union
+                (select group_concat(b) as a from t1 where a = 'b');
+select charset(a) from t2;
+select charset(a) from t3;
+drop table t1, t2, t3;
+set names default;
Thread
bk commit into 5.0 tree (konstantin:1.1977) BUG#8568konstantin18 Nov