mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
cannot use lex->grant_user= ¤t_user, where LEX_USER current_user is a global constant,
because parser might modify the lex->user (e.g. set lex->user-password). switch to use LEX_STRING current_user string, and also change other similar constants to be LEX_STRING's for consistency.
This commit is contained in:
@@ -173,11 +173,11 @@ enum mysql_db_table_field
|
||||
extern const TABLE_FIELD_DEF mysql_db_table_def;
|
||||
extern bool mysql_user_table_is_in_short_password_format;
|
||||
|
||||
extern const char *HOST_NOT_SPECIFIED;
|
||||
extern const char *NONE_ROLE;
|
||||
extern LEX_USER current_user;
|
||||
extern LEX_USER current_role;
|
||||
extern LEX_USER current_user_and_current_role;
|
||||
extern LEX_STRING host_not_specified;
|
||||
extern LEX_STRING none_role;
|
||||
extern LEX_STRING current_user;
|
||||
extern LEX_STRING current_role;
|
||||
extern LEX_STRING current_user_and_current_role;
|
||||
|
||||
|
||||
static inline int access_denied_error_code(int passwd_used)
|
||||
|
Reference in New Issue
Block a user