[MDEV-30946] Index usage for DATE(datetime_column) = const does not work for DELETE and UPDATE Created: 2023-03-28 Updated: 2023-04-25 Resolved: 2023-04-25 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Optimizer |
| Affects Version/s: | 11.1 |
| Fix Version/s: | 11.1.1 |
| Type: | Bug | Priority: | Major |
| Reporter: | Lena Startseva | Assignee: | Oleg Smirnov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
Expected that index usage for like "DATE(col) = const" to "col BETWEEN concat(const, ' 00:00:00') AND concat(const, ' 23:59:59')" is the same for SELECT, UPDATE and DELETE, but it works only for SELECT.
Actual result:
|
| Comments |
| Comment by Oleg Smirnov [ 2023-04-11 ] | |||||||
|
The fix is pushed to preview-11.1-mdev-8320. psergei, please review. | |||||||
| Comment by Sergei Petrunia [ 2023-04-12 ] | |||||||
|
https://lists.launchpad.net/maria-developers/msg13311.html review input | |||||||
| Comment by Oleg Smirnov [ 2023-04-13 ] | |||||||
|
Fixed, pushed:
There now 5 commits in the branch, should I squash them? | |||||||
| Comment by Sergei Petrunia [ 2023-04-24 ] | |||||||
|
The last patch is ok to push. | |||||||
| Comment by Lena Startseva [ 2023-04-25 ] | |||||||
|
Testing done. Ok to push. | |||||||
| Comment by Oleg Smirnov [ 2023-04-25 ] | |||||||
|
Pushed to 11.1 |