Bug #13180 | server accepts sometimes group in update's where condition | ||
---|---|---|---|
Submitted: | 14 Sep 2005 13:50 | Modified: | 23 Sep 2005 18:19 |
Reporter: | Martin Friebe (Gold Quality Contributor) (OCA) | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Optimizer | Severity: | S3 (Non-critical) |
Version: | 4.1.14/5.0 BK source | OS: | * / freebsd/Suse 9.3 |
Assigned to: | Evgeny Potemkin | CPU Architecture: | Any |
[14 Sep 2005 13:50]
Martin Friebe
[14 Sep 2005 14:42]
MySQL Verification Team
Thank you for the bug report. miguel@hegel:~/dbs/5.0> bin/mysqladmin -uroot create xxx miguel@hegel:~/dbs/5.0> bin/mysql -uroot Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 2 to server version: 5.0.13-beta-debug Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> use xxx; Database changed mysql> create table tbl1 select 1 a, 2 b; Query OK, 1 row affected (0.04 sec) Records: 1 Duplicates: 0 Warnings: 0 mysql> update tbl1 set a=3 where b=4 and count(*) = 2; Query OK, 0 rows affected (0.01 sec) Rows matched: 0 Changed: 0 Warnings: 0 mysql> update tbl1 set a=3 where b=4 and count(*) = 2; ERROR 1111 (HY000): Invalid use of group function mysql> use xxx; Database changed mysql> update tbl1 set a=3 where b=4 and count(*) = 2; Query OK, 0 rows affected (0.01 sec) Rows matched: 0 Changed: 0 Warnings: 0
[18 Sep 2005 23:26]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/internals/30027
[19 Sep 2005 18:38]
Martin Friebe
also happens in delete: delete from table where count(*)=1; as the patch is against sql_update.cc, I wonder if this will be adressed.
[19 Sep 2005 23:52]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/internals/30075
[21 Sep 2005 21:32]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/internals/30171
[21 Sep 2005 21:38]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/internals/30172
[21 Sep 2005 22:50]
Evgeny Potemkin
thd->allow_sum_func was left 'true' after previous statement thus allowing sum funcs to be present in conditions. Fixed in 4.1.14, cset 1.2442.1.1
[21 Sep 2005 23:30]
Evgeny Potemkin
Fixed in 5.0.14
[23 Sep 2005 18:19]
Paul DuBois
Noted in 4.1.15, 5.0.14 changelogs.