diff options
Diffstat (limited to 'src/fkey.c')
-rw-r--r-- | src/fkey.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fkey.c b/src/fkey.c index 336256e0f..c3cac276a 100644 --- a/src/fkey.c +++ b/src/fkey.c @@ -233,8 +233,8 @@ int sqlite3FkLocateIndex( if( zKey==0 ){ /* If zKey is NULL, then this foreign key is implicitly mapped to ** the PRIMARY KEY of table pParent. The PRIMARY KEY index may be - ** identified by the test (Index.autoIndex==2). */ - if( pIdx->autoIndex==2 ){ + ** identified by the test. */ + if( IsPrimaryKeyIndex(pIdx) ){ if( aiCol ){ int i; for(i=0; i<nCol; i++) aiCol[i] = pFKey->aCol[i].iFrom; |