summaryrefslogtreecommitdiff
path: root/sql/sql_lex.h
diff options
context:
space:
mode:
authorIgor Babaev <igor@askmonty.org>2016-07-26 22:58:33 -0700
committerIgor Babaev <igor@askmonty.org>2016-07-26 22:58:33 -0700
commitf982d1074a3bc880462ab2372803b278af8dc4dd (patch)
treee20df01a7f0378e045811b2d7e44585ef8b8c389 /sql/sql_lex.h
parent8c6a9aa30f9e74388aaf923ac8e3b19ca0f86188 (diff)
downloadmariadb-git-f982d1074a3bc880462ab2372803b278af8dc4dd.tar.gz
Fixed the following problem:
Temporary tables created for recursive CTE were instantiated at the prepare phase. As a result these temporary tables missed indexes for look-ups and optimizer could not use them.
Diffstat (limited to 'sql/sql_lex.h')
-rw-r--r--sql/sql_lex.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/sql_lex.h b/sql/sql_lex.h
index 785908d9750..de3ccfc08a9 100644
--- a/sql/sql_lex.h
+++ b/sql/sql_lex.h
@@ -611,6 +611,8 @@ public:
executed, // already executed
cleaned;
+ bool optimize_started;
+
// list of fields which points to temporary table for union
List<Item> item_list;
/*