revision-id: 63e35e1c72bb860894eada4141ed8175313473d5 (mariadb-10.3.12-76-g63e35e1c72b) parent(s): d30f17af4969cc1ce34f1925f5ea2bced9c6f7e9 author: Oleksandr Byelkin committer: Oleksandr Byelkin timestamp: 2019-03-08 15:04:52 +0100 message: Fix of PS after merge from 10.2. TVC uses derived as singlatable calls --- sql/sql_derived.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/sql/sql_derived.cc b/sql/sql_derived.cc index e6a2d54ae6f..960ee948cf7 100644 --- a/sql/sql_derived.cc +++ b/sql/sql_derived.cc @@ -179,6 +179,7 @@ mysql_handle_single_derived(LEX *lex, TABLE_LIST *derived, uint phases) if (!lex->derived_tables) DBUG_RETURN(FALSE); + derived->select_lex->changed_elements|= TOUCHED_SEL_DERIVED; lex->thd->derived_tables_processing= TRUE; for (uint phase= 0; phase < DT_PHASES; phase++)