]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
10 years agoFixes to built-in tokenizers.
dan [Mon, 29 Dec 2014 11:24:46 +0000 (11:24 +0000)] 
Fixes to built-in tokenizers.

FossilOrigin-Name: b33fe0dd89f3180c209fa1f9e75d0a7acab12b8e

10 years agoFix the fts5 bm25() function so that it matches the documentation.
dan [Tue, 23 Dec 2014 19:18:34 +0000 (19:18 +0000)] 
Fix the fts5 bm25() function so that it matches the documentation.

FossilOrigin-Name: 1ac7a8d0af9a71ddf6a1421033dcb9fa67c6120c

10 years agoFixes and simplifications for the snippet() and highlight() functions.
dan [Mon, 22 Dec 2014 21:01:52 +0000 (21:01 +0000)] 
Fixes and simplifications for the snippet() and highlight() functions.

FossilOrigin-Name: ca5d44042aa7461dcc8b700b0763df4df9d4a891

10 years agoRemove the fts5_test() aux function. Test aux functions using the tcl interface instead.
dan [Fri, 19 Dec 2014 20:53:51 +0000 (20:53 +0000)] 
Remove the fts5_test() aux function. Test aux functions using the tcl interface instead.

FossilOrigin-Name: 67e3ffd950c5347d219a06b33ad51949cffa7d90

10 years agoFix a problem with prefix queries and the AND operator.
dan [Thu, 18 Dec 2014 20:01:15 +0000 (20:01 +0000)] 
Fix a problem with prefix queries and the AND operator.

FossilOrigin-Name: 38b3c65e3ee95eb7afadb76e0110570fbbc41e1b

10 years agoFix various problems in fts5 revealed by fault-injection tests.
dan [Thu, 18 Dec 2014 18:25:48 +0000 (18:25 +0000)] 
Fix various problems in fts5 revealed by fault-injection tests.

FossilOrigin-Name: e358c3de5c916f2c851ab9324ceaae4e4e7a0fbd

10 years agoBegin testing fts5 OOM and IO error handling.
dan [Wed, 3 Dec 2014 17:27:35 +0000 (17:27 +0000)] 
Begin testing fts5 OOM and IO error handling.

FossilOrigin-Name: 2037dba62fdd995ad15b642abe499a790f5ffe5c

10 years agoAdd a configuration option to remap the "rank" column to an auxiliary fts5 function.
dan [Tue, 2 Dec 2014 20:18:11 +0000 (20:18 +0000)] 
Add a configuration option to remap the "rank" column to an auxiliary fts5 function.

FossilOrigin-Name: b5f5971283b9b2f60c16f9675099855af95012cd

10 years agoAdd code to parse a rank() function specification. And a tcl interface to add auxilia...
dan [Mon, 1 Dec 2014 20:05:00 +0000 (20:05 +0000)] 
Add code to parse a rank() function specification. And a tcl interface to add auxiliary functions to fts5.

FossilOrigin-Name: 9c1697a2aa1f601e6eb11704abe63a73c8105447

10 years agoAdd a cookie mechanism to ensure that the %_config table is re-read as required.
dan [Fri, 28 Nov 2014 20:01:13 +0000 (20:01 +0000)] 
Add a cookie mechanism to ensure that the %_config table is re-read as required.

FossilOrigin-Name: bb4a37b53de60da9ec8b9317eec14afa99690828

10 years agoAdd a %_config table to fts5.
dan [Thu, 27 Nov 2014 20:03:45 +0000 (20:03 +0000)] 
Add a %_config table to fts5.

FossilOrigin-Name: 83491c56661ca78f96020ba68184bb3fb19e674f

10 years agoAdd the auxiliary highlight() function to fts5.
dan [Mon, 24 Nov 2014 16:24:33 +0000 (16:24 +0000)] 
Add the auxiliary highlight() function to fts5.

FossilOrigin-Name: 059092379f981eb919b500ce447006f9e645fc5a

11 years agoFix the customization interfaces so that they match the documentation.
dan [Sat, 15 Nov 2014 20:07:31 +0000 (20:07 +0000)] 
Fix the customization interfaces so that they match the documentation.

FossilOrigin-Name: fba0b5fc7eead07a4853e78e02d788e7c714f6cd

11 years agoAdd documentation for tokenizer api to fts5.h. Also add a script to extract extension...
dan [Mon, 25 Aug 2014 19:58:54 +0000 (19:58 +0000)] 
Add documentation for tokenizer api to fts5.h. Also add a script to extract extension API docs and format them as html.

FossilOrigin-Name: e240d467e60b7755486aae5e8b0824f7c741f852

11 years agoAdd an "automerge=0" mode that disables auto-merging and falls back to fts4-style...
dan [Mon, 18 Aug 2014 19:30:01 +0000 (19:30 +0000)] 
Add an "automerge=0" mode that disables auto-merging and falls back to fts4-style crisis merges.

FossilOrigin-Name: 2397404e152b908d838e6491294b263b05943b3f

11 years agoCache the value of the "totals" record in memory during transactions.
dan [Tue, 12 Aug 2014 16:07:35 +0000 (16:07 +0000)] 
Cache the value of the "totals" record in memory during transactions.

FossilOrigin-Name: 05dfdad445b22f375b71abe0b1fa1bf7ca331be7

11 years agoAutomatically resize the hash table used by fts5.
dan [Tue, 12 Aug 2014 08:36:00 +0000 (08:36 +0000)] 
Automatically resize the hash table used by fts5.

FossilOrigin-Name: f1cb48f412a5f200f1fe04f91072864f379db08f

11 years agoSimplify the way position lists are copied when merging data.
dan [Mon, 11 Aug 2014 20:26:34 +0000 (20:26 +0000)] 
Simplify the way position lists are copied when merging data.

FossilOrigin-Name: 9f8d678a0ea75e169daf8b3f00bd05f52a050ea6

11 years agoReplace the hash table borrowed from fts3.
dan [Mon, 11 Aug 2014 19:44:52 +0000 (19:44 +0000)] 
Replace the hash table borrowed from fts3.

FossilOrigin-Name: 617e2fac1c128212254f71b1a8fddaf0d1d90262

11 years agoFix an uninitialized variable causing a problem during fts5 table initialization.
dan [Sat, 9 Aug 2014 18:22:59 +0000 (18:22 +0000)] 
Fix an uninitialized variable causing a problem during fts5 table initialization.

FossilOrigin-Name: a14fa876f0eb66028e302b908967cc4a05ede9fc

11 years agoUse multiple memory allocations for a single Fts5Structure object. This is probably...
dan [Sat, 9 Aug 2014 18:02:27 +0000 (18:02 +0000)] 
Use multiple memory allocations for a single Fts5Structure object. This is probably less efficient but much easier to get right.

FossilOrigin-Name: 2821825f7a481755a333dcdcad780b3e24448f20

11 years agoAdd "segment promotion" to fts5. This prevents the FTS index from growing indefinitel...
dan [Thu, 7 Aug 2014 18:47:33 +0000 (18:47 +0000)] 
Add "segment promotion" to fts5. This prevents the FTS index from growing indefinitely as data is added and deleted.

FossilOrigin-Name: ba359d78e166d78e0dc89e3c63a9a41e9ffea989

11 years agoAvoid writing delete markers to the oldest segment in an FTS index.
dan [Wed, 6 Aug 2014 20:04:14 +0000 (20:04 +0000)] 
Avoid writing delete markers to the oldest segment in an FTS index.

FossilOrigin-Name: 1baeb1cee61d9c56c718b50af034a24f1018a322

11 years agoAdd support for savepoints to fts5.
dan [Wed, 6 Aug 2014 16:30:21 +0000 (16:30 +0000)] 
Add support for savepoints to fts5.

FossilOrigin-Name: 3b19eba042bb2eeb1be60f8d58ebaa0a045d6a5c

11 years agoUse doclist indexes for AND queries as well as phrases.
dan [Tue, 5 Aug 2014 19:35:20 +0000 (19:35 +0000)] 
Use doclist indexes for AND queries as well as phrases.

FossilOrigin-Name: 5d38e6edc40ef188fbf96505073797036aa6783a

11 years agoUse doclist-indexes with "ORDER BY rowid ASC" fts5 queries as well.
dan [Tue, 5 Aug 2014 19:00:22 +0000 (19:00 +0000)] 
Use doclist-indexes with "ORDER BY rowid ASC" fts5 queries as well.

FossilOrigin-Name: d028ba6589f3122b635474c2683c0f93d5bc6c7c

11 years agoFix fts5_index.c to use doclist-indexes when possible. Only some cases work so far.
dan [Mon, 4 Aug 2014 20:07:40 +0000 (20:07 +0000)] 
Fix fts5_index.c to use doclist-indexes when possible. Only some cases work so far.

FossilOrigin-Name: 90b82d3ef613b2915e0e280dc1d2e5a2b617d59c

11 years agoStart changing things to use doclist indexes as required. code is not activated yet.
dan [Sat, 2 Aug 2014 20:49:36 +0000 (20:49 +0000)] 
Start changing things to use doclist indexes as required. code is not activated yet.

FossilOrigin-Name: b8864da95db2c0e611116304d607e35a86c9247d

11 years agoAdd a special case to the integrity-check code to check that the final integer in...
dan [Fri, 1 Aug 2014 20:13:49 +0000 (20:13 +0000)] 
Add a special case to the integrity-check code to check that the final integer in a doclist index is as expected.

FossilOrigin-Name: c98934155cb48adfda57bd0fd1b950226d45f67a

11 years agoHave the fts5 integrity-check verify that doclist indexes match the contents of the...
dan [Fri, 1 Aug 2014 19:27:07 +0000 (19:27 +0000)] 
Have the fts5 integrity-check verify that doclist indexes match the contents of the leaf pages that they index.

FossilOrigin-Name: 37a7d3035eb4bbad7e32fe550321ac9fae611a57

11 years agoAdd "doclist index" records to the database. These are to make navigating within...
dan [Fri, 1 Aug 2014 11:16:25 +0000 (11:16 +0000)] 
Add "doclist index" records to the database. These are to make navigating within very large doclists faster. They are not yet used by queries.

