diff options
author | dan <dan@noemail.net> | 2015-11-19 18:09:05 +0000 |
---|---|---|
committer | dan <dan@noemail.net> | 2015-11-19 18:09:05 +0000 |
commit | aaea31439d595e2d64043da8c424d84b77fe9ca5 (patch) | |
tree | 23d51a9d41547031ce8469a3dca0cdc5b1128f9e /src/insert.c | |
parent | 80090f922137f4134e43af284956fa5acd9151c0 (diff) | |
download | sqlite-aaea31439d595e2d64043da8c424d84b77fe9ca5.tar.gz sqlite-aaea31439d595e2d64043da8c424d84b77fe9ca5.zip |
Fix a problem with VACUUM and __hidden__ columns.
FossilOrigin-Name: 13995756ad8b80568aa2f74387788a8cab1123ef
Diffstat (limited to 'src/insert.c')
-rw-r--r-- | src/insert.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/insert.c b/src/insert.c index 4b8ed2210..52769e9c4 100644 --- a/src/insert.c +++ b/src/insert.c @@ -1910,7 +1910,9 @@ static int xferOptimization( Column *pDestCol = &pDest->aCol[i]; Column *pSrcCol = &pSrc->aCol[i]; #ifdef SQLITE_ENABLE_HIDDEN_COLUMNS - if( (pDestCol->colFlags | pSrcCol->colFlags) & COLFLAG_HIDDEN ){ + if( (db->flags & SQLITE_Vacuum)==0 + && (pDestCol->colFlags | pSrcCol->colFlags) & COLFLAG_HIDDEN + ){ return 0; /* Neither table may have __hidden__ columns */ } #endif |