diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2020-06-08 11:45:28 +0300 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2020-06-08 11:45:28 +0300 |
commit | 57022dfb25b931a329905364d7056ac61950d300 (patch) | |
tree | 94a7131bfffa205d89a8563a5c749f843b920ecb /sql/sql_cte.cc | |
parent | eb14e073ea121954fb5be6fac92fd84b7d57bb07 (diff) | |
parent | befb0bed68b555852e01859a846bf7ac40f15dbb (diff) | |
download | mariadb-git-57022dfb25b931a329905364d7056ac61950d300.tar.gz |
Merge 10.3 into 10.4
Diffstat (limited to 'sql/sql_cte.cc')
-rw-r--r-- | sql/sql_cte.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_cte.cc b/sql/sql_cte.cc index e452196a271..d4b6d815118 100644 --- a/sql/sql_cte.cc +++ b/sql/sql_cte.cc @@ -1123,6 +1123,7 @@ bool TABLE_LIST::set_as_with_table(THD *thd, With_element *with_elem) { derived= with_elem->spec; if (derived != select_lex->master_unit() && + !with_elem->is_recursive && !is_with_table_recursive_reference()) { derived->move_as_slave(select_lex); |