1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

reverted the fix for bug #46019 from 5.1-bugteam

This commit is contained in:
Georgi Kodinov
2009-08-21 17:41:48 +03:00
5 changed files with 3 additions and 77 deletions

View File

@ -5058,8 +5058,7 @@ 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->is_non_materialized_derived_table()) &&
all_tables->effective_algorithm == VIEW_ALGORITHM_TMPTABLE) &&
check_grant(thd, privilege, all_tables, 0, 1, no_errors))
goto deny;