diff options
Diffstat (limited to 'sql/structs.h')
-rw-r--r-- | sql/structs.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sql/structs.h b/sql/structs.h index 191463af344..986b0d64bb0 100644 --- a/sql/structs.h +++ b/sql/structs.h @@ -211,6 +211,12 @@ typedef struct st_lex_user { else l->length= strxmov(l->str= buf, user.str, "@", host.str, NullS) - buf; } + void reset_auth() + { + password.length= plugin.length= auth.length= 0; + password.str= 0; + plugin.str= auth.str= const_cast<char*>(""); + } } LEX_USER; /* |