summaryrefslogtreecommitdiff
path: root/sql/item.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/item.cc')
-rw-r--r--sql/item.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/item.cc b/sql/item.cc
index 94bc2612121..64d6e8dd9c9 100644
--- a/sql/item.cc
+++ b/sql/item.cc
@@ -1288,6 +1288,7 @@ Item *Item_param::safe_charset_converter(CHARSET_INFO *tocs)
!cnvitem->check_well_formed_result(&cnvitem->str_value, true))
return NULL;
cnvitem->str_value.mark_as_const();
+ cnvitem->collation.set(tocs);
cnvitem->max_length= cnvitem->str_value.numchars() * tocs->mbmaxlen;
return cnvitem;
}