Skip to content

Commit 19823f8

Browse files
committed
Correction for drop not null constraint validation.
1 parent f947d0b commit 19823f8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/jrd/SystemTriggers.epp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,8 @@ void beforeDeleteRelationConstraint(thread_db* tdbb, Record* record)
519519

520520
FOR (REQUEST_HANDLE request2 TRANSACTION_HANDLE transaction)
521521
RCL IN RDB$RELATION_CONSTRAINTS
522-
WITH RCL.RDB$INDEX_NAME = IND.RDB$INDEX_NAME
522+
WITH RCL.RDB$INDEX_NAME = IND.RDB$INDEX_NAME AND
523+
RCL.RDB$CONSTRAINT_TYPE = PRIMARY_KEY
523524
{
524525
ERR_post(Arg::Gds(isc_primary_key_notnull));
525526
}

0 commit comments

Comments
 (0)