Index: src/insert.c ================================================================== --- src/insert.c +++ src/insert.c @@ -784,10 +784,11 @@ ** * no foreign key processing to perform, and ** * the on-conflict mode used for all UNIQUE and PRIMARY KEY indexes, ** including INTEGER PRIMARY KEYs, is either ROLLBACK or ABORT. */ if( pSelect + && 0==(pSelect->selFlags & SF_Values) && onError!=OE_Fail && onError!=OE_Replace && onError!=OE_Ignore && !IsVirtual(pTab) && pTrigger==0 && 0==sqlite3FkRequired(pParse, pTab, 0, 0) ){