summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
Diffstat (limited to 'sql')
-rw-r--r--sql/sql_show.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/sql/sql_show.cc b/sql/sql_show.cc
index 97fa231a13a..873af0d3dc3 100644
--- a/sql/sql_show.cc
+++ b/sql/sql_show.cc
@@ -6058,6 +6058,10 @@ int fill_schema_proc(THD *thd, TABLE_LIST *tables, COND *cond)
get_schema_table_idx(tables->schema_table);
DBUG_ENTER("fill_schema_proc");
+ /* Disable padding temporarily so it doesn't break the query */
+ Sql_mode_save restore_sql_mode(thd);
+ thd->variables.sql_mode &= ~MODE_PAD_CHAR_TO_FULL_LENGTH;
+
strxmov(definer, thd->security_ctx->priv_user, "@",
thd->security_ctx->priv_host, NullS);
/* We use this TABLE_LIST instance only for checking of privileges. */