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

fixed bugs in view code with prepared statemnts

This commit is contained in:
bell@sanja.is.com.ua
2005-01-04 18:04:16 +02:00
parent a99921fb39
commit a8a5f3590c
8 changed files with 116 additions and 48 deletions

View File

@ -3317,7 +3317,7 @@ bool check_grant(THD *thd, ulong want_access, TABLE_LIST *tables,
{
GRANT_TABLE *grant_table;
if (!(~table->grant.privilege & want_access) ||
table->derived || table->schema_table)
table->derived || table->schema_table || table->belong_to_view)
{
/*
It is subquery in the FROM clause. VIEW set table->derived after