diff options
author | drh <drh@noemail.net> | 2019-04-04 14:00:23 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2019-04-04 14:00:23 +0000 |
commit | 4e61e88348693cde472989b3dc1a06b5ff9dd9c0 (patch) | |
tree | 38f6b0bc3cb5e81365fe2938e5964a0ac07e9a17 /src/insert.c | |
parent | b92d7d264ea0b811267a91b0ece3e7170bd57d6a (diff) | |
download | sqlite-4e61e88348693cde472989b3dc1a06b5ff9dd9c0.tar.gz sqlite-4e61e88348693cde472989b3dc1a06b5ff9dd9c0.zip |
Only preserve rowid values for VACUUM INTO. Keep the legacy behavior of
renumbering rowids for ordinary VACUUM.
FossilOrigin-Name: 13a0ea6466b051ea5281865ed5285b8b5a99ec4307f400c5f7b03692723f1cd1
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 a68db1a1d..b3535b22a 100644 --- a/src/insert.c +++ b/src/insert.c @@ -2352,7 +2352,7 @@ static int xferOptimization( sqlite3RowidConstraint(pParse, onError, pDest); sqlite3VdbeJumpHere(v, addr2); autoIncStep(pParse, regAutoinc, regRowid); - }else if( pDest->pIndex==0 && !(db->mDbFlags & DBFLAG_Vacuum) ){ + }else if( pDest->pIndex==0 && !(db->mDbFlags & DBFLAG_VacuumInto) ){ addr1 = sqlite3VdbeAddOp2(v, OP_NewRowid, iDest, regRowid); }else{ addr1 = sqlite3VdbeAddOp2(v, OP_Rowid, iSrc, regRowid); |