/ Check-in [ec4c63e0]
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 typo and a harmless compiler warning.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: ec4c63e00c957f98d61ddc1b9d20406c7e1072d6ab0c12ac6939db6c63d90cb8
User & Date: mistachkin 2019-08-20 02:19:26
Context
2019-08-20
11:43
Retain the affinity of an expression in a WHERE clause when it is transformed to a reference to an index column on the same expression. Fix for [f043b113]. check-in: 511da081 user: dan tags: trunk
02:19
Fix a typo and a harmless compiler warning. check-in: ec4c63e0 user: mistachkin tags: trunk
2019-08-19
20:44
Add the sqlite3_drop_modules() interface. check-in: e2c6fed8 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/test1.c.

  1119   1119   */
  1120   1120   static int SQLITE_TCLAPI test_drop_modules(
  1121   1121     void *NotUsed,
  1122   1122     Tcl_Interp *interp,    /* The TCL interpreter that invoked this command */
  1123   1123     int argc,              /* Number of arguments */
  1124   1124     char **argv            /* Text of each argument */
  1125   1125   ){
  1126         -  int rc;
  1127   1126     sqlite3 *db;
  1128   1127   
  1129   1128     if( argc!=2 ){
  1130   1129       Tcl_AppendResult(interp, "wrong # args: should be \"", argv[0],
  1131   1130          " DB\"", 0);
  1132   1131       return TCL_ERROR;
  1133   1132     }

Changes to src/vtab.c.

   136    136   /*
   137    137   ** External API to drop all virtual-table modules, except those named
   138    138   ** on the azNames list.
   139    139   */
   140    140   int sqlite3_drop_modules(sqlite3 *db, const char** azNames){
   141    141     HashElem *pThis, *pNext;
   142    142   #ifdef SQLITE_ENABLE_API_ARMOR
   143         -  if( !sqlite3SafetyCheckOk(db) || zName==0 ) return SQLITE_MISUSE_BKPT;
          143  +  if( !sqlite3SafetyCheckOk(db) ) return SQLITE_MISUSE_BKPT;
   144    144   #endif
   145    145     for(pThis=sqliteHashFirst(&db->aModule); pThis; pThis=pNext){
   146    146       Module *pMod = (Module*)sqliteHashData(pThis);
   147    147       pNext = sqliteHashNext(pThis);
   148    148       if( azNames ){
   149    149         int ii;
   150    150         for(ii=0; azNames[ii]!=0 && strcmp(azNames[ii],pMod->zName)!=0; ii++){}