/ Check-in [bedb88a4]
Login

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

Overview
Comment:Compilation fix for a C99-ism in the 'fts3view' tool.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: bedb88a4b9c808ea781ae69058399a1a3a3d15fa
User & Date: mistachkin 2016-04-12 19:30:31
Context
2016-04-13
15:33
Add the --indent option to the .schema and .fullschema commands in the shell, to enable simple but effective pretty-printing. check-in: 83cfe82c user: drh tags: trunk
2016-04-12
20:05
More harmless compiler warning fixes. check-in: ab69527c user: mistachkin tags: warnings
19:30
Compilation fix for a C99-ism in the 'fts3view' tool. check-in: bedb88a4 user: mistachkin tags: trunk
19:20
Fix harmless compiler warnings in the 'session' module. check-in: a18a6ce2 user: mistachkin tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to ext/fts3/tool/fts3view.c.

   394    394              "         WHERE (a.blockid BETWEEN b.start_block"
   395    395                                          " AND b.leaves_end_block)"
   396    396              "           AND (b.level%%1024)==%d)",
   397    397              pgsz-45, zTab, zTab, i);
   398    398       if( sqlite3_step(pStmt)==SQLITE_ROW
   399    399        && (nLeaf = sqlite3_column_int(pStmt, 0))>0
   400    400       ){
   401         -      nIdx = sqlite3_column_int(pStmt, 5);
   402    401         sqlite3_int64 sz;
          402  +      nIdx = sqlite3_column_int(pStmt, 5);
   403    403         printf("For level %d:\n", i);
   404    404         printf("  Number of indexes...................... %9d\n", nIdx);
   405    405         printf("  Number of leaf segments................ %9d\n", nLeaf);
   406    406         if( nIdx>1 ){
   407    407           printf("  Average leaf segments per index........ %11.1f\n",
   408    408                  (double)nLeaf/(double)nIdx);
   409    409         }