/ Check-in [f2c9c5b5]
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:Use #ifdef to omit code that is only used for STAT3 and STAT4.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: f2c9c5b57b7739daafc44e8ec36d4a2beacd5f17
User & Date: drh 2015-03-16 13:48:23
Context
2015-03-16
16:28
When estimating the number of rows visited by a range scan for which the keys consist of more than one field, consider prefixes of stat4 samples as well as the full samples. This generates more accurate estimates. check-in: 3e0590de user: dan tags: trunk
13:48
Use #ifdef to omit code that is only used for STAT3 and STAT4. check-in: f2c9c5b5 user: drh tags: trunk
2015-03-13
15:44
Add tests to ensure "PRAGMA incremental_vacuum" and "PRAGMA auto_vacuum = incremental" handle corrupt databases correctly. check-in: 1c2166cb user: dan tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/vdbemem.c.

  1351   1351       nVal = sqlite3Strlen30(zVal)-1;
  1352   1352       assert( zVal[nVal]=='\'' );
  1353   1353       sqlite3VdbeMemSetStr(pVal, sqlite3HexToBlob(db, zVal, nVal), nVal/2,
  1354   1354                            0, SQLITE_DYNAMIC);
  1355   1355     }
  1356   1356   #endif
  1357   1357   
         1358  +#ifdef SQLITE_ENABLE_STAT3_OR_STAT4
  1358   1359     else if( op==TK_FUNCTION && pCtx!=0 ){
  1359   1360       rc = valueFromFunction(db, pExpr, enc, affinity, &pVal, pCtx);
  1360   1361     }
         1362  +#endif
  1361   1363   
  1362   1364     *ppVal = pVal;
  1363   1365     return rc;
  1364   1366   
  1365   1367   no_mem:
  1366   1368     db->mallocFailed = 1;
  1367   1369     sqlite3DbFree(db, zVal);