aboutsummaryrefslogtreecommitdiff
path: root/ext/fts5/fts5_expr.c
diff options
context:
space:
mode:
authordan <dan@noemail.net>2016-02-02 21:19:21 +0000
committerdan <dan@noemail.net>2016-02-02 21:19:21 +0000
commitb06347a5dcab801ba317cbf36043f8f70df0deec (patch)
treeb736f1d998f08131bdea48e70a352dfce7b07268 /ext/fts5/fts5_expr.c
parent735ff4a80947404ab8960e2b6d6d23c0b163661f (diff)
downloadsqlite-b06347a5dcab801ba317cbf36043f8f70df0deec.tar.gz
sqlite-b06347a5dcab801ba317cbf36043f8f70df0deec.zip
Add tests to restore full coverage of fts5 code.
FossilOrigin-Name: 063755c81574800e7db12a42e17d982a8c1e5181
Diffstat (limited to 'ext/fts5/fts5_expr.c')
-rw-r--r--ext/fts5/fts5_expr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/fts5/fts5_expr.c b/ext/fts5/fts5_expr.c
index 1df173cfc..5006d88d0 100644
--- a/ext/fts5/fts5_expr.c
+++ b/ext/fts5/fts5_expr.c
@@ -1337,7 +1337,8 @@ int sqlite3Fts5ExprFirst(Fts5Expr *p, Fts5Index *pIdx, i64 iFirst, int bDesc){
}
/* If the iterator is not at a real match, skip forward until it is. */
- while( pRoot->bNomatch && rc==SQLITE_OK && pRoot->bEof==0 ){
+ while( pRoot->bNomatch ){
+ assert( pRoot->bEof==0 && rc==SQLITE_OK );
rc = fts5ExprNodeNext(p, pRoot, 0, 0);
}
}