/ Check-in [0c3f128f]
Login

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

Overview
Comment:Correctly format the STAT1 and STAT4 content in the output from the ".fullschema" command in the CLI. Fix for ticket [e63a34a0045832dc850367552].
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256:0c3f128fd7d5738a8e9da706f5f30aa1985ef5efab70ddaad28ef6b641b04f4a
User & Date: drh 2018-05-08 23:17:36
Context
2018-05-09
10:11
Fix a typo in a comment used for documentation. No code changes. check-in: b866693e user: drh tags: trunk
2018-05-08
23:17
Correctly format the STAT1 and STAT4 content in the output from the ".fullschema" command in the CLI. Fix for ticket [e63a34a0045832dc850367552]. check-in: 0c3f128f user: drh tags: trunk
13:03
Fix a harmless compiler warning in fuzzcheck. Add new OSSFuzz test cases to the test case library. check-in: d2619746 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/shell.c.in.

  5996   5996         raw_printf(p->out, "/* No STAT tables available */\n");
  5997   5997       }else{
  5998   5998         raw_printf(p->out, "ANALYZE sqlite_master;\n");
  5999   5999         sqlite3_exec(p->db, "SELECT 'ANALYZE sqlite_master'",
  6000   6000                      callback, &data, &zErrMsg);
  6001   6001         data.cMode = data.mode = MODE_Insert;
  6002   6002         data.zDestTable = "sqlite_stat1";
  6003         -      shell_exec(p, "SELECT * FROM sqlite_stat1", &zErrMsg);
         6003  +      shell_exec(&data, "SELECT * FROM sqlite_stat1", &zErrMsg);
  6004   6004         data.zDestTable = "sqlite_stat3";
  6005         -      shell_exec(p, "SELECT * FROM sqlite_stat3", &zErrMsg);
         6005  +      shell_exec(&data, "SELECT * FROM sqlite_stat3", &zErrMsg);
  6006   6006         data.zDestTable = "sqlite_stat4";
  6007         -      shell_exec(p, "SELECT * FROM sqlite_stat4", &zErrMsg);
         6007  +      shell_exec(&data, "SELECT * FROM sqlite_stat4", &zErrMsg);
  6008   6008         raw_printf(p->out, "ANALYZE sqlite_master;\n");
  6009   6009       }
  6010   6010     }else
  6011   6011   
  6012   6012     if( c=='h' && strncmp(azArg[0], "headers", n)==0 ){
  6013   6013       if( nArg==2 ){
  6014   6014         p->showHeader = booleanValue(azArg[1]);