1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Give warning if MySQL doesn't honor given storage engine

Allow syntax CREATE TABLE t1 (LIKE t2)
This commit is contained in:
monty@mashka.mysql.fi
2003-05-13 11:15:11 +03:00
parent 091d6f3b73
commit 60dfb25be3
47 changed files with 462 additions and 304 deletions

View File

@ -2217,7 +2217,9 @@ mysql_execute_command(THD *thd)
goto error;
for (table=tables ; table ; table=table->next)
{
if (check_access(thd,UPDATE_ACL,table->db,&table->grant.privilege))
if (table->derived)
table->grant.privilege= SELECT_ACL;
else if (check_access(thd,UPDATE_ACL,table->db,&table->grant.privilege))
goto error;
}
if (grant_option && check_grant(thd,UPDATE_ACL,tables))