mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
used right table for grants check (BUG#3270)
This commit is contained in:
@ -1446,7 +1446,7 @@ mysql_execute_command(void)
|
||||
tmp_table.real_name=lex->name;
|
||||
tmp_table.db=lex->db;
|
||||
tmp_table.grant.privilege=priv;
|
||||
if (check_grant(thd,INSERT_ACL | CREATE_ACL,tables))
|
||||
if (check_grant(thd,INSERT_ACL | CREATE_ACL, &tmp_table))
|
||||
goto error;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user