Commit 96bb5f44 authored by Sergei Golubchik's avatar Sergei Golubchik

bugfix: returning on-the-stack buffer to the caller

parent a838b104
......@@ -1706,7 +1706,7 @@ static bool get_field_default_value(THD *thd, Field *field, String *def_value,
if (quoted)
append_unescaped(def_value, def_val.ptr(), def_val.length());
else
def_value->move(def_val);
def_value->append(def_val);
}
else if (quoted)
def_value->set(STRING_WITH_LEN("''"), system_charset_info);
......
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