Bug #21381 | Engine not notified about multi-table UPDATE IGNORE | ||
---|---|---|---|
Submitted: | 1 Aug 2006 8:31 | Modified: | 10 Oct 2006 18:14 |
Reporter: | Paul McCullagh (Basic Quality Contributor) (OCA) | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server | Severity: | S2 (Serious) |
Version: | 4.1, 5.1 | OS: | |
Assigned to: | Sergey Vojtovich | CPU Architecture: | Any |
Tags: | duplicate, IGNORE, key, UPDATE |
[1 Aug 2006 8:31]
Paul McCullagh
[20 Sep 2006 19:02]
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/12280 ChangeSet@1.2548, 2006-09-20 19:34:27+05:00, svoj@mysql.com +3 -0 BUG#21381 - Engine not notified about multi-table UPDATE IGNORE Though this is not storage engine specific problem, I was able to repeat this problem with BDB and NDB engines only. That was the reason to add a test case into ndb_update.test. As a result different bad things could happen. BDB has removed duplicate rows which is not expected. NDB returns an error. For multi table update notify storage engine about UPDATE IGNORE as it is done in single table UPDATE.
[5 Oct 2006 12:44]
Sergey Vojtovich
Was approved by Ingo and Antony.
[5 Oct 2006 13:21]
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/13112 ChangeSet@1.2548, 2006-10-05 18:23:53+05:00, svoj@mysql.com +3 -0 BUG#21381 - Engine not notified about multi-table UPDATE IGNORE Though this is not storage engine specific problem, I was able to repeat this problem with BDB and NDB engines only. That was the reason to add a test case into ndb_update.test. As a result different bad things could happen. BDB has removed duplicate rows which is not expected. NDB returns an error. For multi table update notify storage engine about UPDATE IGNORE as it is done in single table UPDATE.
[6 Oct 2006 9:46]
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/13223 ChangeSet@1.2558, 2006-10-06 14:47:58+05:00, svoj@mysql.com +2 -0 Per discussion with pekka removed non-deterministic test case for bug#21381.
[9 Oct 2006 11:16]
Sergey Vojtovich
Fixed in 4.1.22, 5.0.27, 5.1.12.
[10 Oct 2006 18:14]
Paul DuBois
Noted in 4.1.22, 5.0.27, 5.1.12 changelogs. For multiple-table UPDATE statements, storage engines were not notified of duplicate-key errors.
[25 Oct 2006 16:42]
Paul DuBois
The 5.0.x fix is in 5.0.30.