summaryrefslogtreecommitdiff
path: root/sql/sql_show.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sql_show.cc')
-rw-r--r--sql/sql_show.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/sql/sql_show.cc b/sql/sql_show.cc
index b1cc696e9fe..1d2a81212a3 100644
--- a/sql/sql_show.cc
+++ b/sql/sql_show.cc
@@ -9744,8 +9744,9 @@ static bool show_create_trigger_impl(THD *thd, Trigger *trigger)
sql_mode_string_representation(thd, trigger->sql_mode, &trg_sql_mode_str);
/* Resolve trigger client character set. */
-
- if (resolve_charset(trigger->client_cs_name.str, NULL, &trg_client_cs))
+ myf utf8_flag= thd->get_utf8_flag();
+ if (resolve_charset(trigger->client_cs_name.str, NULL, &trg_client_cs,
+ MYF(utf8_flag)))
return TRUE;
/* Send header. */