]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
12 years agoAdd the xTokenize extension API.
dan [Mon, 21 Jul 2014 14:22:38 +0000 (14:22 +0000)] 
Add the xTokenize extension API.

FossilOrigin-Name: 8c6b0aff3443fae4b7f0b9adcbf1514992b70653

12 years agoFix the xColumnSize() extension API.
dan [Mon, 21 Jul 2014 11:44:47 +0000 (11:44 +0000)] 
Fix the xColumnSize() extension API.

FossilOrigin-Name: 19504c4108472d2ad1281221642b8bd06eb69f4e

12 years agoAdd simple tests for the xColumnText() extension api.
dan [Sat, 19 Jul 2014 20:27:54 +0000 (20:27 +0000)] 
Add simple tests for the xColumnText() extension api.

FossilOrigin-Name: 1e9053abdaf5e128d44504ee00dfd909dc25f378

12 years agoAdd new ASCII mode to the shell capable of importing and exporting using the official...
mistachkin [Sat, 19 Jul 2014 20:15:16 +0000 (20:15 +0000)] 
Add new ASCII mode to the shell capable of importing and exporting using the official unit and record separators (i.e. 0x1F and 0x1E, respectively).

FossilOrigin-Name: 7fe601ead0d0ae26cb09d0dbc7d6367785376567

12 years agoUpdate the sqlite3_stmt_busy() function so that it correctly returns true for "ROLLBA...
dan [Sat, 19 Jul 2014 17:57:10 +0000 (17:57 +0000)] 
Update the sqlite3_stmt_busy() function so that it correctly returns true for "ROLLBACK" statements that have been stepped but not yet reset.

FossilOrigin-Name: 61cee3c0678f5abd9131a29ab946a5e71f55643e

12 years agoFix harmless compiler warnings in the showdb and showwal tools and in
drh [Sat, 19 Jul 2014 17:49:40 +0000 (17:49 +0000)] 
Fix harmless compiler warnings in the showdb and showwal tools and in
the unicode tokenizer of FTS3.

FossilOrigin-Name: 574cc8eb1448cff67390f2e16cc9b7c3ddd4658b

12 years agoFix some harmess compiler warnings in the FTS3 Unicode module. toolWarnings
mistachkin [Sat, 19 Jul 2014 15:44:29 +0000 (15:44 +0000)] 
Fix some harmess compiler warnings in the FTS3 Unicode module.

FossilOrigin-Name: c01caea5d6ad7a570628b85fb3056ac955ff03dd

12 years agoFix warnings related to having a 64-bit size_t.
mistachkin [Sat, 19 Jul 2014 15:40:39 +0000 (15:40 +0000)] 
Fix warnings related to having a 64-bit size_t.

FossilOrigin-Name: 29ac9336dba2b62d13315cecfc5c4a74cc54087a

12 years agoFixes for the xColumnSize() fts5 extension API.
dan [Sat, 19 Jul 2014 15:35:09 +0000 (15:35 +0000)] 
Fixes for the xColumnSize() fts5 extension API.

FossilOrigin-Name: 43fcb844726cfeeb1c8a0dbfaa0d2ca22e6ac16c

12 years agoFix warnings caused by the previous commit.
mistachkin [Sat, 19 Jul 2014 15:30:01 +0000 (15:30 +0000)] 
Fix warnings caused by the previous commit.

FossilOrigin-Name: 89634a419d0c1ef899d0591c7c6ab9290bf665d2

12 years agoFix harmless compiler warnings for MSVC in the showdb/showwal command line tools.
mistachkin [Fri, 18 Jul 2014 21:16:37 +0000 (21:16 +0000)] 
Fix harmless compiler warnings for MSVC in the showdb/showwal command line tools.

FossilOrigin-Name: 6dc7b2f119eb92da17c9e914bdad30a9ceaebdb5

12 years agoUpdate clean targets with the recently added command-line tools.
mistachkin [Fri, 18 Jul 2014 21:02:54 +0000 (21:02 +0000)] 
Update clean targets with the recently added command-line tools.

FossilOrigin-Name: 2beefa68c0c53f663321bebf0ac06f6c936be63f

12 years agoFix issues with position lists and NEAR constraints.
dan [Fri, 18 Jul 2014 19:59:00 +0000 (19:59 +0000)] 
Fix issues with position lists and NEAR constraints.

FossilOrigin-Name: 16352d3654d5672cd0251db51dbe19f779373feb

12 years agoImproved documentation for checkpoints and the busy handler. No changes
drh [Fri, 18 Jul 2014 19:06:39 +0000 (19:06 +0000)] 
Improved documentation for checkpoints and the busy handler.  No changes
to code.

FossilOrigin-Name: ca92c0240681b199c4b8ecc557792b8aea71692d

12 years agoSQLite has long accepted some unadvertised and non-standard join syntax.
drh [Fri, 18 Jul 2014 17:39:48 +0000 (17:39 +0000)] 
SQLite has long accepted some unadvertised and non-standard join syntax.
Add a test to ensure that future versions continue to accept this non-standard
syntax, to avoid breaking legacy applications that use the undefined syntax.

FossilOrigin-Name: 824dde7fc48dbca6d6c956c4eb79bbfa2d139ee5

12 years agoImprovements to the ".fullschema" command in the command-line shell.
drh [Fri, 18 Jul 2014 14:43:29 +0000 (14:43 +0000)] 
Improvements to the ".fullschema" command in the command-line shell.

FossilOrigin-Name: fa80c64caa573297bf43cb5b11d9e7db58567200

12 years agoFix a problem with position list processing for OR queries.
dan [Thu, 17 Jul 2014 15:14:07 +0000 (15:14 +0000)] 
Fix a problem with position list processing for OR queries.

FossilOrigin-Name: 5808f30fae0d844c52a785bf18872be371d4af68

12 years agoFixes for tcl list generation in fts5_test().
dan [Wed, 16 Jul 2014 20:07:59 +0000 (20:07 +0000)] 
Fixes for tcl list generation in fts5_test().

FossilOrigin-Name: c1f9a4b76c0bbc1ef9f6cdb5d62aa5d536fdf38e

12 years agoBegin adding interface for auxiliary functions.
dan [Wed, 16 Jul 2014 19:15:57 +0000 (19:15 +0000)] 
Begin adding interface for auxiliary functions.

FossilOrigin-Name: 1e2a7ba0889093416455f488fca893eaeb195d45

12 years agoAdd simple tests for new sqlite3BtreeCursorHint() functionality.
dan [Tue, 15 Jul 2014 11:59:44 +0000 (11:59 +0000)] 
Add simple tests for new sqlite3BtreeCursorHint() functionality.

FossilOrigin-Name: 1efa6ed584172291edce78faf9021e577583d03b

12 years agoIn the expression passed to sqlite3BtreeCursorHint() for the inner loops of joins...
dan [Mon, 14 Jul 2014 19:04:29 +0000 (19:04 +0000)] 
In the expression passed to sqlite3BtreeCursorHint() for the inner loops of joins, replace any TK_COLUMN references to columns in the outer loops with TK_REGISTER expressions (Expr.iTable indicates the specific register containing the value).

FossilOrigin-Name: f9dddd008c6ef7940a1d66363fbb456cff7207c1

12 years agoSupport "ORDER BY rowid ASC".
dan [Thu, 10 Jul 2014 20:21:12 +0000 (20:21 +0000)] 
Support "ORDER BY rowid ASC".

FossilOrigin-Name: b96b5e166990e4ec363b24f66e04cfa5f00f6342

12 years agoAdd support for prefix queries to fts5.
dan [Tue, 8 Jul 2014 16:27:37 +0000 (16:27 +0000)] 
Add support for prefix queries to fts5.

FossilOrigin-Name: 75ebd3cd5904a4f89f7f3a9b25d32b2a42a31310

12 years agoFix harmless compiler warnings in the fts3view utility program that can occur with...
mistachkin [Mon, 7 Jul 2014 18:03:38 +0000 (18:03 +0000)] 
Fix harmless compiler warnings in the fts3view utility program that can occur with MSVC.

FossilOrigin-Name: 1cec1e030035e5253fb7ebbdfe5c1a3029e4e29b

12 years agoAdd the fts3view utility program to the MSVC makefile.
mistachkin [Mon, 7 Jul 2014 17:57:50 +0000 (17:57 +0000)] 
Add the fts3view utility program to the MSVC makefile.

FossilOrigin-Name: b04751bd59fed513ab615e7f368fe25c64b3607c

12 years agoFix a division-by-zero error in the fts3view utility program. Add the
drh [Mon, 7 Jul 2014 16:07:43 +0000 (16:07 +0000)] 
Fix a division-by-zero error in the fts3view utility program.  Add the
fts3view utility program to the "main.mk" makefile.

FossilOrigin-Name: 64f02699b4bd747e4c2f0debf72d37ec275137d8

12 years agoAdd support for AND, OR and NOT to fts5.
dan [Sat, 5 Jul 2014 15:15:41 +0000 (15:15 +0000)] 
Add support for AND, OR and NOT to fts5.

FossilOrigin-Name: 8682b87e794767cefcaa080fd53c8973c24c556a

12 years agoAdd support for the "colname : <nearset>" syntax to fts5.
dan [Sat, 5 Jul 2014 07:54:01 +0000 (07:54 +0000)] 
Add support for the "colname : <nearset>" syntax to fts5.

FossilOrigin-Name: 004667106e552e832a564b77e242b86f183d4441

12 years agoAdd support for NEAR expressions to fts5.
dan [Thu, 3 Jul 2014 20:39:39 +0000 (20:39 +0000)] 
Add support for NEAR expressions to fts5.

FossilOrigin-Name: 250ae8d40115e2e47cc5a1e8a427fa8c0a89124d

12 years agoChange fts3/4 so that the "unicode61" is included in builds by default. It may now...
dan [Thu, 3 Jul 2014 12:18:22 +0000 (12:18 +0000)] 
Change fts3/4 so that the "unicode61" is included in builds by default. It may now be excluded by defining SQLITE_DISABLE_FTS3_UNICODE.

FossilOrigin-Name: 0cc0230ae9cfc9760fd8ef2c25e82576b052dbeb

12 years agoAdd support for phrase queries to fts5.
dan [Wed, 2 Jul 2014 20:18:49 +0000 (20:18 +0000)] 
Add support for phrase queries to fts5.

FossilOrigin-Name: 2e5652e6526b8fb3f5c163168d95bc0bb4c93686

12 years agoChange the position list format so that its size in bytes is stored at the start...
dan [Tue, 1 Jul 2014 20:45:18 +0000 (20:45 +0000)] 
Change the position list format so that its size in bytes is stored at the start of the list itself.

FossilOrigin-Name: 62f2ff20418702ed0fbf708369edf5638445b51b

12 years agoAdd another test to verify that SQLite is using stat4 data for composite primary...
dan [Tue, 1 Jul 2014 15:22:11 +0000 (15:22 +0000)] 
Add another test to verify that SQLite is using stat4 data for composite primary keys on WITHOUT ROWID tables.

FossilOrigin-Name: 0df1fe72f8271abc86cd552027d938c910f90967

12 years agoEnsure that all fields are loaded from the stat4 table for records that correspond...
dan [Tue, 1 Jul 2014 11:54:02 +0000 (11:54 +0000)] 
Ensure that all fields are loaded from the stat4 table for records that correspond to indexes on WITHOUT ROWID tables with composite primary keys.

FossilOrigin-Name: 21981e35062cc6b30e9576786cbf55265a7a4d41

12 years agoMerge the latest trunk changes into the threads branch.
drh [Mon, 30 Jun 2014 20:25:03 +0000 (20:25 +0000)] 
Merge the latest trunk changes into the threads branch.

FossilOrigin-Name: ae23a65eb1547fbe8b86ab71477071990a22d31d

12 years agoMerge the latest trunk enhancements into the sessions branch.
drh [Mon, 30 Jun 2014 20:02:55 +0000 (20:02 +0000)] 
Merge the latest trunk enhancements into the sessions branch.

FossilOrigin-Name: a5d94eaba6aa12ff16d2a0af2fc752bcdb461877

12 years agoBump the version number to 3.8.6.
drh [Mon, 30 Jun 2014 19:28:57 +0000 (19:28 +0000)] 
Bump the version number to 3.8.6.

FossilOrigin-Name: f925e9baafea625f63105f8013abb3807b418379

12 years agoAttempt to use STAT4 information to estimate the selectivity of WHERE clause
drh [Mon, 30 Jun 2014 19:07:58 +0000 (19:07 +0000)] 
Attempt to use STAT4 information to estimate the selectivity of WHERE clause
terms when using the skip-scan optimization.

FossilOrigin-Name: d09ca6d5efad3e4cfa93a4dc711e6ba6079d4b4b

12 years agoFix for ticket [b2fa5424e6fcb15]: Better define the format of the sqlite_stat4
drh [Mon, 30 Jun 2014 18:57:53 +0000 (18:57 +0000)] 
Fix for ticket [b2fa5424e6fcb15]: Better define the format of the sqlite_stat4
file for WITHOUT ROWID tables and make sure the ANALYZE command generates a
file in the appropriate format.  Use the sqlite_stat4 data to enable the use
of WHERE terms that cover all indexed columns plus some prefix of columns
in the primary key.

FossilOrigin-Name: bc2de8095fa9c385db0adf22ca55b0298a33c284

12 years agoFix a problem in where.c with using the stat4 sample data of an index on a WITHOUT... stat4-without-rowid
dan [Mon, 30 Jun 2014 18:02:20 +0000 (18:02 +0000)] 
Fix a problem in where.c with using the stat4 sample data of an index on a WITHOUT ROWID table.

FossilOrigin-Name: 053a210e3169732c58f84cb54c9b6f6df3a8f4ea

12 years agoFix the STAT4 information for WITHOUT ROWID tables.
drh [Mon, 30 Jun 2014 17:07:39 +0000 (17:07 +0000)] 
Fix the STAT4 information for WITHOUT ROWID tables.

FossilOrigin-Name: 5d8628fdffbcf837313958f0ee1ed8a2043d384e

12 years agoFix where.c so that the primary key values appended to every index entry on a WITHOUT...
dan [Mon, 30 Jun 2014 15:23:57 +0000 (15:23 +0000)] 
Fix where.c so that the primary key values appended to every index entry on a WITHOUT ROWID table may be used when useful.

FossilOrigin-Name: 6624a61d16e47ad691c4195ca8a1d68b7348118d

12 years agoOmit non-primary-key columns from the STAT4 samples for WITHOUT ROWID tables.
drh [Mon, 30 Jun 2014 13:56:34 +0000 (13:56 +0000)] 
Omit non-primary-key columns from the STAT4 samples for WITHOUT ROWID tables.
Indexes, both rowid and without-rowid, still hold an exact copy
of the index entry.

FossilOrigin-Name: de826c31589258f0906f87d65796944103e36d5b

12 years agoGenerate complete samples for sqlite_stat4 on WITHOUT ROWID tables.
drh [Mon, 30 Jun 2014 13:32:39 +0000 (13:32 +0000)] 
Generate complete samples for sqlite_stat4 on WITHOUT ROWID tables.
Ticket [b2fa5424e6fcb15b5]

FossilOrigin-Name: 8cb43eddab83c68b2163441df70e0e9496d5fa33

12 years agoAdd makefile targets for various diagnostic tools, such as showstat4.
drh [Mon, 30 Jun 2014 11:14:26 +0000 (11:14 +0000)] 
Add makefile targets for various diagnostic tools, such as showstat4.
Fix harmless compiler warnings in diagnostic tools.

FossilOrigin-Name: 6f86d89b8800c50035da7809bff941d08a33a6a2

12 years agoAdd an OOM fault injection test for the new code on this branch. stat4-skipscan
dan [Sat, 28 Jun 2014 19:06:49 +0000 (19:06 +0000)] 
Add an OOM fault injection test for the new code on this branch.

FossilOrigin-Name: c96de490ac77dd23c108004b95152cce4922fe27

12 years agoAdd further tests to skipscan5.test.
dan [Sat, 28 Jun 2014 17:35:15 +0000 (17:35 +0000)] 
Add further tests to skipscan5.test.

FossilOrigin-Name: 4b8230e8fe93e73a615a46708aed5fa3557b6228

12 years agoAdd header comments on new routines. Rework the sqlite3Stat4Column() routine
drh [Sat, 28 Jun 2014 16:06:44 +0000 (16:06 +0000)] 
Add header comments on new routines.  Rework the sqlite3Stat4Column() routine
so that is (in theory) able to deal with corrupt samples.

FossilOrigin-Name: ef5cdf949bb53a2958fa34e176b4b9eeda269de5

12 years agoFix a problem with using stat4 samples of type text when estimating the rows visited...
dan [Sat, 28 Jun 2014 15:26:10 +0000 (15:26 +0000)] 
Fix a problem with using stat4 samples of type text when estimating the rows visited by a range-query/skip-scan loop.

FossilOrigin-Name: dfb09db6d412f3bc2a71bda393813783580dbad1

12 years agoChange the VDBE to export the sqlite3MemCompare() routine and thus free
drh [Sat, 28 Jun 2014 14:28:06 +0000 (14:28 +0000)] 
Change the VDBE to export the sqlite3MemCompare() routine and thus free
where.c from the dependency on vdbeInt.h.

FossilOrigin-Name: d186d1ac3c47f0d814636c4b8386a6065a294750

12 years agoMerge fixes from trunk with this branch.
dan [Sat, 28 Jun 2014 14:25:32 +0000 (14:25 +0000)] 
Merge fixes from trunk with this branch.

FossilOrigin-Name: 6af219d1b83ec54b3fb4ad4e6216d9ad9ea0fc70

12 years agoFix a couple of problems in estimating the number of rows visited by a range query...
dan [Fri, 27 Jun 2014 20:14:25 +0000 (20:14 +0000)] 
Fix a couple of problems in estimating the number of rows visited by a range query that uses a skip-scan.

FossilOrigin-Name: 219736f54dcd1448af3400e699f1c20755ac6876

12 years agoAdd some more IN operator tests.
mistachkin [Thu, 26 Jun 2014 22:17:21 +0000 (22:17 +0000)] 
Add some more IN operator tests.

FossilOrigin-Name: fb32e374b75b160e7b535e732ced6c34dbb513eb

12 years agoFix compilation issue when STAT4 is not enabled.
mistachkin [Thu, 26 Jun 2014 21:32:09 +0000 (21:32 +0000)] 
Fix compilation issue when STAT4 is not enabled.

FossilOrigin-Name: 74a5454a710e1b7d8575cec2f872e6110aefce17

12 years agoRevise the affinity returned for expressions flagged as 'generic'. Fix for [9a8b09f8e6].
mistachkin [Thu, 26 Jun 2014 21:28:21 +0000 (21:28 +0000)] 
Revise the affinity returned for expressions flagged as 'generic'.  Fix for [9a8b09f8e6].

FossilOrigin-Name: 92f7ad43dbfe4e02490df2f932c3c74fb89064d6

12 years agoAttempt to use sqlite_stat4 data to estimate the number of rows visited by a range...
dan [Thu, 26 Jun 2014 20:21:46 +0000 (20:21 +0000)] 
Attempt to use sqlite_stat4 data to estimate the number of rows visited by a range query that uses a skip-scan. This code is largely untested.

FossilOrigin-Name: 01dc8102592427b71a18c2cb82301d2266dd59c2

12 years agoFix minor problems in term matching.
dan [Thu, 26 Jun 2014 12:31:41 +0000 (12:31 +0000)] 
Fix minor problems in term matching.

FossilOrigin-Name: 94eeb077d08a1d2607f3ff3a9fbf18229ba475bb

12 years agoBegin adding query support to fts5.
dan [Wed, 25 Jun 2014 20:28:38 +0000 (20:28 +0000)] 
Begin adding query support to fts5.

FossilOrigin-Name: 47a9f3cc92deefe163108e3507bd4614bf1f5da7

12 years agoFix showstat4.c so that it decodes typecodes 8 and 9 correctly.
drh [Tue, 24 Jun 2014 20:19:21 +0000 (20:19 +0000)] 
Fix showstat4.c so that it decodes typecodes 8 and 9 correctly.

FossilOrigin-Name: 9ca737c0b41f87998d842e7772c3e483bb291c50

12 years agoAdd simple full-table-scan and rowid lookup support to fts5.
dan [Tue, 24 Jun 2014 16:59:06 +0000 (16:59 +0000)] 
Add simple full-table-scan and rowid lookup support to fts5.

FossilOrigin-Name: 3515da85d09220c464979467b476c611da4a6a7a

12 years agoAdd the showstat4.exe utility program for decoding and displaying the
drh [Tue, 24 Jun 2014 00:59:15 +0000 (00:59 +0000)] 
Add the showstat4.exe utility program for decoding and displaying the
content of the sqlite_stat4 table in a database.

FossilOrigin-Name: b4d9f6053d1d95fdc1eab8ce610b51e7df8d896d

12 years agoAdd the .fullschema command to the sqlite3.exe utility. This command shows
drh [Mon, 23 Jun 2014 23:28:13 +0000 (23:28 +0000)] 
Add the .fullschema command to the sqlite3.exe utility.  This command shows
the schema and the content of the sqlite_stat tables, all in one go.  Useful
when reporting problems with the query planner.

FossilOrigin-Name: ebec48921c092e20c9d7608242b63db40b40be5e

12 years agoAdd some code for an experimental fts5 module. Does not work yet.
dan [Mon, 23 Jun 2014 11:33:22 +0000 (11:33 +0000)] 
Add some code for an experimental fts5 module. Does not work yet.

FossilOrigin-Name: 1e0648dcf283d4f1f6159db4d2433b6cc635992e

12 years agoFix a problem with SQLITE_OMIT_WSD builds.
dan [Mon, 23 Jun 2014 10:18:50 +0000 (10:18 +0000)] 
Fix a problem with SQLITE_OMIT_WSD builds.

FossilOrigin-Name: 07dda49c1bf8997a18c3368acb81b6d863ea38d6

12 years agoFix a problem with SQLITE_OMIT_WAL builds.
dan [Mon, 23 Jun 2014 10:04:58 +0000 (10:04 +0000)] 
Fix a problem with SQLITE_OMIT_WAL builds.

FossilOrigin-Name: 612b6d1b1f74eaf618520b90811eca10f978fc71

12 years agoImproved display of record data in the "NNNbd" output of the showdb.exe
drh [Fri, 20 Jun 2014 13:55:06 +0000 (13:55 +0000)] 
Improved display of record data in the "NNNbd" output of the showdb.exe
utility program.

FossilOrigin-Name: f735c2497eaad15216c90c6b92fd5ceff460220a

12 years agoIn the showdb.exe utility, for the "NNNbd" command, also show data fields
drh [Fri, 20 Jun 2014 01:32:42 +0000 (01:32 +0000)] 
In the showdb.exe utility, for the "NNNbd" command, also show data fields
in addition to header fields on each record decoded.  Improvements to
formatting.

FossilOrigin-Name: b451fe0cb92278deb7724e7995c1bd46ae83c119

12 years agoAdd the ability to decode the headers of individual cells, byte-by-byte,
drh [Thu, 19 Jun 2014 23:38:53 +0000 (23:38 +0000)] 
Add the ability to decode the headers of individual cells, byte-by-byte,
in the "showdb.exe" utility.

FossilOrigin-Name: 306b461d7c0643b6ac4df944759ecc9ce8581634

12 years agoAdd the "LogEst" and "LogEst.exe" target to the makefiles.
drh [Wed, 18 Jun 2014 18:10:12 +0000 (18:10 +0000)] 
Add the "LogEst" and "LogEst.exe" target to the makefiles.

FossilOrigin-Name: 7b91b0581d169a353462d96120a2e0d4dcc8e8ae

12 years agoFix a comment on the sqlite3Utf8Read() routine. No changes to code.
drh [Wed, 18 Jun 2014 15:24:40 +0000 (15:24 +0000)] 
Fix a comment on the sqlite3Utf8Read() routine.  No changes to code.

FossilOrigin-Name: 5e514f6acebcfad4f18300d1a34f4917f1a746d9

12 years agoMerge in all recent changes from trunk, and especially the automatic index
drh [Wed, 18 Jun 2014 15:18:12 +0000 (15:18 +0000)] 
Merge in all recent changes from trunk, and especially the automatic index
enhancements.

FossilOrigin-Name: 0e1b73496f861bd497f92f1ead936b2d94aa52d5

12 years agoPrevent an automatic index from taking the place of a declared index.
drh [Wed, 18 Jun 2014 15:11:54 +0000 (15:11 +0000)] 
Prevent an automatic index from taking the place of a declared index.

FossilOrigin-Name: 0a52bddd9db49b2b79fc24888b50023d0fe74f7b

12 years agoPrevent an automatic index from taking the place of a declared index. autoindex-improvements
drh [Tue, 17 Jun 2014 20:16:43 +0000 (20:16 +0000)] 
Prevent an automatic index from taking the place of a declared index.

FossilOrigin-Name: 4ece839d445ff578a449a339ab579a32e64c9d28

12 years agoFix a missing space in a "wheretrace" comment. No changes to production code.
drh [Tue, 17 Jun 2014 17:00:42 +0000 (17:00 +0000)] 
Fix a missing space in a "wheretrace" comment.  No changes to production code.

FossilOrigin-Name: b500f2a09721b49c95a69c47a0205bc2375af2cd

12 years agoAdd the likely() function for symmetry with unlikely(). The likely(X)
drh [Tue, 17 Jun 2014 16:11:28 +0000 (16:11 +0000)] 
Add the likely() function for symmetry with unlikely().  The likely(X)
function means the same thing as likelihood(X,0.9375).

FossilOrigin-Name: 38965484199153e3e5b999f5196c1d66e5296f60

12 years agoImprovements to query planning, especially in regards to estimating the
drh [Tue, 17 Jun 2014 15:53:33 +0000 (15:53 +0000)] 
Improvements to query planning, especially in regards to estimating the
cost and benefit of automatic indexes.

FossilOrigin-Name: 1272fb8991b3888c72dcebf947415883d7727241

12 years agoAdd the autoindex2.test testing module.
drh [Tue, 17 Jun 2014 13:23:36 +0000 (13:23 +0000)] 
Add the autoindex2.test testing module.

FossilOrigin-Name: ffe3fea47b8ba8ec4557f68243ef3ef5aac00dfd

12 years agoA different approach to the autoindex problem that deletes query-planner code
drh [Tue, 17 Jun 2014 12:33:55 +0000 (12:33 +0000)] 
A different approach to the autoindex problem that deletes query-planner code
rather than adding it.

FossilOrigin-Name: f270fb6e9e0b5e77f918081962008c6195ab1e36

12 years agoSimplification to the logic that prevents automatic indexes from being formed
drh [Tue, 17 Jun 2014 09:52:26 +0000 (09:52 +0000)] 
Simplification to the logic that prevents automatic indexes from being formed
on constant expressions.

FossilOrigin-Name: 36d67e1dd2b4f4c22d02f3c3b8d372074de5523a

12 years agoAllow an automatic index on a WHERE constraint where the RHS is does not
drh [Tue, 17 Jun 2014 09:00:54 +0000 (09:00 +0000)] 
Allow an automatic index on a WHERE constraint where the RHS is does not
reference another table as long as the RHS is not a constant.

FossilOrigin-Name: 58acc2a8b38c5f13175c191697b4d2b663db1872

12 years agoDo not attempt to create an automatic index on a constant constraint, as
drh [Tue, 17 Jun 2014 02:46:55 +0000 (02:46 +0000)] 
Do not attempt to create an automatic index on a constant constraint, as
doing so is pointless.

FossilOrigin-Name: d6883e960f61365729f279a3c1f2c050beb49a55

12 years agoFix CSV import issue, reported via the mailing list, in the shell when the file to...
mistachkin [Mon, 16 Jun 2014 22:45:28 +0000 (22:45 +0000)] 
Fix CSV import issue, reported via the mailing list, in the shell when the file to be imported ends with an empty line.

FossilOrigin-Name: fc918f7d332b8f7cabc79a0f1586bd6760d14d40

12 years agoIn the "wheretrace" logic (disabled for normal builds) expand the print width
drh [Mon, 16 Jun 2014 21:30:29 +0000 (21:30 +0000)] 
In the "wheretrace" logic (disabled for normal builds) expand the print width
of the flags field to be wide enough for all 17 bits.

FossilOrigin-Name: 3181d2069a788adc719decf65dc1bd2e16650c87

12 years agoAdd the SQLITE_UNLINK_AFTER_CLOSE compile-time option. If enabled, the
drh [Mon, 16 Jun 2014 18:35:06 +0000 (18:35 +0000)] 
Add the SQLITE_UNLINK_AFTER_CLOSE compile-time option.  If enabled, the
unlink of temporary files on unix is deferred until after the file is closed.

FossilOrigin-Name: e43a2f92b616ec885a1ee62911fa8f6991d277f7

12 years agoAdd an application ID for MBTiles tilesets.
drh [Mon, 16 Jun 2014 18:17:21 +0000 (18:17 +0000)] 
Add an application ID for MBTiles tilesets.

FossilOrigin-Name: 837f6404230fc642e9084140c4b30cca1be43375

12 years agoBack out the unix VFS changes that seeks to avoid fstat() calls after an
drh [Mon, 16 Jun 2014 16:41:52 +0000 (16:41 +0000)] 
Back out the unix VFS changes that seeks to avoid fstat() calls after an
unlink().  That change did not clear the problem on FuseFS.

FossilOrigin-Name: 0617e20a33e08754aea14e60db44e557c13978e3

12 years agoAdd the ".eqp" dot-command to the ".help" output in the command-line shell.
drh [Mon, 16 Jun 2014 15:01:37 +0000 (15:01 +0000)] 
Add the ".eqp" dot-command to the ".help" output in the command-line shell.
This was accidently omitted when the ".eqp" command was originally implemented
for SQLite 3.8.4 (check-in [e6ecf7337658624]).

FossilOrigin-Name: b0b4c776c321ca4a792ef67efbc62351eeac247d

12 years agoFix the extension01.test script so that it works on windows. Fix a
drh [Mon, 16 Jun 2014 12:51:56 +0000 (12:51 +0000)] 
Fix the extension01.test script so that it works on windows.  Fix a
harmless compiler warning in the fileio extension.

FossilOrigin-Name: baf95a190907d05a847ae8b6a3dd60625c2a078a

12 years agoAdd test cases for the fileio extension.
drh [Mon, 16 Jun 2014 12:44:32 +0000 (12:44 +0000)] 
Add test cases for the fileio extension.

