8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 22:43:03 +01:00

fix bug in ignore_nulls part

This commit is contained in:
arnobrinkman 2004-07-20 18:57:42 +00:00
parent 448e3d3997
commit cd36ca6e05

View File

@ -582,9 +582,12 @@ btree_page* BTR_find_page(thread_db* tdbb,
// isn't a starting descriptor, walk down the left side of the index (right
// side if we are going backwards).
SLONG number;
// Ignore NULLs if flag is set and this is a 1 segment index,
// ASC index and no lower bound value is given.
const bool ignoreNulls = ((idx->idx_count == 1) &&
!(idx->idx_flags & idx_descending) &&
(retrieval->irb_generic & irb_ignore_null_value_key));
(retrieval->irb_generic & irb_ignore_null_value_key) &&
!(retrieval->irb_lower_count));
if ((!backwards && retrieval->irb_lower_count) ||
(!backwards && ignoreNulls) ||