summaryrefslogtreecommitdiff
path: root/mysql-test/r/update.result
diff options
context:
space:
mode:
authorevgen@moonbone.local <>2005-09-22 01:38:39 +0400
committerevgen@moonbone.local <>2005-09-22 01:38:39 +0400
commitb7e8c8b1126e50442f6de02d257d7ab6c020930c (patch)
tree855aa772951e6545174d3ef67ecc3d5d677db4ee /mysql-test/r/update.result
parent21636f1ccb4783f9a2b3e99b7bd29cd33ebef466 (diff)
downloadmariadb-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 'mysql-test/r/update.result')
-rw-r--r--mysql-test/r/update.result12
1 files changed, 12 insertions, 0 deletions
diff --git a/mysql-test/r/update.result b/mysql-test/r/update.result
index e35d4e29fe4..d6c1118f90c 100644
--- a/mysql-test/r/update.result
+++ b/mysql-test/r/update.result
@@ -251,3 +251,15 @@ f1 f2
1 1
2 2
drop table t1,t2;
+create table t1(f1 int);
+select DATABASE();
+DATABASE()
+test
+update t1 set f1=1 where count(*)=1;
+ERROR HY000: Invalid use of group function
+select DATABASE();
+DATABASE()
+test
+delete from t1 where count(*)=1;
+ERROR HY000: Invalid use of group function
+drop table t1;