diff options
Diffstat (limited to 'src/fkey.c')
-rw-r--r-- | src/fkey.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fkey.c b/src/fkey.c index c3cac276a..50c10da82 100644 --- a/src/fkey.c +++ b/src/fkey.c @@ -225,7 +225,7 @@ int sqlite3FkLocateIndex( } for(pIdx=pParent->pIndex; pIdx; pIdx=pIdx->pNext){ - if( pIdx->nKeyCol==nCol && pIdx->onError!=OE_None ){ + if( pIdx->nKeyCol==nCol && IsUniqueIndex(pIdx) ){ /* pIdx is a UNIQUE index (or a PRIMARY KEY) and has the right number ** of columns. If each indexed column corresponds to a foreign key ** column of pFKey, then this index is a winner. */ |