/ Check-in [1e80c4b1]
Login

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

Overview
Comment:Fix the ".dump" command on the command-line shell so that it works for "sqlite_stat4" in addition to "sqlite_stat1".
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | sqlite_stat4
Files: files | file ages | folders
SHA1: 1e80c4b12dbb5beab422e2a33a8782ac9d767321
User & Date: drh 2013-08-07 16:04:27
Context
2013-08-07
16:15
Change the way samples for the sqlite_stat4 table are collected. check-in: 13ed5ac1 user: dan tags: sqlite_stat4
16:04
Fix the ".dump" command on the command-line shell so that it works for "sqlite_stat4" in addition to "sqlite_stat1". check-in: 1e80c4b1 user: drh tags: sqlite_stat4
15:57
Remove the unused sqlite3Utf8to16() utility function. check-in: 9159b43e user: drh tags: sqlite_stat4
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/shell.c.

  1281   1281     if( nArg!=3 ) return 1;
  1282   1282     zTable = azArg[0];
  1283   1283     zType = azArg[1];
  1284   1284     zSql = azArg[2];
  1285   1285     
  1286   1286     if( strcmp(zTable, "sqlite_sequence")==0 ){
  1287   1287       zPrepStmt = "DELETE FROM sqlite_sequence;\n";
  1288         -  }else if( strcmp(zTable, "sqlite_stat1")==0 ){
         1288  +  }else if( sqlite3_strglob("sqlite_stat?", zTable)==0 ){
  1289   1289       fprintf(p->out, "ANALYZE sqlite_master;\n");
  1290   1290     }else if( strncmp(zTable, "sqlite_", 7)==0 ){
  1291   1291       return 0;
  1292   1292     }else if( strncmp(zSql, "CREATE VIRTUAL TABLE", 20)==0 ){
  1293   1293       char *zIns;
  1294   1294       if( !p->writableSchema ){
  1295   1295         fprintf(p->out, "PRAGMA writable_schema=ON;\n");