summaryrefslogtreecommitdiff
path: root/sql/sp.cc
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.org>2017-12-27 12:30:05 +0400
committerAlexander Barkov <bar@mariadb.org>2017-12-27 12:30:05 +0400
commit02b7dc7bec4ff95c764a244c5037c69f262651e1 (patch)
tree3a5030e6d5995fefee6935c41efee5373394fdc6 /sql/sp.cc
parentc3bd0b0301936d0dcd0918bb8c966c272610d61b (diff)
downloadmariadb-git-02b7dc7bec4ff95c764a244c5037c69f262651e1.tar.gz
MDEV-14249 Wrong character set info of Query_log_event and the query in Query_log_event constructed by different charsets cause error when slave apply the event.
Diffstat (limited to 'sql/sp.cc')
-rw-r--r--sql/sp.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sp.cc b/sql/sp.cc
index fcbf4dc43d4..ef4d0996b78 100644
--- a/sql/sp.cc
+++ b/sql/sp.cc
@@ -1277,8 +1277,8 @@ log:
{
thd->clear_error();
- String log_query;
- log_query.set_charset(system_charset_info);
+ StringBuffer<128> log_query(thd->variables.character_set_client);
+ DBUG_ASSERT(log_query.charset()->mbminlen == 1);
if (!show_create_sp(thd, &log_query,
sp->m_type,