summaryrefslogtreecommitdiff
path: root/sql/sql_cte.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sql_cte.cc')
-rw-r--r--sql/sql_cte.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_cte.cc b/sql/sql_cte.cc
index 24fd2c60503..01caeda1325 100644
--- a/sql/sql_cte.cc
+++ b/sql/sql_cte.cc
@@ -706,6 +706,7 @@ void With_element::move_anchors_ahead()
}
}
first_recursive= new_pos;
+ spec->first_select()->linkage= DERIVED_TABLE_TYPE;
}