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

Fixed CORE-4453 - Regression: NOT NULL constraint, declared in domain, does not work.

This commit is contained in:
asfernandes 2014-06-08 01:53:21 +00:00
parent 0911475088
commit 1277bf593b

View File

@ -5567,7 +5567,9 @@ void RelationNode::defineField(thread_db* tdbb, DsqlCompilerScratch* dsqlScratch
FieldDefinition fieldDefinition(*tdbb->getDefaultPool());
fieldDefinition.relationName = name;
fieldDefinition.name = field->fld_name;
fieldDefinition.notNullFlag = notNullFlag;
if (notNullFlag)
fieldDefinition.notNullFlag = true; // else, make it not specified
if (position >= 0)
fieldDefinition.position = position;