diff options
Diffstat (limited to 'sql/sql_help.cc')
-rw-r--r-- | sql/sql_help.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sql/sql_help.cc b/sql/sql_help.cc index e3e22bf38fb..c9307b578fc 100644 --- a/sql/sql_help.cc +++ b/sql/sql_help.cc @@ -856,9 +856,7 @@ error2: bool mysqld_help(THD *thd, const char *mask) { - sql_mode_t sql_mode_backup= thd->variables.sql_mode; - thd->variables.sql_mode&= ~MODE_PAD_CHAR_TO_FULL_LENGTH; + Sql_mode_instant_remove sms(thd, MODE_PAD_CHAR_TO_FULL_LENGTH); bool rc= mysqld_help_internal(thd, mask); - thd->variables.sql_mode= sql_mode_backup; return rc; } |