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

Fixed CORE-2441: Server crashes on UPDATE OR INSERT statement

This commit is contained in:
alexpeshkoff 2009-04-27 16:29:01 +00:00
parent f42cec6767
commit f5c31ce09a

View File

@ -10436,11 +10436,13 @@ 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);
parameter->par_desc = par_node->nod_desc;
parameter->par_node = par_node;
MAKE_desc_from_field(&parameter->par_desc, field);
return true;
if (parameter)
{
parameter->par_desc = par_node->nod_desc;
parameter->par_node = par_node;
MAKE_desc_from_field(&parameter->par_desc, field);
return true;
}
}
return false;
}