mirror of
https://github.com/MariaDB/server.git
synced 2026-05-09 16:44:29 +02:00
Fix of privilege problem in views and PS
sql/sql_base.cc: Column for views should be looked in views (not in underlying table) sql/sql_parse.cc: if we reread grants for single table we should read both database and tables grants for views (not only database grants).
This commit is contained in:
parent
e89da2e0f1
commit
dd3b27834c
2 changed files with 1 additions and 3 deletions
|
|
@ -6407,7 +6407,7 @@ find_field_in_tables(THD *thd, Item_ident *item,
|
|||
find_field_in_table even in the case of information schema tables
|
||||
when table_ref->field_translation != NULL.
|
||||
*/
|
||||
if (table_ref->table &&
|
||||
if (table_ref->table && !table_ref->view &&
|
||||
(!table_ref->is_merged_derived() ||
|
||||
(!table_ref->is_multitable() && table_ref->merged_for_insert)))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue