/ Check-in [6926f28c]
Login
SQLite training in Houston TX on 2019-11-05 (details)
Part of the 2019 Tcl Conference

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix a compiler warning when compiling without SQLITE_ENABLE_FTS3_TOKENIZER.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 6926f28cd56bf61f7c92877baa54024bee7cbab5
User & Date: drh 2016-02-08 20:06:52
Context
2016-02-08
20:14
Fix a signed/unsigned comparison warning in fts5. check-in: 85eb05dd user: dan tags: trunk
20:06
Fix a compiler warning when compiling without SQLITE_ENABLE_FTS3_TOKENIZER. check-in: 6926f28c user: drh tags: trunk
19:40
Disable the two-argument form of the fts3_tokenizer() SQL function unless the library is built with -DSQLITE_ENABLE_FTS3_TOKENIZER. check-in: e0eb217a user: dan tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to ext/fts3/fts3_tokenizer.c.

   332    332       sqlite3_result_error(context, zErr, -1);
   333    333     }else{
   334    334       sqlite3_result_text(context, Tcl_GetString(pRet), -1, SQLITE_TRANSIENT);
   335    335     }
   336    336     Tcl_DecrRefCount(pRet);
   337    337   }
   338    338   
          339  +#ifdef SQLITE_ENABLE_FTS3_TOKENIZER
   339    340   static
   340    341   int registerTokenizer(
   341    342     sqlite3 *db, 
   342    343     char *zName, 
   343    344     const sqlite3_tokenizer_module *p
   344    345   ){
   345    346     int rc;
................................................................................
   353    354   
   354    355     sqlite3_bind_text(pStmt, 1, zName, -1, SQLITE_STATIC);
   355    356     sqlite3_bind_blob(pStmt, 2, &p, sizeof(p), SQLITE_STATIC);
   356    357     sqlite3_step(pStmt);
   357    358   
   358    359     return sqlite3_finalize(pStmt);
   359    360   }
          361  +#endif /* SQLITE_ENABLE_FTS3_TOKENIZER */
          362  +
   360    363   
   361    364   static
   362    365   int queryTokenizer(
   363    366     sqlite3 *db, 
   364    367     char *zName,  
   365    368     const sqlite3_tokenizer_module **pp
   366    369   ){