mirror of
https://github.com/MariaDB/server.git
synced 2026-04-29 11:45:32 +02:00
merge of bug #46019 to 5.1-bugteam
This commit is contained in:
commit
1317d24b33
5 changed files with 77 additions and 3 deletions
|
|
@ -5058,7 +5058,8 @@ bool check_single_table_access(THD *thd, ulong privilege,
|
|||
if (!(all_tables->belong_to_view &&
|
||||
(thd->lex->sql_command == SQLCOM_SHOW_FIELDS)) &&
|
||||
!(all_tables->view &&
|
||||
all_tables->effective_algorithm == VIEW_ALGORITHM_TMPTABLE) &&
|
||||
all_tables->effective_algorithm == VIEW_ALGORITHM_TMPTABLE &&
|
||||
all_tables->is_non_materialized_derived_table()) &&
|
||||
check_grant(thd, privilege, all_tables, 0, 1, no_errors))
|
||||
goto deny;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue