aboutsummaryrefslogtreecommitdiff
path: root/src/fkey.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2014-05-29 20:24:20 +0000
committerdrh <drh@noemail.net>2014-05-29 20:24:20 +0000
commitff14013496b17cb697d34b21574a9898a38bbd2c (patch)
tree10d8dc7da780b6dd056f1943cb4abc527436f882 /src/fkey.c
parent79045882c94a21ddb2c2f829d0a515266555f527 (diff)
parentb463fef3fda4d233ba634d81bfc9c3bf001f0513 (diff)
downloadsqlite-ff14013496b17cb697d34b21574a9898a38bbd2c.tar.gz
sqlite-ff14013496b17cb697d34b21574a9898a38bbd2c.zip
Merge changes from the trunk into the threads branch.
FossilOrigin-Name: 416cb091267de91b9cadee9f7453b8627570b7d3
Diffstat (limited to 'src/fkey.c')
-rw-r--r--src/fkey.c4
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;