| Bug #27387 | Error checking is incorrect in INSERT ... ON DUPLICATE KEY UPDATE | ||
|---|---|---|---|
| Submitted: | 23 Mar 2007 5:08 | Modified: | 30 Mar 2007 19:06 |
| Reporter: | John David Duncan | ||
| Status: | Not a Bug | ||
| Category: | Server: General | Severity: | S2 (Serious) |
| Version: | All 5.0 and 5.1, 4.1, 5.2 | OS: | Any (All) |
| Assigned to: | Evgeny Potemkin | Target Version: | |
[23 Mar 2007 5:08]
John David Duncan
[23 Mar 2007 9:49]
Sveta Smirnova
Please do not submit the same bug more than once. An existing bug report already describes this very problem. Even if you feel that your issue is somewhat different, the resolution is likely to be the same. Because of this, we hope you add your comments to the original bug instead. Thank you for your interest in MySQL. Duplicate of Bug #27210
[23 Mar 2007 16:06]
John David Duncan
No, this is not a duplicate of #27210. This is a very different bug which is present in all versions of mysql and with all storage engines.
[26 Mar 2007 8:53]
Sveta Smirnova
Thank you for the additional comment. Verified as described. All versions are affected.
[30 Mar 2007 19:06]
Igor Babaev
This is definitely not a bug. The statement is called INSERT ... ON DUPLICATE KEY UPDATE. Its semantic is: 1. try to insert a row. 2. if the insert operation returns an error "DUPLICATE KEY" perform update. Apparently the customer needs a different semantics: 1. try to insert a row. 2. if the insert operation returns ANY errorperform update.
