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

Better pay attention to the buffer scope.

This commit is contained in:
dimitr 2010-01-22 15:41:47 +00:00
parent 9550d251a3
commit 5254696532

View File

@ -397,6 +397,8 @@ size_t HashJoin::hashKeys(thread_db* tdbb, jrd_req* request, HashTable* table, j
size_t length = desc->dsc_length;
const UCHAR* address = desc->dsc_address;
MoveBuffer buffer;
if (desc->isText())
{
// Adjust the data length to the real string length
@ -412,8 +414,6 @@ size_t HashJoin::hashKeys(thread_db* tdbb, jrd_req* request, HashTable* table, j
length = strlen((char*) address);
}
MoveBuffer buffer;
if (IS_INTL_DATA(desc))
{
// Convert the INTL string into the binary comparable form