diff options
author | evgen@moonbone.local <> | 2005-09-22 01:38:39 +0400 |
---|---|---|
committer | evgen@moonbone.local <> | 2005-09-22 01:38:39 +0400 |
commit | b7e8c8b1126e50442f6de02d257d7ab6c020930c (patch) | |
tree | 855aa772951e6545174d3ef67ecc3d5d677db4ee /sql/sql_prepare.cc | |
parent | 21636f1ccb4783f9a2b3e99b7bd29cd33ebef466 (diff) | |
download | mariadb-git-b7e8c8b1126e50442f6de02d257d7ab6c020930c.tar.gz |
Fix bug #13180 thd->allow_sum_funcs wasn't reset before query processing.
thd->allow_sum_func was left 'true' after previous statement thus allowing
sum funcs to be present in conditions.
thd->allow_sum_func should be set to 0 for each query and each prepared
statement reinitialization. This is done in lex_start() and
reset_stmt_for_execute().
Diffstat (limited to 'sql/sql_prepare.cc')
-rw-r--r-- | sql/sql_prepare.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_prepare.cc b/sql/sql_prepare.cc index 8a50d0bd50e..c8f417c9b9b 100644 --- a/sql/sql_prepare.cc +++ b/sql/sql_prepare.cc @@ -1738,6 +1738,7 @@ static void reset_stmt_for_execute(Prepared_statement *stmt) lex->current_select= &lex->select_lex; if (lex->result) lex->result->cleanup(); + thd->allow_sum_func= 0; } |