1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

used right table for grants check (BUG#3270)

mysql-test/t/alter_table.test:
  test for BUG#3270 added
This commit is contained in:
unknown
2004-03-23 17:15:20 +02:00
parent bc9de3d455
commit 1744d26c95
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;
}
}