Bug #111183 | When use ON DUPLICATE UPDATE syntax, TIMESTAMP in primary key, get wrong answer | ||
---|---|---|---|
Submitted: | 29 May 2023 9:46 | Modified: | 29 May 2023 12:20 |
Reporter: | linkang zhang (OCA) | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: DML | Severity: | S3 (Non-critical) |
Version: | 5.7 | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | UPDATE DUPLICATE affected_rows |
[29 May 2023 9:46]
linkang zhang
[29 May 2023 12:20]
MySQL Verification Team
Hello Mr. zhang, Thank you for your bug report. We ran your test case and concluded that it is a bug. Bug is not in the DML statements, but it is in not following of the definition of the TIMESTAMP in the table. This bug is affecting, both 5.7 and latest 8.0. Verified as reported.