summaryrefslogtreecommitdiff
path: root/sql/sql_prepare.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_prepare.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_prepare.cc')
-rw-r--r--sql/sql_prepare.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/sql_prepare.cc b/sql/sql_prepare.cc
index 5f3539ca1e9..e32fa3f962a 100644
--- a/sql/sql_prepare.cc
+++ b/sql/sql_prepare.cc
@@ -2125,7 +2125,8 @@ void reinit_stmt_before_use(THD *thd, LEX *lex)
lex->result->cleanup();
lex->result->set_thd(thd);
}
- thd->allow_sum_func= 0;
+ lex->allow_sum_func= 0;
+ lex->in_sum_func= NULL;
DBUG_VOID_RETURN;
}