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.
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.050 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.