mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
Give warning if MySQL doesn't honor given storage engine
Allow syntax CREATE TABLE t1 (LIKE t2)
This commit is contained in:
@@ -2516,7 +2516,7 @@ bool check_grant(THD *thd, ulong want_access, TABLE_LIST *tables,
|
||||
rw_rdlock(&LOCK_grant);
|
||||
for (table=tables; table ;table=table->next)
|
||||
{
|
||||
if (!(~table->grant.privilege & want_access))
|
||||
if (!(~table->grant.privilege & want_access) || table->derived)
|
||||
{
|
||||
table->grant.want_privilege=0;
|
||||
continue; // Already checked
|
||||
|
||||
Reference in New Issue
Block a user