[MDEV-26844] DELETE returns ROW_NUMBER=1 for every row upon ER_TRUNCATED_WRONG_VALUE Created: 2021-10-15 Updated: 2021-10-26 Resolved: 2021-10-26 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Data Manipulation - Delete |
| Affects Version/s: | N/A |
| Fix Version/s: | 10.7.1 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Elena Stepanova | Assignee: | Rucha Deodhar |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||
| Description |
|
Same for every condition. If I add ORDER BY to DELETE, it starts returning ROW_NUMBER=0 instead:
This is also counter-intuitive. If there supposed to be any difference in behavior, I would expect DELETE with ORDER BY to be supported and without ORDER BY unsupported, but not vice versa as it appears now. |
| Comments |
| Comment by Rucha Deodhar [ 2021-10-19 ] | |||||||||
|
Patch: https://github.com/MariaDB/server/commit/76af9e1d56053e0fc5519104ab86e100ffb980be | |||||||||
| Comment by Sergei Golubchik [ 2021-10-24 ] | |||||||||
|
let's split this MDEV is two. The first is without ORDER BY and without any filesort changes, only DELETE part:
This test and fix are ok to push, please, push them. | |||||||||
| Comment by Rucha Deodhar [ 2021-10-24 ] | |||||||||
|
Fixed as two separate commits and pushed to bb-10.7-row_number | |||||||||
| Comment by Sergei Golubchik [ 2021-10-24 ] | |||||||||
|
sorry, I wasn't clear enough. Only the first part — without ORDER BY — was ok to push. but np problem, the fix isn't in the main tree yet, so nothing irreversible has happened yet, let's continue. Please, try this test case:
| |||||||||
| Comment by Rucha Deodhar [ 2021-10-25 ] | |||||||||
|
Patch (fix for UPDATE and DELETE with ORDER BY) : https://github.com/MariaDB/server/commit/0b01c7cb7bc594061f689f13fec8c40449996d62 | |||||||||
| Comment by Sergei Golubchik [ 2021-10-26 ] | |||||||||
|
the ORDER BY issue is moved to MDEV-26909 |