summaryrefslogtreecommitdiff
path: root/sql/sql_lex.cc
diff options
context:
space:
mode:
authorigor@rurik.mysql.com <>2005-10-15 14:32:37 -0700
committerigor@rurik.mysql.com <>2005-10-15 14:32:37 -0700
commitc136e9c43b0175e63c4ccfbf97fe6e1b2d94ad23 (patch)
tree5f5c67db9ee4935287f4852c5bc05fcc067ce082 /sql/sql_lex.cc
parenta5c5b2c65841827444ffe8878b900e6d2b3f5781 (diff)
downloadmariadb-git-c136e9c43b0175e63c4ccfbf97fe6e1b2d94ad23.tar.gz
Fixed bug #12762:
allowed set functions aggregated in outer subqueries, allowed nested set functions.
Diffstat (limited to 'sql/sql_lex.cc')
-rw-r--r--sql/sql_lex.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/sql_lex.cc b/sql/sql_lex.cc
index f6d4767089b..1005b6391d9 100644
--- a/sql/sql_lex.cc
+++ b/sql/sql_lex.cc
@@ -181,6 +181,9 @@ void lex_start(THD *thd, uchar *buf,uint length)
lex->sroutines_list.empty();
lex->sroutines_list_own_last= lex->sroutines_list.next;
lex->sroutines_list_own_elements= 0;
+ lex->nest_level=0 ;
+ lex->allow_sum_func= 0;
+ lex->in_sum_func= NULL;
DBUG_VOID_RETURN;
}
@@ -1138,6 +1141,7 @@ void st_select_lex::init_query()
first_cond_optimization= 1;
parsing_place= NO_MATTER;
exclude_from_table_unique_test= no_wrap_view_item= FALSE;
+ nest_level= 0;
link_next= 0;
}
@@ -1157,6 +1161,7 @@ void st_select_lex::init_select()
interval_list.empty();
use_index.empty();
ftfunc_list_alloc.empty();
+ inner_sum_func_list= 0;
ftfunc_list= &ftfunc_list_alloc;
linkage= UNSPECIFIED_TYPE;
order_list.elements= 0;