summaryrefslogtreecommitdiff
path: root/sql/sql_derived.cc
diff options
context:
space:
mode:
authorOleksandr Byelkin <sanja@mariadb.com>2019-03-08 15:04:52 +0100
committerOleksandr Byelkin <sanja@mariadb.com>2019-03-08 15:05:23 +0100
commit6740b2926bb80bee4b9a560acc8d315f2888e0b8 (patch)
treec52f769ba0c2c968da3d5f8e812c0f9c171bc6ce /sql/sql_derived.cc
parent94eb56fb29334a1075103becb625685b23f7d437 (diff)
downloadmariadb-git-6740b2926bb80bee4b9a560acc8d315f2888e0b8.tar.gz
Fix of PS after merge from 10.2.
TVC uses derived as singlatable calls
Diffstat (limited to 'sql/sql_derived.cc')
-rw-r--r--sql/sql_derived.cc1
1 files changed, 1 insertions, 0 deletions
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++)