mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-22 22:43:03 +01:00
Backport fix for bug CORE-2165 : Unnecessary 1 index read may occur when using strict inequality condition
This commit is contained in:
parent
a1c9527427
commit
f58313ecb3
@ -637,8 +637,12 @@ static void checkForLowerKeySkip(
|
||||
else
|
||||
{
|
||||
// Check if we have a duplicate node (for the same page)
|
||||
if (node.prefix < lower.key_length) {
|
||||
skipLowerKey = false;
|
||||
if (node.prefix < lower.key_length)
|
||||
{
|
||||
if (node.prefix + node.length == lower.key_length)
|
||||
skipLowerKey = (memcmp(node.data, lower.key_data + node.prefix, node.length) == 0);
|
||||
else
|
||||
skipLowerKey = false;
|
||||
}
|
||||
else if ((node.prefix == lower.key_length) && node.length)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user