diff options
author | drh <drh@noemail.net> | 2019-02-07 19:07:11 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2019-02-07 19:07:11 +0000 |
commit | 1e30c7f369856fdbf4b4040dfaa63b9eab64302f (patch) | |
tree | 0dd14ec2504d5724becc3388049c45eac5e36fe5 /src/insert.c | |
parent | c9912d1706610d77406d579450af50600cab2ea1 (diff) | |
parent | 24bfecab3ce1b13bd8e863b08837ee695902da28 (diff) | |
download | sqlite-1e30c7f369856fdbf4b4040dfaa63b9eab64302f.tar.gz sqlite-1e30c7f369856fdbf4b4040dfaa63b9eab64302f.zip |
Change VACUUM so that it preserves ROWID values.
FossilOrigin-Name: 49e5d11d463de078c2b8a963f5ed436210937e6dfddf06942132db9ec685bfd8
Diffstat (limited to 'src/insert.c')
-rw-r--r-- | src/insert.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/insert.c b/src/insert.c index a69e625a1..1b6235d4d 100644 --- a/src/insert.c +++ b/src/insert.c @@ -2347,7 +2347,7 @@ static int xferOptimization( sqlite3RowidConstraint(pParse, onError, pDest); sqlite3VdbeJumpHere(v, addr2); autoIncStep(pParse, regAutoinc, regRowid); - }else if( pDest->pIndex==0 ){ + }else if( pDest->pIndex==0 && !(db->mDbFlags & DBFLAG_Vacuum) ){ addr1 = sqlite3VdbeAddOp2(v, OP_NewRowid, iDest, regRowid); }else{ addr1 = sqlite3VdbeAddOp2(v, OP_Rowid, iSrc, regRowid); |