diff --git a/sql/item_strfunc.cc b/sql/item_strfunc.cc index 09b6d9cc35d..b077deb863b 100644 --- a/sql/item_strfunc.cc +++ b/sql/item_strfunc.cc @@ -1906,6 +1906,7 @@ b1: str->append((char)(num>>8)); #endif str->append((char)num); } + str->set_charset(collation.collation); str->realloc(str->length()); // Add end 0 (for Purify) return str; }