mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
fixed bugs in view code with prepared statemnts
sql/sql_acl.cc: block checking view underlying tables sql/sql_base.cc: item registration fixed fixed non registred item resolving fixed result of outo-merge fixed creation reference if alias used sql/sql_insert.cc: layout fixed removed unused variable sql/sql_parse.cc: block checking view underlying tables sql/sql_prepare.cc: make preparation check same as usual check sql/sql_update.cc: made want_privilege assignment simplier block checking view underlying tables sql/sql_view.cc: belong_to_view assignmebt moved after privileges check sql/table.cc: check option fix field added arena management added
This commit is contained in:
@ -4330,7 +4330,7 @@ check_table_access(THD *thd, ulong want_access,TABLE_LIST *tables,
|
||||
TABLE_LIST *org_tables=tables;
|
||||
for (; tables; tables= tables->next_global)
|
||||
{
|
||||
if (tables->derived || tables->schema_table ||
|
||||
if (tables->derived || tables->schema_table || tables->belong_to_view ||
|
||||
(tables->table && (int)tables->table->tmp_table) ||
|
||||
my_tz_check_n_skip_implicit_tables(&tables,
|
||||
thd->lex->time_zone_tables_used))
|
||||
|
Reference in New Issue
Block a user