Bug #57708 | EXCHANGE PARTITION misuses IGNORE | ||
---|---|---|---|
Submitted: | 25 Oct 2010 10:56 | Modified: | 13 Dec 2010 7:42 |
Reporter: | Mattias Jonsson | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Partitions | Severity: | S2 (Serious) |
Version: | 5.6 | OS: | Any |
Assigned to: | Mattias Jonsson | CPU Architecture: | Any |
[25 Oct 2010 10:56]
Mattias Jonsson
[25 Oct 2010 13:18]
MySQL Verification Team
Thank you for the bug report.
[29 Oct 2010 10:22]
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/122291 3302 Mattias Jonsson 2010-10-29 Bug#57708: EXCHANGE PARTITION misuses IGNORE First problem was that IGNORE was used for skipping the whole validation step (check of all rows in the table to fit into the partition) instead of changing every row error into a warning. Second problem was that IGNORE opened up the possibility for bugs like 55944. Solution was to remove the IGNORE option from EXCHANGE PARTITION WITH TABLE (WL#4445). @ mysql-test/r/partition_exchange.result Updated the results @ mysql-test/t/partition_exchange.test Removed the IGNORE option from EXCHANGE PARTITION (wl#4445) @ sql/sql_partition_admin.cc Removed the IGNORE option from EXCHANGE PARTITION (wl#4445) @ sql/sql_yacc.yy Removed the IGNORE option from EXCHANGE PARTITION (wl#4445)
[16 Nov 2010 1:24]
Mattias Jonsson
pushed to mysql-trunk-bugfixing
[16 Nov 2010 1:43]
Mattias Jonsson
Marked bug#55944 as duplicate of this (not really a duplicate, but since IGNORE was disabled, that bug cannot occur any more).
[5 Dec 2010 12:44]
Bugs System
Pushed into mysql-trunk 5.6.1 (revid:alexander.nozdrin@oracle.com-20101205122447-6x94l4fmslpbttxj) (version source revid:alexander.nozdrin@oracle.com-20101205122447-6x94l4fmslpbttxj) (merge vers: 5.6.1) (pib:23)
[13 Dec 2010 6:44]
Jon Stephens
Please note that the correct syntax should be "ALTER IGNORE TABLE tbl_1_name EXCHANGE PARTITION partition_name WITH TABLE tbl_2_name" -- this is standard for all ALTER TABLE statements. Thanks!
[13 Dec 2010 7:42]
Jon Stephens
The issue doesn't appear in any release, so no changelog entry is required. Noted that IGNORE is ignored by ALTER TABLE EXCHANGE PARTITION in the 5.6 versions of "Exchanging Partitions and Subpartitions with Tables" and "ALTER TABLE Syntax". Closed.