summaryrefslogtreecommitdiff
path: root/sql/sql_lex.cc
diff options
context:
space:
mode:
authorunknown <sanja@askmonty.org>2011-11-02 10:05:07 +0200
committerunknown <sanja@askmonty.org>2011-11-02 10:05:07 +0200
commite6d01ad3b9465f808fd9dc853f1a6b44b17f4e46 (patch)
tree98100640586baabef5384c949fc1236b7b067f42 /sql/sql_lex.cc
parent64986873252e6c4fff867407d1b2f92abe24ca88 (diff)
parentb40bc2b3e3afee92a6d33d80840840fcf9baae11 (diff)
downloadmariadb-git-e6d01ad3b9465f808fd9dc853f1a6b44b17f4e46.tar.gz
Merge of LP BUG#872775 fix
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 a6494c72889..4a4beb496aa 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;