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

Correction for drop not null constraint validation.

This commit is contained in:
Adriano dos Santos Fernandes 2024-08-02 23:35:59 -03:00
parent f947d0bb17
commit 19823f8e59

View File

@ -519,7 +519,8 @@ void beforeDeleteRelationConstraint(thread_db* tdbb, Record* record)
FOR (REQUEST_HANDLE request2 TRANSACTION_HANDLE transaction)
RCL IN RDB$RELATION_CONSTRAINTS
WITH RCL.RDB$INDEX_NAME = IND.RDB$INDEX_NAME
WITH RCL.RDB$INDEX_NAME = IND.RDB$INDEX_NAME AND
RCL.RDB$CONSTRAINT_TYPE = PRIMARY_KEY
{
ERR_post(Arg::Gds(isc_primary_key_notnull));
}