Differences From Artifact [a430c05c35]:
- File src/search.c — part of check-in [a07e6b87cb] at 2023-01-24 14:36:33 on branch search-fts5 — The search logic now works correctly (I think) regardless of whether the repository uses a legacy FTS4 index or a newer FTS5 index. This allows the Fossil binary to be upgraded on systems without disrupting the search feature and without requiring a search index rebuild. The search index is automatically upgraded to FTS5 the next time the search index is rebuilt. (user: drh size: 78067) [more...]
To Artifact [4b0bddb4f8]:
- File src/search.c — part of check-in [f82caec579] at 2023-02-20 14:58:40 on branch trunk — Change the typedef of u32 in search.c so that it works in older PPC macs. (user: drh size: 78088)
| ︙ | |||
2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 | 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 | + + |
** The Fts5MatchinfoCtx bits were all taken verbatim from:
**
** https://sqlite.org/src/finfo?name=ext/fts5/fts5_test_mi.c
*/
typedef struct Fts5MatchinfoCtx Fts5MatchinfoCtx;
#if INTERFACE
#ifndef SQLITE_AMALGAMATION
typedef unsigned int u32;
#endif
#endif
struct Fts5MatchinfoCtx {
int nCol; /* Number of cols in FTS5 table */
int nPhrase; /* Number of phrases in FTS5 query */
char *zArg; /* nul-term'd copy of 2nd arg */
int nRet; /* Number of elements in aRet[] */
|
| ︙ |