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

Fixed my yesterday's commit.

This commit is contained in:
dimitr 2012-04-05 09:48:04 +00:00
parent 61cb211058
commit 61b460b13d

View File

@ -3413,9 +3413,9 @@ static bool node_match(const dsql_nod* node1, const dsql_nod* node2,
return false;
}
{ // scope for the local vars
const dsql_str* const string1 = (dsql_str*) node1->nod_arg[0];
const dsql_str* const string2 = (dsql_str*) node2->nod_arg[0];
return !memcmp(string1->str_data, string2->str_data, string1->str_length);
const USHORT len = (node1->nod_desc.dsc_dtype == dtype_text) ?
((dsql_str*) node1->nod_arg[0])->str_length : node1->nod_desc.dsc_length;
return !memcmp(node1->nod_desc.dsc_address, node2->nod_desc.dsc_address, len);
}
case nod_map: