1
0
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:
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

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