diff options
author | drh <drh@noemail.net> | 2014-05-29 20:29:13 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2014-05-29 20:29:13 +0000 |
commit | cbabb203908dc97166f2c5fe9366e134fdaf1ed2 (patch) | |
tree | 5cc34fc60adfff789aa59dc771b02e9440c0ec1e /src/update.c | |
parent | aff0fbb6a51b2ad8a5e1d7787236226603380437 (diff) | |
parent | b463fef3fda4d233ba634d81bfc9c3bf001f0513 (diff) | |
download | sqlite-cbabb203908dc97166f2c5fe9366e134fdaf1ed2.tar.gz sqlite-cbabb203908dc97166f2c5fe9366e134fdaf1ed2.zip |
Merge trunk changes into the sessions branch.
FossilOrigin-Name: 9f18e78f039ffa89a8806810ad385bdc51bc88ed
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 a1082068e..0c8a4202e 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; } |