This now correctly substitutes charset to new table:

CREATE TABLE a SELECT strfunc(non_default_charset_expr)
parent 337d4696
...@@ -41,9 +41,9 @@ public: ...@@ -41,9 +41,9 @@ public:
return result_field; return result_field;
return (max_length > 255) ? return (max_length > 255) ?
(Field *)new Field_blob(max_length,maybe_null, name,t_arg, binary, (Field *)new Field_blob(max_length,maybe_null, name,t_arg, binary,
default_charset_info) : str_value.charset()) :
(Field *) new Field_string(max_length,maybe_null, name,t_arg, binary, (Field *) new Field_string(max_length,maybe_null, name,t_arg, binary,
default_charset_info); str_value.charset());
} }
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment