/ Check-in [430f539c]
Login

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

Overview
Comment:Fix the fts3EvalAverageDocsize() routine so that it returns errors from sqlite3_reset() rather than always returning SQLITE_OK.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 430f539cbb3f806fb89191e0b759a5f8b49d9e5b6c95fe9a4b55a1aa0875762a
User & Date: drh 2017-05-02 18:00:31
Context
2017-05-03
15:54
Always enable URI filenames when compiling with SQLITE_HAS_CODEC. Also allow plaintext keys using the key= query parameter. check-in: 31a51b4d user: drh tags: trunk
2017-05-02
19:45
Merge the latest enhancements from trunk. check-in: a7dcf6a7 user: drh tags: schemalint
18:00
Fix the fts3EvalAverageDocsize() routine so that it returns errors from sqlite3_reset() rather than always returning SQLITE_OK. check-in: 430f539c user: drh tags: trunk
17:54
Reuse the same materialization of a view when that view appears in a query more than once, such as in a self-join. check-in: 9e35c89d user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to ext/fts3/fts3.c.

  4783   4783       ** Entry 0 of the %_stat table is a blob containing (nCol+1) FTS3 
  4784   4784       ** varints, where nCol is the number of columns in the FTS3 table.
  4785   4785       ** The first varint is the number of documents currently stored in
  4786   4786       ** the table. The following nCol varints contain the total amount of
  4787   4787       ** data stored in all rows of each column of the table, from left
  4788   4788       ** to right.
  4789   4789       */
  4790         -    int rc;
  4791   4790       Fts3Table *p = (Fts3Table*)pCsr->base.pVtab;
  4792   4791       sqlite3_stmt *pStmt;
  4793   4792       sqlite3_int64 nDoc = 0;
  4794   4793       sqlite3_int64 nByte = 0;
  4795   4794       const char *pEnd;
  4796   4795       const char *a;
  4797   4796