summaryrefslogtreecommitdiff
path: root/sql/sql_cte.h
diff options
context:
space:
mode:
authorIgor Babaev <igor@askmonty.org>2016-09-24 20:29:56 -0700
committerIgor Babaev <igor@askmonty.org>2016-09-24 21:05:36 -0700
commit61ab7333db3b2dcc0e2b7d5b44c0692a6b0c3e8a (patch)
treed7c966755b72d49a80d909107e542f0e2e9a3f81 /sql/sql_cte.h
parent018ac121cff32b72f782027688cc2d3e81c5664c (diff)
downloadmariadb-git-61ab7333db3b2dcc0e2b7d5b44c0692a6b0c3e8a.tar.gz
Fixed bug mdev-10883.
When a prepared statement uses a CTE definition with a column list renaming of columns of the CTE expression must be performed for every execution of the prepared statement.
Diffstat (limited to 'sql/sql_cte.h')
-rw-r--r--sql/sql_cte.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_cte.h b/sql/sql_cte.h
index 38442252f5c..27d5923ad07 100644
--- a/sql/sql_cte.h
+++ b/sql/sql_cte.h
@@ -350,6 +350,7 @@ void With_element::reset_recursive_for_exec()
owner->with_prepared_anchor&= ~mutually_recursive;
owner->cleaned&= ~get_elem_map();
cleanup_stabilized();
+ spec->columns_are_renamed= false;
}