Bug #18025 | Partitions: Alter col. used for part. function, SELECT with wrong result set | ||
---|---|---|---|
Submitted: | 7 Mar 2006 12:35 | Modified: | 2 Apr 2006 6:51 |
Reporter: | Matthias Leich | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Partitions | Severity: | S1 (Critical) |
Version: | 5.1 | OS: | |
Assigned to: | Sergey Petrunya | CPU Architecture: | Any |
[7 Mar 2006 12:35]
Matthias Leich
[7 Mar 2006 12:37]
Matthias Leich
testscript
Attachment: ml1114.test (application/test, text), 1.29 KiB.
[30 Mar 2006 23:15]
Sergey Petrunya
Matthias, I won't say that that is "corruption" - it is reproduceable without ALTER TABLE too, when one creates table with MEDIUMINT column.
[30 Mar 2006 23:16]
Sergey Petrunya
The bug seems to be two separate problems in partition pruning code: * Inconsistent handling of MEDIUMINT columns wrt. TINYINT/INT * A bug in partition pruning algorithm
[30 Mar 2006 23:39]
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/commits/4349
[31 Mar 2006 11:11]
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/commits/4362
[31 Mar 2006 20:16]
Sergey Petrunya
The fix has been pushed to 5.1.9. The fix makes the following changes: * Now partition pruning works for MEDIUMINT columns in the same way as for other *INT columns. * Fixed a bug in partition pruning code that could cause some partitions that should be used not to be used for certain kinds of WHERE clauses
[2 Apr 2006 6:51]
Jon Stephens
Thank you for your bug report. This issue has been committed to our source repository of that product and will be incorporated into the next release. If necessary, you can access the source repository and build the latest available version, including the bugfix, yourself. More information about accessing the source trees is available at http://www.mysql.com/doc/en/Installing_source_tree.html Additional info: Documented fixes in 5.1.9 changelog. Closed.