Bug #95096 | INSERT INTO ... ON DUPLICATE KEY UPDATE returns wrong number of rows updated | ||
---|---|---|---|
Submitted: | 24 Apr 2019 1:27 | Modified: | 24 Apr 2019 6:03 |
Reporter: | Sangamesh Bellad | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: DML | Severity: | S3 (Non-critical) |
Version: | OS: | Any | |
Assigned to: | CPU Architecture: | Any |
[24 Apr 2019 1:27]
Sangamesh Bellad
[24 Apr 2019 6:03]
MySQL Verification Team
Hi Sangamesh, Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at https://dev.mysql.com/doc/refman/8.0/en/insert-on-duplicate.html Quoting from manual "With ON DUPLICATE KEY UPDATE, the affected-rows value per row is 1 if the row is inserted as a new row, 2 if an existing row is updated, and 0 if an existing row is set to its current values" thanks, Umesh