mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
strmake_buf(X,Y) helper, equivalent to strmake(X,Y,sizeof(X)-1)
with a bit of lame protection against abuse.
This commit is contained in:
@@ -2011,8 +2011,7 @@ public:
|
||||
DBUG_ENTER("Delayed_insert constructor");
|
||||
thd.security_ctx->user=(char*) delayed_user;
|
||||
thd.security_ctx->host=(char*) my_localhost;
|
||||
strmake(thd.security_ctx->priv_user, thd.security_ctx->user,
|
||||
USERNAME_LENGTH);
|
||||
strmake_buf(thd.security_ctx->priv_user, thd.security_ctx->user);
|
||||
thd.current_tablenr=0;
|
||||
thd.command=COM_DELAYED_INSERT;
|
||||
thd.lex->current_select= 0; // for my_message_sql
|
||||
|
Reference in New Issue
Block a user