mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-22441 SCOPE_VALUE macro for temporary values
- Needless engaged_ removed; - SCOPE_VALUE, SCOPE_SET, SCOPE_CLEAR macros for neater declaration; - IF_CLASS / IF_NOT_CLASS SFINAE checkers to pass arg by value or reference; - inline keyword; - couple of refactorings of temporary free_list.
This commit is contained in:
@ -2555,9 +2555,7 @@ static bool acl_load(THD *thd, const Grant_tables& tables)
|
||||
char tmp_name[SAFE_NAME_LEN+1];
|
||||
DBUG_ENTER("acl_load");
|
||||
|
||||
auto _= make_scope_value(thd->variables.sql_mode,
|
||||
thd->variables.sql_mode &
|
||||
~MODE_PAD_CHAR_TO_FULL_LENGTH);
|
||||
SCOPE_CLEAR(thd->variables.sql_mode, MODE_PAD_CHAR_TO_FULL_LENGTH);
|
||||
|
||||
grant_version++; /* Privileges updated */
|
||||
|
||||
|
Reference in New Issue
Block a user