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

@ -2012,7 +2012,7 @@ int sqlite3Fts5ExprInit(Fts5Global *pGlobal, sqlite3 *db){
** Return the number of phrases in expression pExpr.
*/
int sqlite3Fts5ExprPhraseCount(Fts5Expr *pExpr){
return pExpr->nPhrase;
return (pExpr ? pExpr->nPhrase : 0);
}
/*