summaryrefslogtreecommitdiff
path: root/sql/sql_cte.h
diff options
context:
space:
mode:
authorIgor Babaev <igor@askmonty.org>2018-02-08 09:48:03 -0800
committerIgor Babaev <igor@askmonty.org>2018-02-08 09:48:36 -0800
commit8411a8ff6080f346582878131ba4bd92cce7510c (patch)
treeeed875d9447faa39c5130580c4102cff2c6cc6e1 /sql/sql_cte.h
parentf01ce62c8f1ad2187d08c80e94051e933dcf0235 (diff)
downloadmariadb-git-8411a8ff6080f346582878131ba4bd92cce7510c.tar.gz
Corrected the patch for mdev-15119 that caused a failure for
cte_nonrecursive.test with --embedded. This also fixed some problems for embedded CTEs. Adjusted test results accordingly.
Diffstat (limited to 'sql/sql_cte.h')
-rw-r--r--sql/sql_cte.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_cte.h b/sql/sql_cte.h
index 64b2f1cb1c8..70526e862dc 100644
--- a/sql/sql_cte.h
+++ b/sql/sql_cte.h
@@ -142,7 +142,7 @@ public:
query_name(name), column_list(list), spec(unit),
is_recursive(false), with_anchor(false),
level(0), rec_result(NULL)
- {}
+ { unit->with_element= this; }
bool check_dependencies_in_spec();