summaryrefslogtreecommitdiff
path: root/sql/item_strfunc.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/item_strfunc.cc')
-rw-r--r--sql/item_strfunc.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/item_strfunc.cc b/sql/item_strfunc.cc
index 68d49b90475..8f7d6e97ca6 100644
--- a/sql/item_strfunc.cc
+++ b/sql/item_strfunc.cc
@@ -4305,6 +4305,7 @@ String *Item_func_compress::val_str(String *str)
}
str->length((uint32)new_size + 4);
+ str->set_charset(&my_charset_bin);
return str;
}