Bug #112124 | Sometimes , ROW_COUNT() return wrong answer, which cause by index. | ||
---|---|---|---|
Submitted: | 21 Aug 2023 15:10 | Modified: | 22 Aug 2023 12:26 |
Reporter: | linkang zhang (OCA) | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: DML | Severity: | S3 (Non-critical) |
Version: | 8.0 | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | DML, replace into, row count |
[21 Aug 2023 15:10]
linkang zhang
[22 Aug 2023 12:26]
MySQL Verification Team
Hi Mr. zhang, Thank you for your bug report. We managed to repeat your test case: ROW_COUNT() 1 ROW_COUNT() 1 ROW_COUNT() 1 ROW_COUNT() 2 We printed row count after each DML. There is , however , an explanation why the row count is 2 and not 1. Namely, the ROW_COUNT() value is similar to the value from the mysql_affected_rows(). Hence, this is a bug , but a very low priority one.