1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-30 19:03:16 +03:00

Add tests for the matchinfo-like test function. Fix problems found in test and fts5 code by doing so.

FossilOrigin-Name: 9e3aafe44a0813aa2a0c6172fdba1440b8a973ec
This commit is contained in:
dan
2015-08-05 19:35:59 +00:00
parent b20a42e316
commit 50b5491771
9 changed files with 594 additions and 61 deletions

View File

@ -3944,7 +3944,7 @@ static void fts5FlushOneHash(Fts5Index *p){
/* Decide if the term will fit on the current leaf. If it will not,
** flush the leaf to disk here. */
if( (pBuf->n + nTerm + 2) > pgsz ){
if( pBuf->n>4 && (pBuf->n + nTerm + 2) > pgsz ){
fts5WriteFlushLeaf(p, &writer);
pBuf = &writer.writer.buf;
if( (nTerm + 32) > pBuf->nSpace ){