diff options
author | drh <drh@noemail.net> | 2014-05-29 20:24:20 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2014-05-29 20:24:20 +0000 |
commit | ff14013496b17cb697d34b21574a9898a38bbd2c (patch) | |
tree | 10d8dc7da780b6dd056f1943cb4abc527436f882 /src/update.c | |
parent | 79045882c94a21ddb2c2f829d0a515266555f527 (diff) | |
parent | b463fef3fda4d233ba634d81bfc9c3bf001f0513 (diff) | |
download | sqlite-ff14013496b17cb697d34b21574a9898a38bbd2c.tar.gz sqlite-ff14013496b17cb697d34b21574a9898a38bbd2c.zip |
Merge changes from the trunk into the threads branch.
FossilOrigin-Name: 416cb091267de91b9cadee9f7453b8627570b7d3
Diffstat (limited to 'src/update.c')
-rw-r--r-- | src/update.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/update.c b/src/update.c index 4138749f8..3e04e0031 100644 --- a/src/update.c +++ b/src/update.c @@ -187,7 +187,7 @@ void sqlite3Update( iIdxCur = iDataCur+1; pPk = HasRowid(pTab) ? 0 : sqlite3PrimaryKeyIndex(pTab); for(nIdx=0, pIdx=pTab->pIndex; pIdx; pIdx=pIdx->pNext, nIdx++){ - if( pIdx->autoIndex==2 && pPk!=0 ){ + if( IsPrimaryKeyIndex(pIdx) && pPk!=0 ){ iDataCur = pParse->nTab; pTabList->a[0].iCursor = iDataCur; } |