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

Fixed a crash when validating NULL with a constraint

This commit is contained in:
asfernandes 2007-01-17 14:21:50 +00:00
parent 36e3a894b3
commit c359f0c080

View File

@ -1043,8 +1043,11 @@ dsc* EVL_expr(thread_db* tdbb, jrd_nod* const node)
}
case nod_domain_validation:
if (request->req_domain_validation->dsc_flags & DSC_null)
if (request->req_domain_validation == NULL ||
(request->req_domain_validation->dsc_flags & DSC_null))
{
request->req_flags |= req_null;
}
return request->req_domain_validation;
case nod_value_if: