8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-02-02 10:40:38 +01:00

Postfix for my prior commit.

This commit is contained in:
dimitr 2013-05-06 18:41:59 +00:00
parent c1c5d2b0db
commit ac43e1f2d2

View File

@ -5561,10 +5561,10 @@ static ULONG insert_node(thread_db* tdbb,
jumpNodes->clear();
new_key->key_flags = 0;
new_key->key_nulls = 0;
if (unique)
{
// hvlad: it is important to set correct flags for all-NULL's key
// hvlad: it is important to set correct bitmap for all-NULL's key
// else insert_node() at upper level will validate duplicates and
// insert node into the end of duplicates chain instead of correct
// place (in order of record numbers).
@ -5575,7 +5575,7 @@ static ULONG insert_node(thread_db* tdbb,
if (new_key->key_length == nullKey.key_length &&
memcmp(new_key->key_data, nullKey.key_data, nullKey.key_length) == 0)
{
new_key->key_flags = nullKey.key_flags;
new_key->key_nulls = nullKey.key_nulls;
}
}