diff options
author | unknown <evgen@moonbone.local> | 2007-07-19 20:21:23 +0400 |
---|---|---|
committer | unknown <evgen@moonbone.local> | 2007-07-19 20:21:23 +0400 |
commit | 7f6a8164846da34a822e8f844d6ec9e1da3af412 (patch) | |
tree | a737b5bf39ed388285ff8d65d0cb712efe46a201 /sql/item_sum.cc | |
parent | 8b59beaebef6528f748bad02541636b02a087b93 (diff) | |
download | mariadb-git-7f6a8164846da34a822e8f844d6ec9e1da3af412.tar.gz |
Bug#29850: Wrong charset of GROUP_CONCAT result when the select employs
a temporary table.
The result string of the Item_func_group_concat wasn't initialized in the
copying constructor of the Item_func_group_concat class. This led to a
wrong charset of GROUP_CONCAT result when the select employs a temporary
table.
The copying constructor of the Item_func_group_concat class now correctly
initializes the charset of the result string.
mysql-test/t/func_gconcat.test:
Added a test case for the bug#29850: Wrong charset of the GROUP_CONCAT result
when the select employs a temporary table.
mysql-test/r/func_gconcat.result:
Added a test case for the bug#29850: Wrong charset of the GROUP_CONCAT result
when the select employs a temporary table.
sql/item_sum.cc:
Bug#29850: Wrong charset of GROUP_CONCAT result when the select employs
a temporary table.
The copying constructor of the Item_func_group_concat class now correctly
initializes the charset of the result string.
Diffstat (limited to 'sql/item_sum.cc')
-rw-r--r-- | sql/item_sum.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/item_sum.cc b/sql/item_sum.cc index 133f00039b0..fe9f58d84e1 100644 --- a/sql/item_sum.cc +++ b/sql/item_sum.cc @@ -3068,6 +3068,7 @@ Item_func_group_concat::Item_func_group_concat(THD *thd, original(item) { quick_group= item->quick_group; + result.set_charset(collation.collation); } |