| OLD | NEW |
| 1 /* fts1 has a design flaw which can lead to database corruption (see | 1 /* fts1 has a design flaw which can lead to database corruption (see |
| 2 ** below). It is recommended not to use it any longer, instead use | 2 ** below). It is recommended not to use it any longer, instead use |
| 3 ** fts3 (or higher). If you believe that your use of fts1 is safe, | 3 ** fts3 (or higher). If you believe that your use of fts1 is safe, |
| 4 ** add -DSQLITE_ENABLE_BROKEN_FTS1=1 to your CFLAGS. | 4 ** add -DSQLITE_ENABLE_BROKEN_FTS1=1 to your CFLAGS. |
| 5 */ | 5 */ |
| 6 #if (!defined(SQLITE_CORE) || defined(SQLITE_ENABLE_FTS1)) \ | 6 #if (!defined(SQLITE_CORE) || defined(SQLITE_ENABLE_FTS1)) \ |
| 7 && !defined(SQLITE_ENABLE_BROKEN_FTS1) | 7 && !defined(SQLITE_ENABLE_BROKEN_FTS1) |
| 8 #error fts1 has a design flaw and has been deprecated. | 8 #error fts1 has a design flaw and has been deprecated. |
| 9 #endif | 9 #endif |
| 10 /* The flaw is that fts1 uses the content table's unaliased rowid as | 10 /* The flaw is that fts1 uses the content table's unaliased rowid as |
| (...skipping 3325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3336 | 3336 |
| 3337 #if !SQLITE_CORE | 3337 #if !SQLITE_CORE |
| 3338 int sqlite3_extension_init(sqlite3 *db, char **pzErrMsg, | 3338 int sqlite3_extension_init(sqlite3 *db, char **pzErrMsg, |
| 3339 const sqlite3_api_routines *pApi){ | 3339 const sqlite3_api_routines *pApi){ |
| 3340 SQLITE_EXTENSION_INIT2(pApi) | 3340 SQLITE_EXTENSION_INIT2(pApi) |
| 3341 return sqlite3Fts1Init(db); | 3341 return sqlite3Fts1Init(db); |
| 3342 } | 3342 } |
| 3343 #endif | 3343 #endif |
| 3344 | 3344 |
| 3345 #endif /* !defined(SQLITE_CORE) || defined(SQLITE_ENABLE_FTS1) */ | 3345 #endif /* !defined(SQLITE_CORE) || defined(SQLITE_ENABLE_FTS1) */ |
| OLD | NEW |