mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 04:43:03 +01:00
Fixed the regression I introduced some time ago
This commit is contained in:
parent
98f4d499a1
commit
643c6d35ec
@ -475,6 +475,8 @@ ULONG HashJoin::computeHash(thread_db* tdbb,
|
|||||||
const SubStream& sub,
|
const SubStream& sub,
|
||||||
UCHAR* keyBuffer) const
|
UCHAR* keyBuffer) const
|
||||||
{
|
{
|
||||||
|
memset(keyBuffer, 0, sub.totalKeyLength);
|
||||||
|
|
||||||
UCHAR* keyPtr = keyBuffer;
|
UCHAR* keyPtr = keyBuffer;
|
||||||
|
|
||||||
for (FB_SIZE_T i = 0; i < sub.keys->getCount(); i++)
|
for (FB_SIZE_T i = 0; i < sub.keys->getCount(); i++)
|
||||||
@ -509,10 +511,6 @@ ULONG HashJoin::computeHash(thread_db* tdbb,
|
|||||||
memcpy(keyPtr, desc->dsc_address, keyLength);
|
memcpy(keyPtr, desc->dsc_address, keyLength);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
memset(keyPtr, 0, keyLength);
|
|
||||||
}
|
|
||||||
|
|
||||||
keyPtr += keyLength;
|
keyPtr += keyLength;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user