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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user