summaryrefslogtreecommitdiff
path: root/sql/sql_lex.cc
diff options
context:
space:
mode:
authorIgor Babaev <igor@askmonty.org>2016-04-20 10:55:53 -0700
committerIgor Babaev <igor@askmonty.org>2016-04-20 10:55:53 -0700
commit3b6a64c24776c0291962147dfb3fe331b0b46cc4 (patch)
tree821bd6b921c15d23d3edea4204d0841f165fb373 /sql/sql_lex.cc
parent4b8e54bb98ac2caf07a83c7df16164bdaa7818b1 (diff)
downloadmariadb-git-3b6a64c24776c0291962147dfb3fe331b0b46cc4.tar.gz
Fixed bug mdev-9937.
When the specification of a WITH table referred to a view that used a based table with the same name as the WITH table the server went into an infinite loop because it erroneously resolved the reference to the base table as the reference to the WITH table. With tables used in a view cannot be searched for beyond the scope the view.
Diffstat (limited to 'sql/sql_lex.cc')
-rw-r--r--sql/sql_lex.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_lex.cc b/sql/sql_lex.cc
index 6056b03f4eb..de345b4dd1c 100644
--- a/sql/sql_lex.cc
+++ b/sql/sql_lex.cc
@@ -2078,6 +2078,7 @@ void st_select_lex_unit::init_query()
found_rows_for_union= 0;
insert_table_with_stored_vcol= 0;
derived= 0;
+ is_view= false;
with_clause= 0;
with_element= 0;
columns_are_renamed= false;