FossilOrigin-Name: 8634333127c4d868d3ec27e88b5818f6479774f3

12 years agoAdd the fileio.c loadable extension, that implements readfile() and writefile()
drh [Fri, 13 Jun 2014 13:43:25 +0000 (13:43 +0000)] 
Add the fileio.c loadable extension, that implements readfile() and writefile()
SQL functions.

FossilOrigin-Name: 0ca104d821d5841ab0754113be074c520cf07f23

12 years agoAdd an extension that implements compress() and uncompress() SQL functions.
drh [Fri, 13 Jun 2014 13:08:21 +0000 (13:08 +0000)] 
Add an extension that implements compress() and uncompress() SQL functions.

FossilOrigin-Name: d5c17d1a423321f766616d82c9b27ef87c1d5afd

12 years agoIncrease the WAL-mode SQLITE_PROTOCOL timeout to 10 seconds.
drh [Thu, 12 Jun 2014 17:10:18 +0000 (17:10 +0000)] 
Increase the WAL-mode SQLITE_PROTOCOL timeout to 10 seconds.

FossilOrigin-Name: 2aeacf81df92b4fe5d1825c1dc1cd176b8af8bd9

12 years agoSimplify the estLog() routine.
drh [Thu, 12 Jun 2014 15:46:46 +0000 (15:46 +0000)] 
Simplify the estLog() routine.

FossilOrigin-Name: 6c68d758bce3752f044752404a76bf3ba3eec48f

12 years agoAvoid an unnecessary initialization of the szFile field of unixFile in
drh [Mon, 9 Jun 2014 20:39:03 +0000 (20:39 +0000)] 
Avoid an unnecessary initialization of the szFile field of unixFile in
the unix VFS.

FossilOrigin-Name: 6484fb5a25c2a0e5d26694285a4908a22c67ba17

12 years agoEnhance the unix VFS so that it keeps track of the size of unlinked files
drh [Mon, 9 Jun 2014 20:24:46 +0000 (20:24 +0000)] 
Enhance the unix VFS so that it keeps track of the size of unlinked files
internally and thus avoids the need to call fstat() on those files, since
fstat() does not work reliably on unlinked files on some implementations
of FuseFS.

FossilOrigin-Name: 10707d35786403ea5392d980f593bfecdae063dd

12 years agoEnhance the unix VFS so that it keeps track of the size of unlinked files omit-fstat-after-unlink
drh [Mon, 9 Jun 2014 20:06:01 +0000 (20:06 +0000)] 
Enhance the unix VFS so that it keeps track of the size of unlinked files
internally and thus avoids the need to call fstat() on those files, since
fstat() does not work reliably on unlinked files on some implementations of
FuseFS.

FossilOrigin-Name: c41df393c6afbfbfdc4d1b885024e083c6f6de1f

12 years agoModify the %nonassoc directive in lemon so that it generates a run-time
drh [Mon, 9 Jun 2014 13:11:40 +0000 (13:11 +0000)] 
Modify the %nonassoc directive in lemon so that it generates a run-time
error rather than a parsing conflict.  This changes is due to a bug report
on the mailing list.  SQLite does not use the %nonassoc directive in its
grammar so this change does not affect SQLite.

FossilOrigin-Name: 1925f3a0a2caa709569df015a8e0d26412f1a9ff

12 years agoAdd a test case to ensure that estLog() works for negative numbers.
drh [Fri, 6 Jun 2014 20:49:19 +0000 (20:49 +0000)] 
Add a test case to ensure that estLog() works for negative numbers.

FossilOrigin-Name: 813469d98519b609669a004b7b604af78ef40c02

12 years agoMake sure the estLog() routine in the query planner handles negative
drh [Fri, 6 Jun 2014 20:20:09 +0000 (20:20 +0000)] 
Make sure the estLog() routine in the query planner handles negative
values correctly (always returning 1).  Prior to this change, estLog(-1)
would return a large number which could throw off the cost computations
in the query planner in obscure circumstances.

FossilOrigin-Name: 75437bee4905949c66dc7694ea234d4d5aefd981

12 years agoFix an obsolete comment on the whereRangeScanEst() routine. No
drh [Fri, 6 Jun 2014 17:09:52 +0000 (17:09 +0000)] 
Fix an obsolete comment on the whereRangeScanEst() routine.  No
changes to code.

FossilOrigin-Name: b16bf8518b7c50f6a939aa54900fea91b1098470