1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-11 01:42:22 +03:00

Fix a problem with VACUUM and __hidden__ columns.

FossilOrigin-Name: 13995756ad8b80568aa2f74387788a8cab1123ef
This commit is contained in:
dan
2015-11-19 18:09:05 +00:00
parent 80090f9221
commit aaea31439d
4 changed files with 64 additions and 10 deletions

View File

@@ -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