diff options
author | Vesa Pentti <vesa.pentti@mariadb.com> | 2017-10-08 22:15:00 +0300 |
---|---|---|
committer | Vesa Pentti <vesa.pentti@mariadb.com> | 2017-10-09 09:19:15 +0300 |
commit | 39e4bb8f46275007f586a01439b67fa1c276ad45 (patch) | |
tree | b136954b13bc877f6db1ed36d2afd9e87a6cab99 /sql | |
parent | 3557de68d14eb3d5f8808933a4f52b6ca8f9a005 (diff) | |
download | mariadb-git-work-in-progress-pentve.tar.gz |
MDEV-13149 -- show function status now works with PAD_CHAR_TO_FULL_LENGTHwork-in-progress-pentve
Diffstat (limited to 'sql')
-rw-r--r-- | sql/sql_show.cc | 4 |
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. */ |