1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-11 01:42:22 +03:00

Possible fix for 30027b61. There may still be problems surrounding foreign key

processing.

FossilOrigin-Name: 71ccb1f4c490fdebc7008e884384e7809b849742
This commit is contained in:
dan
2017-01-04 20:13:51 +00:00
parent 87e1e56b5b
commit 4e1f0efb4d
4 changed files with 90 additions and 10 deletions

View File

@@ -1550,8 +1550,12 @@ void sqlite3GenerateConstraintChecks(
}
if( ix==0 && pPk==pIdx && onError==OE_Replace && pPk->pNext==0 ){
sqlite3VdbeResolveLabel(v, addrUniqueOk);
continue;
if( 0==(db->flags&SQLITE_RecTriggers)
|| 0==sqlite3TriggersExist(pParse, pTab, TK_DELETE, 0, 0)
){
sqlite3VdbeResolveLabel(v, addrUniqueOk);
continue;
}
}