summaryrefslogtreecommitdiff
path: root/sql/sql_lex.cc
diff options
context:
space:
mode:
authorunknown <sanja@askmonty.org>2011-11-01 17:42:52 +0200
committerunknown <sanja@askmonty.org>2011-11-01 17:42:52 +0200
commitb40bc2b3e3afee92a6d33d80840840fcf9baae11 (patch)
tree6b836e02a31995d2fdf3a71ff04c31f0abccccf4 /sql/sql_lex.cc
parent391c5db1fca4b9d36afa3d131b4f5401fa9189f6 (diff)
downloadmariadb-git-b40bc2b3e3afee92a6d33d80840840fcf9baae11.tar.gz
Fix of LP BUG#872775.
The problem was that merged views has its own nest_level numbering => when we compare nest levels we should take into considiration basis (i.e. 0 level), if it is different then nest levels are not comparable.
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 cc10cd5dee3..8513f73b90c 100644
--- a/sql/sql_lex.cc
+++ b/sql/sql_lex.cc
@@ -339,6 +339,7 @@ void lex_start(THD *thd)
lex->event_parse_data= NULL;
lex->profile_options= PROFILE_NONE;
lex->nest_level=0 ;
+ lex->select_lex.nest_level_base= &lex->unit;
lex->allow_sum_func= 0;
lex->in_sum_func= NULL;
lex->protect_against_global_read_lock= FALSE;