1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-27 20:41:58 +03:00

The virtual table compiles but does not work and is missing many features.

This is an incremental check-in.

FossilOrigin-Name: a32849d6bf66462d1f511714a00f24519d7b7079
This commit is contained in:
drh
2015-11-17 00:15:21 +00:00
parent a0b7ffb184
commit eb8e7adb16
6 changed files with 502 additions and 20 deletions

View File

@ -70,7 +70,6 @@
#ifndef _LSM_INT_H
# include "lsmInt.h"
#endif
#include "sqlite3.h" /* only for sqlite3_snprintf() */
#define LSM_LOG_STRUCTURE 0
#define LSM_LOG_DATA 0
@ -5470,16 +5469,17 @@ static int fileToString(
char *zSeg;
zSeg = segToString(pDb->pEnv, pSeg, nMin);
sqlite3_snprintf(nBuf-i, &aBuf[i], "%s", zSeg);
snprintf(&aBuf[i], nBuf-i, "%s", zSeg);
i += strlen(&aBuf[i]);
lsmFree(pDb->pEnv, zSeg);
#ifdef LSM_LOG_FREELIST
lsmInfoArrayStructure(pDb, 1, pSeg->iFirst, &zSeg);
sqlite3_snprintf(nBuf-i, &aBuf[i], " (%s)", zSeg);
snprintf(&aBuf[i], nBuf-1, " (%s)", zSeg);
i += strlen(&aBuf[i]);
lsmFree(pDb->pEnv, zSeg);
#endif
aBuf[nBuf] = 0;
}else{
aBuf[0] = '\0';
}
@ -5880,7 +5880,7 @@ void lsmSortedDumpStructure(
}
if( i==0 ){
sqlite3_snprintf(sizeof(zLevel), zLevel, "L%d: (age=%d) (flags=%.4x)",
snprintf(zLevel, sizeof(zLevel), "L%d: (age=%d) (flags=%.4x)",
iLevel, (int)pLevel->iAge, (int)pLevel->flags
);
}else{