Commit 63d3ccdf authored by Sergei Golubchik's avatar Sergei Golubchik

Bug#21205695 DROP TABLE MAY CAUSE SLAVES TO BREAK

Correct fix. Generate the query in the client charset,
not in the system one.
parent f3444df4
...@@ -2092,7 +2092,7 @@ int mysql_rm_table_no_locks(THD *thd, TABLE_LIST *tables, bool if_exists, ...@@ -2092,7 +2092,7 @@ int mysql_rm_table_no_locks(THD *thd, TABLE_LIST *tables, bool if_exists,
const char *comment_start; const char *comment_start;
uint32 comment_len; uint32 comment_len;
built_query.set_charset(system_charset_info); built_query.set_charset(thd->charset());
if (if_exists) if (if_exists)
built_query.append("DROP TABLE IF EXISTS "); built_query.append("DROP TABLE IF EXISTS ");
else else
......
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