Commit e8cbda2c authored by tsmith/tim@siva.hindu.god's avatar tsmith/tim@siva.hindu.god

Merge siva.hindu.god:/usr/home/tim/m/bk/b21531-41

into  siva.hindu.god:/usr/home/tim/m/bk/41
parents b8521714 45460bd0
...@@ -93,3 +93,7 @@ SELECT IS_USED_LOCK('bug16501'); ...@@ -93,3 +93,7 @@ SELECT IS_USED_LOCK('bug16501');
IS_USED_LOCK('bug16501') IS_USED_LOCK('bug16501')
NULL NULL
DROP TABLE t1; DROP TABLE t1;
select export_set(3, _latin1'foo', _utf8'bar', ',', 4);
export_set(3, _latin1'foo', _utf8'bar', ',', 4)
foo,foo,bar,bar
End of 4.1 tests
...@@ -83,4 +83,9 @@ connection default; ...@@ -83,4 +83,9 @@ connection default;
DROP TABLE t1; DROP TABLE t1;
# End of 4.1 tests #
# Bug #21531: EXPORT_SET() doesn't accept args with coercible character sets
#
select export_set(3, _latin1'foo', _utf8'bar', ',', 4);
--echo End of 4.1 tests
...@@ -159,8 +159,7 @@ public: ...@@ -159,8 +159,7 @@ public:
return agg_item_collations_for_comparison(c, func_name(), return agg_item_collations_for_comparison(c, func_name(),
items, nitems, flags); items, nitems, flags);
} }
bool agg_arg_charsets(DTCollation &c, Item **items, uint nitems, bool agg_arg_charsets(DTCollation &c, Item **items, uint nitems, uint flags)
uint flags= 0)
{ {
return agg_item_charsets(c, func_name(), items, nitems, flags); return agg_item_charsets(c, func_name(), items, nitems, flags);
} }
......
...@@ -2641,8 +2641,8 @@ void Item_func_export_set::fix_length_and_dec() ...@@ -2641,8 +2641,8 @@ void Item_func_export_set::fix_length_and_dec()
uint sep_length=(arg_count > 3 ? args[3]->max_length : 1); uint sep_length=(arg_count > 3 ? args[3]->max_length : 1);
max_length=length*64+sep_length*63; max_length=length*64+sep_length*63;
if (agg_arg_charsets(collation, args+1, min(4,arg_count)-1), if (agg_arg_charsets(collation, args+1, min(4,arg_count)-1,
MY_COLL_ALLOW_CONV) MY_COLL_ALLOW_CONV))
return; return;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment