mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
Using more of Sql_mode_save. Adding a similar class for THD::abort_on_warnings.
This commit is contained in:
@ -2584,11 +2584,9 @@ char *generate_partition_syntax_for_frm(THD *thd, partition_info *part_info,
|
||||
HA_CREATE_INFO *create_info,
|
||||
Alter_info *alter_info)
|
||||
{
|
||||
sql_mode_t old_mode= thd->variables.sql_mode;
|
||||
thd->variables.sql_mode &= ~MODE_ANSI_QUOTES;
|
||||
Sql_mode_instant_remove sms(thd, MODE_ANSI_QUOTES);
|
||||
char *res= generate_partition_syntax(thd, part_info, buf_length,
|
||||
true, create_info, alter_info);
|
||||
thd->variables.sql_mode= old_mode;
|
||||
return res;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user