| OLD | NEW |
| 1 /* | 1 /* |
| 2 ** 2006 Oct 10 | 2 ** 2006 Oct 10 |
| 3 ** | 3 ** |
| 4 ** The author disclaims copyright to this source code. In place of | 4 ** The author disclaims copyright to this source code. In place of |
| 5 ** a legal notice, here is a blessing: | 5 ** a legal notice, here is a blessing: |
| 6 ** | 6 ** |
| 7 ** May you do good and not evil. | 7 ** May you do good and not evil. |
| 8 ** May you find forgiveness for yourself and forgive others. | 8 ** May you find forgiveness for yourself and forgive others. |
| 9 ** May you share freely, never taking more than you give. | 9 ** May you share freely, never taking more than you give. |
| 10 ** | 10 ** |
| (...skipping 5464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5475 | 5475 |
| 5476 err: | 5476 err: |
| 5477 if( rc!=SQLITE_OK ){ | 5477 if( rc!=SQLITE_OK ){ |
| 5478 if( idx==-1 ){ | 5478 if( idx==-1 ){ |
| 5479 sqlite3_finalize(s); | 5479 sqlite3_finalize(s); |
| 5480 }else{ | 5480 }else{ |
| 5481 sqlite3_reset(s); | 5481 sqlite3_reset(s); |
| 5482 } | 5482 } |
| 5483 return rc; | 5483 return rc; |
| 5484 } | 5484 } |
| 5485 |
| 5486 pReader->pStmt = s; |
| 5485 } | 5487 } |
| 5486 return SQLITE_OK; | 5488 return SQLITE_OK; |
| 5487 } | 5489 } |
| 5488 | 5490 |
| 5489 /* Step the current leaf forward to the next term. If we reach the | 5491 /* Step the current leaf forward to the next term. If we reach the |
| 5490 ** end of the current leaf, step forward to the next leaf block. | 5492 ** end of the current leaf, step forward to the next leaf block. |
| 5491 */ | 5493 */ |
| 5492 static int leavesReaderStep(fulltext_vtab *v, LeavesReader *pReader){ | 5494 static int leavesReaderStep(fulltext_vtab *v, LeavesReader *pReader){ |
| 5493 int rc; | 5495 int rc; |
| 5494 assert( !leavesReaderAtEnd(pReader) ); | 5496 assert( !leavesReaderAtEnd(pReader) ); |
| (...skipping 1909 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7404 sqlite3 *db, | 7406 sqlite3 *db, |
| 7405 char **pzErrMsg, | 7407 char **pzErrMsg, |
| 7406 const sqlite3_api_routines *pApi | 7408 const sqlite3_api_routines *pApi |
| 7407 ){ | 7409 ){ |
| 7408 SQLITE_EXTENSION_INIT2(pApi) | 7410 SQLITE_EXTENSION_INIT2(pApi) |
| 7409 return sqlite3Fts3Init(db); | 7411 return sqlite3Fts3Init(db); |
| 7410 } | 7412 } |
| 7411 #endif | 7413 #endif |
| 7412 | 7414 |
| 7413 #endif /* !defined(SQLITE_CORE) || defined(SQLITE_ENABLE_FTS3) */ | 7415 #endif /* !defined(SQLITE_CORE) || defined(SQLITE_ENABLE_FTS3) */ |
| OLD | NEW |