MDEV-3944: Allow derived tables in VIEWS

This commit is contained in:
Oleksandr Byelkin 2016-02-25 14:55:04 +01:00
commit 7166069537
15 changed files with 450 additions and 57 deletions

View file

@ -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);
}