1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

MDEV-30373 Wrong result with range access

This issue was caused by the bug fix for
MDEV-30325 Wrong result upon range query using index condition

The bug could happen in the case of several overlapping key ranges
with OR
This commit is contained in:
Monty
2023-01-11 18:12:40 +02:00
parent 17858e03a7
commit 7d1df207c4
6 changed files with 57 additions and 5 deletions

View File

@@ -10621,7 +10621,7 @@ key_or(RANGE_OPT_PARAM *param, SEL_ARG *key1,SEL_ARG *key2)
tmp: [---------]
*/
key2->copy_max_to_min(tmp);
key2= key2_next;
key2->next= key2_next; // In case of key2_shared
}
continue;
}