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

Add fault-injection tests that use the unicode61 tokenizer. Fix a problem revealed by the same.

FossilOrigin-Name: ed28c48a3dd7e766e60db0d96ef5460bf9913e6b
This commit is contained in:
dan
2012-05-26 15:44:08 +00:00
parent ab322bd21e
commit cf9f6f1375
4 changed files with 36 additions and 9 deletions

View File

@ -3174,7 +3174,12 @@ static void fts3UpdateDocTotals(
}else{
memset(a, 0, sizeof(u32)*(nStat) );
}
sqlite3_reset(pStmt);
rc = sqlite3_reset(pStmt);
if( rc!=SQLITE_OK ){
sqlite3_free(a);
*pRC = rc;
return;
}
if( nChng<0 && a[0]<(u32)(-nChng) ){
a[0] = 0;
}else{