mirror of
https://github.com/MariaDB/server.git
synced 2026-04-30 12:15:32 +02:00
MDEV-3944: Allow derived tables in VIEWS
This commit is contained in:
parent
1f89ea8ea0
commit
7166069537
15 changed files with 450 additions and 57 deletions
|
|
@ -567,7 +567,11 @@ bool mysql_derived_init(THD *thd, LEX *lex, TABLE_LIST *derived)
|
|||
if (!unit || unit->prepared)
|
||||
DBUG_RETURN(FALSE);
|
||||
|
||||
DBUG_RETURN(derived->init_derived(thd, TRUE));
|
||||
bool res= derived->init_derived(thd, TRUE);
|
||||
|
||||
derived->updatable= derived->updatable && derived->is_view();
|
||||
|
||||
DBUG_RETURN(res);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue