diff options
-rw-r--r-- | sql/item_strfunc.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/item_strfunc.cc b/sql/item_strfunc.cc index 64dcc6b65fa..ee5646bdfc5 100644 --- a/sql/item_strfunc.cc +++ b/sql/item_strfunc.cc @@ -3187,6 +3187,7 @@ void Item_func_pad::fix_length_and_dec() if (agg_arg_charsets_for_string_result(collation, &args[0], 1, 1)) return; pad_str.set_charset(collation.collation); + pad_str.length(0); pad_str.append(" ", 1); } |