mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-24 00:03: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:
parent
03b8f80a98
commit
b587289d81
@ -3412,8 +3412,11 @@ static bool node_match(const dsql_nod* node1, const dsql_nod* node2,
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return !memcmp(node1->nod_desc.dsc_address, node2->nod_desc.dsc_address,
|
||||
node1->nod_desc.dsc_length);
|
||||
{ // 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);
|
||||
}
|
||||
|
||||
case nod_map:
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user