diff options
Diffstat (limited to 'sql/sql_lex.h')
-rw-r--r-- | sql/sql_lex.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/sql/sql_lex.h b/sql/sql_lex.h index 1a0e7f56b5a..b261cb43103 100644 --- a/sql/sql_lex.h +++ b/sql/sql_lex.h @@ -2960,10 +2960,21 @@ enum account_lock_type ACCOUNTLOCK_UNLOCKED }; +enum password_exp_type +{ + PASSWORD_EXPIRE_UNSPECIFIED, + PASSWORD_EXPIRE_NOW, + PASSWORD_EXPIRE_NEVER, + PASSWORD_EXPIRE_DEFAULT, + PASSWORD_EXPIRE_INTERVAL +}; + struct Account_options: public USER_RESOURCES { Account_options() : account_locked(ACCOUNTLOCK_UNSPECIFIED) + , password_expire(PASSWORD_EXPIRE_UNSPECIFIED) + , num_expiration_days(0) { } void reset() @@ -2975,9 +2986,10 @@ struct Account_options: public USER_RESOURCES enum SSL_type ssl_type; // defined in violite.h LEX_CSTRING x509_subject, x509_issuer, ssl_cipher; account_lock_type account_locked; + password_exp_type password_expire; + longlong num_expiration_days; }; - class Query_arena_memroot; /* The state of the lex parsing. This is saved in the THD struct */ |