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

Fixed CORE-3807: Error "Invalid expression in the select list" can be unexpectedly raised if a string literal is used inside a GROUP BY clause in a multi-byte connection.

This commit is contained in:
dimitr 2012-04-04 11:00:14 +00:00
parent 03b8f80a98
commit b587289d81

View File

@ -3412,8 +3412,11 @@ static bool node_match(const dsql_nod* node1, const dsql_nod* node2,
{ {
return false; return false;
} }
return !memcmp(node1->nod_desc.dsc_address, node2->nod_desc.dsc_address, { // scope for the local vars
node1->nod_desc.dsc_length); 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);
}
case nod_map: case nod_map:
{ {