1
0
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:
bell@sanja.is.com.ua
2004-03-23 17:15:20 +02:00
parent cba6ff7597
commit 19ffa1cd53
2 changed files with 20 additions and 1 deletions

View File

@ -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;
}
}