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:
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user