1
0
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:
drh
2016-03-30 14:17:36 +00:00
parent 838083975a
commit 3875a96ad9
3 changed files with 7 additions and 12 deletions

View File

@@ -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 */