mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-19 21:43:15 +03:00
Remove a redundant test for disabling RESTRICT with defer_foreign_keys=ON.
FossilOrigin-Name: 9cdf813c6aaaddc01d2d4e04636c83fcda04d971
This commit is contained in:
@@ -1165,11 +1165,7 @@ static Trigger *fkActionTrigger(
|
||||
if( action==OE_Restrict && (db->flags & SQLITE_DeferFKs) ){
|
||||
return 0;
|
||||
}
|
||||
|
||||
pTrigger = pFKey->apTrigger[iAction];
|
||||
if( (db->flags & SQLITE_DeferFKs) && action==OE_Restrict ){
|
||||
return 0;
|
||||
}
|
||||
|
||||
if( action!=OE_None && !pTrigger ){
|
||||
char const *zFrom; /* Name of child table */
|
||||
|
||||
Reference in New Issue
Block a user