FossilOrigin-Name: 89377421ff69f2450364987afe781b6d8bcbf087

11 years agoAdd a comment explaining why fts5 cannot cache "sorter statements".
dan [Thu, 31 Jul 2014 17:53:03 +0000 (17:53 +0000)] 
Add a comment explaining why fts5 cannot cache "sorter statements".

FossilOrigin-Name: e6af3b7a3cf331210f4c87848e2af007dbd5ef30

11 years agoAdd further tests for the extension APIs with "ORDER BY rank" queries.
dan [Thu, 31 Jul 2014 11:57:59 +0000 (11:57 +0000)] 
Add further tests for the extension APIs with "ORDER BY rank" queries.

FossilOrigin-Name: 37a417d27e4ebafd4783f62728d7467316b75b17

11 years agoFix things so that the fts5 extension API works with "ORDER BY rank" queries.
dan [Wed, 30 Jul 2014 20:26:24 +0000 (20:26 +0000)] 
Fix things so that the fts5 extension API works with "ORDER BY rank" queries.

FossilOrigin-Name: f1b4e1a98d49ecaba962beba16f8224175e4ba59

11 years agoAdd hidden column "rank". Currently this always returns the same value as the bm25...
dan [Wed, 30 Jul 2014 19:41:58 +0000 (19:41 +0000)] 
Add hidden column "rank". Currently this always returns the same value as the bm25() function.

FossilOrigin-Name: 4cc048c3651e830a6aeded924c7f3a60b634e133

11 years agoAdd the "loadfts" program, for performance testing the loading of data into fts3...
dan [Mon, 28 Jul 2014 20:14:02 +0000 (20:14 +0000)] 
Add the "loadfts" program, for performance testing the loading of data into fts3/fts4/fts5 tables.

FossilOrigin-Name: 770b9540c19ad1e3d24adff382332bf032065efd

11 years agoAdd tests and fixes for bm25() function.
dan [Sat, 26 Jul 2014 18:38:51 +0000 (18:38 +0000)] 
Add tests and fixes for bm25() function.

FossilOrigin-Name: 71d32f53e81921e43c933cc968cb1c18d83fe1e0

11 years agoAdd extension apis xRowCount, xQueryPhrase, xSetAuxdata and xGetAuxdata. And a rankin...
dan [Fri, 25 Jul 2014 20:30:47 +0000 (20:30 +0000)] 
Add extension apis xRowCount, xQueryPhrase, xSetAuxdata and xGetAuxdata. And a ranking function that uses all of the above.

FossilOrigin-Name: c4d50428ab97f77e6721c4f8d03eaaf3ea91f3eb

11 years agoAdd a snippet() function to fts5.
dan [Wed, 23 Jul 2014 19:31:56 +0000 (19:31 +0000)] 
Add a snippet() function to fts5.

FossilOrigin-Name: bdc58fd28a63ac9632c3df6c7768a9a236566605

11 years agoFix DELETE and UPDATE operations on fts5 tables.
dan [Mon, 21 Jul 2014 15:45:26 +0000 (15:45 +0000)] 
Fix DELETE and UPDATE operations on fts5 tables.

FossilOrigin-Name: d44d3a8518ff7a1a3e2c0ab97493aa590676ee8c

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

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

FossilOrigin-Name: 6c68d758bce3752f044752404a76bf3ba3eec48f

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 years agoFix a problem that was causing the FTS4 integrity-check command to fail if the table...
dan [Thu, 5 Jun 2014 11:15:56 +0000 (11:15 +0000)] 
Fix a problem that was causing the FTS4 integrity-check command to fail if the table had one or more "notindexed" columns.

FossilOrigin-Name: 7123bb2605216396f65db5d156431b3613f313b5

11 years agoVersion 3.8.5 version-3.8.5
drh [Wed, 4 Jun 2014 14:06:34 +0000 (14:06 +0000)] 
Version 3.8.5

FossilOrigin-Name: b1ed4f2a34ba66c29b130f8d13e9092758019212

11 years agoAvoid closing a pseudo-table associated with sorting in a co-routine since
drh [Tue, 3 Jun 2014 14:42:34 +0000 (14:42 +0000)] 
Avoid closing a pseudo-table associated with sorting in a co-routine since
that pseudo-table might be used again in an outer loop.

FossilOrigin-Name: 6d81805298ea882f5fee99504d5a95f1a762a90b

11 years agoAdd a test to double-check that [1cbe7a0883] did not affect anything.
dan [Tue, 3 Jun 2014 11:32:38 +0000 (11:32 +0000)] 
Add a test to double-check that [1cbe7a0883] did not affect anything.

FossilOrigin-Name: c6b512a724aebcd084aad2a80d020b95773b3012

11 years agoRemove the WHERE_LIKELIHOOD bit, as it does not seem to effect any result.
drh [Mon, 2 Jun 2014 21:00:34 +0000 (21:00 +0000)] 
Remove the WHERE_LIKELIHOOD bit, as it does not seem to effect any result.

FossilOrigin-Name: 1cbe7a0883e081611a50524517d70e0b6c5199d2