Bug #11867 | Wrong result with "... WHERE ROW( a, b ) IN ( SELECT DISTINCT a, b WHERE ...);" | ||
---|---|---|---|
Submitted: | 11 Jul 2005 18:26 | Modified: | 17 Aug 2005 18:17 |
Reporter: | Are you mortal Then prepare to die. | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Optimizer | Severity: | S2 (Serious) |
Version: | 4.1.11-standard-log | OS: | dec-osf5.1b-alphaev67 |
Assigned to: | Oleksandr Byelkin | CPU Architecture: | Any |
[11 Jul 2005 18:26]
Are you mortal Then prepare to die.
[11 Jul 2005 18:31]
Are you mortal Then prepare to die.
The second part of my example should of course read; ---- The above expected result is exactly what you do get with... SELECT * FROM PIFFLE WHERE ROW(ONE,TWO) IN (SELECT ONE,TWO FROM PIFFLE WHERE FLAG = 'N'); i.e. if you remove the 'DISTINCT' part of the sub query. ---- Sorry if that is / was a bit confusing.
[12 Jul 2005 3:29]
Jorge del Conde
Hi Thanks for your bug report. I was able to reproduce this bug using 4.1.13 from bk!
[7 Aug 2005 19:10]
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/27980
[8 Aug 2005 21: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/28037
[13 Aug 2005 4:45]
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/28245
[13 Aug 2005 11:31]
Oleksandr Byelkin
Thank you for bugreport. bugfix pushed to 4.1.14 & 5.0.12
[17 Aug 2005 18:17]
Paul DuBois
Noted in 4.1.14, 5.0.12 changelogs.