diff options
Diffstat (limited to 'sql/item_create.cc')
-rw-r--r-- | sql/item_create.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/item_create.cc b/sql/item_create.cc index 532654910e2..35716937f12 100644 --- a/sql/item_create.cc +++ b/sql/item_create.cc @@ -5241,13 +5241,13 @@ Create_func_space::create_1_arg(THD *thd, Item *arg1) <code>thd->variables.collation_connection</code>. */ CHARSET_INFO *cs= thd->variables.collation_connection; - Item *sp; + Item_string *sp; if (cs->mbminlen > 1) { uint dummy_errors; sp= new (thd->mem_root) Item_string("", 0, cs, DERIVATION_COERCIBLE, MY_REPERTOIRE_ASCII); - sp->str_value.copy(" ", 1, &my_charset_latin1, cs, &dummy_errors); + sp->copy_value(" ", 1, &my_charset_latin1, cs, &dummy_errors); } else { |