[MDEV-30717] ROW_COUNT() after REPLACE of duplicit row returns 1 Created: 2023-02-23 Updated: 2023-11-28 |
|
| Status: | Confirmed |
| Project: | MariaDB Server |
| Component/s: | Server |
| Affects Version/s: | 10.6.11 |
| Fix Version/s: | 10.6, 10.11 |
| Type: | Bug | Priority: | Major |
| Reporter: | Martin Tomec | Assignee: | Oleksandr Byelkin |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | replace | ||
| Description |
|
On table with single unique index:
ROW_COUNT() returns allways 1, even for duplicate rows:
On table with multiple indexes:
ROW_COUNT() returns correct result according to documentation (1 and then 2):
|
| Comments |
| Comment by Weijun Huang [ 2023-02-23 ] |
|
I am not sure if it is a bug. Because in MySQL 8.0, the result is as same as MariaDB. |
| Comment by Martin Tomec [ 2023-02-23 ] |
|
So it seems, that the same bug is in MySQL 8.0.
In this case, no new rows was inserted, so the correct result according to documentation is 2 or 0. |
| Comment by Sergei Golubchik [ 2023-03-26 ] |
|
shows the correct value (2) for MyISAM |