1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-29 08:01:23 +03:00

Fix for [9861b74ab9]. Correctly handle strings with zero tokens in the fts3 offsets() function.

FossilOrigin-Name: d37034f7fc46b83be681247fde97823736c994cc
This commit is contained in:
dan
2010-03-24 15:57:33 +00:00
parent 280799b4ff
commit 6d3cb2fbae
4 changed files with 30 additions and 20 deletions

View File

@ -1156,11 +1156,13 @@ void sqlite3Fts3Offsets(
"%d %d %d %d ", iCol, pTerm-sCtx.aTerm, iStart, iEnd-iStart
);
rc = fts3StringAppend(&res, aBuffer, -1);
}else if( rc==SQLITE_DONE ){
rc = SQLITE_CORRUPT;
}
}
}
if( rc==SQLITE_DONE ){
rc = SQLITE_CORRUPT;
rc = SQLITE_OK;
}
pMod->xClose(pC);