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:
@ -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))
|
||||
|
Reference in New Issue
Block a user