summaryrefslogtreecommitdiff
path: root/sql/sql_lex.cc
diff options
context:
space:
mode:
authorOleksandr Byelkin <sanja@mariadb.com>2017-02-09 12:08:57 +0100
committerOleksandr Byelkin <sanja@mariadb.com>2017-02-10 10:22:03 +0100
commitae3072c0af04ac5b18a81425a8aacb796126f8a2 (patch)
treec5b173aef8a65c3ff1e29441c1f1ca7ebf68df67 /sql/sql_lex.cc
parentee51f5823621acf5b703254f723690576a713585 (diff)
downloadmariadb-git-ae3072c0af04ac5b18a81425a8aacb796126f8a2.tar.gz
MDEV-10554: Assertion `!derived->first_select()->exclude_from_table_unique_test || derived->outer_select()-> exclude_from_table_unique_test' failed in TABLE_LIST::set_check_merged()
Mark and check excluded because of merging derived tables and views.
Diffstat (limited to 'sql/sql_lex.cc')
-rw-r--r--sql/sql_lex.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/sql_lex.cc b/sql/sql_lex.cc
index c028d49d620..71dad4279c2 100644
--- a/sql/sql_lex.cc
+++ b/sql/sql_lex.cc
@@ -2375,6 +2375,8 @@ void st_select_lex_unit::exclude_level()
if (next)
next->prev= prev;
}
+ // Mark it excluded
+ prev= NULL;
}