mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 06:03:02 +01:00
Fixed CORE-2441: Server crashes on UPDATE OR INSERT statement
This commit is contained in:
parent
f42cec6767
commit
f5c31ce09a
@ -10436,12 +10436,14 @@ static bool set_parameter_type(CompiledStatement* statement, dsql_nod* in_node,
|
||||
dsql_fld* field = (dsql_fld*) in_node->nod_arg[e_cast_target];
|
||||
if (par_node->nod_type == nod_parameter) {
|
||||
dsql_par* parameter = (dsql_par*) par_node->nod_arg[e_par_parameter];
|
||||
DEV_BLKCHK(parameter, dsql_type_par);
|
||||
if (parameter)
|
||||
{
|
||||
parameter->par_desc = par_node->nod_desc;
|
||||
parameter->par_node = par_node;
|
||||
MAKE_desc_from_field(¶meter->par_desc, field);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user