]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
10 years agoTry to reuse sorter statements in fts5. Does not work due to circular references... save_sorter_stmt
dan [Thu, 31 Jul 2014 17:47:04 +0000 (17:47 +0000)] 
Try to reuse sorter statements in fts5. Does not work due to circular references on VTable object.

FossilOrigin-Name: bc14e64bdffb165fc5468339a7eaa5f6707537bf

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

11 years agoFix a typo in a requirements mark comment in a test script. No changes to
drh [Mon, 2 Jun 2014 18:24:55 +0000 (18:24 +0000)] 
Fix a typo in a requirements mark comment in a test script.  No changes to
code.

FossilOrigin-Name: 75ff459b06e1a5c180d316d227ce2f73c99a1f52

11 years agoFix the query planner so that it once again knows that queries without a
drh [Mon, 2 Jun 2014 11:26:33 +0000 (11:26 +0000)] 
Fix the query planner so that it once again knows that queries without a
FROM clause will never return more than one row and hence do not require
sorting.

FossilOrigin-Name: 9f18b303cd1bc5779d82669884f802c7889b4947

11 years agoAdd the "valgrind-nolookaside" permutation to permutations.test.
dan [Mon, 2 Jun 2014 09:39:24 +0000 (09:39 +0000)] 
Add the "valgrind-nolookaside" permutation to permutations.test.

FossilOrigin-Name: 8e8472d9b689d128eb11d3111e009161cf4580f7

11 years agoFix a harmless "scan-build" compiler warning in the command-line shell.
drh [Sat, 31 May 2014 15:43:33 +0000 (15:43 +0000)] 
Fix a harmless "scan-build" compiler warning in the command-line shell.

FossilOrigin-Name: 39fafe0a19ff346a2354f00b03f8e8e4b8b0524c

11 years agoFix a compile of harmless static analyzer warnings.
drh [Sat, 31 May 2014 15:39:53 +0000 (15:39 +0000)] 
Fix a compile of harmless static analyzer warnings.

FossilOrigin-Name: 7e287f2055dcd82c92d1711aec97cb6552a354bb

11 years agoRevise locking retry semantics in Win32 VFS to abort early if the file handle is...
mistachkin [Fri, 30 May 2014 21:01:41 +0000 (21:01 +0000)] 
Revise locking retry semantics in Win32 VFS to abort early if the file handle is reported as invalid.

FossilOrigin-Name: a4df4a5b34111f755ffd9ee6f089ff05d03ebc7a

11 years agoAdd extra checking of the database extended error code. winLockHandle
mistachkin [Fri, 30 May 2014 16:54:09 +0000 (16:54 +0000)] 
Add extra checking of the database extended error code.

FossilOrigin-Name: f2906c44519d76db5bc36013369ae498b80655a8

11 years agoAdd tests for the invalid file handle detection logic in the winLock() function.
mistachkin [Fri, 30 May 2014 16:42:35 +0000 (16:42 +0000)] 
Add tests for the invalid file handle detection logic in the winLock() function.

FossilOrigin-Name: ed5a9eb4f30a395bc641e79254217c7d7cf0aa5d

11 years agoFix a harmless compiler warning in the command-line shell code.
drh [Thu, 29 May 2014 20:39:59 +0000 (20:39 +0000)] 
Fix a harmless compiler warning in the command-line shell code.

FossilOrigin-Name: a80527f60b4856e869f25e7b13afde351bc26a25

11 years agoFix to the EXPLAIN indentation logic in the command-line shell.
drh [Thu, 29 May 2014 20:17:57 +0000 (20:17 +0000)] 
Fix to the EXPLAIN indentation logic in the command-line shell.

FossilOrigin-Name: 8f916ed1e185ac728e00624d90e1d7bd2dda4469

11 years agoImprovements to error messages for errors in the dot-commands of the
drh [Thu, 29 May 2014 12:36:14 +0000 (12:36 +0000)] 
Improvements to error messages for errors in the dot-commands of the
command-line shell.  Add the ".once" command.  The output of ".help"
now goes to the designated output channel.

FossilOrigin-Name: 48dce821a07ac29da6ce05e92cf3f6e52b6eb388

11 years agoOnly quote the arguments to the ".shell" and ".system" commands if they
drh [Thu, 29 May 2014 03:17:29 +0000 (03:17 +0000)] 
Only quote the arguments to the ".shell" and ".system" commands if they
contain spaces.

FossilOrigin-Name: e58f4bd39d51c4c1a28684dab6427de81173d564

11 years agoAdd the ".shell" and the ".system" commands (aliases for the same thing)
drh [Wed, 28 May 2014 20:22:28 +0000 (20:22 +0000)] 
Add the ".shell" and the ".system" commands (aliases for the same thing)
to the command-line shell.

FossilOrigin-Name: d018a34a05cec6adda61ed225d084c587343f2a6

11 years agoAdd an extra test to verify that the FTS notindexed option is working.
dan [Wed, 28 May 2014 10:00:38 +0000 (10:00 +0000)] 
Add an extra test to verify that the FTS notindexed option is working.

FossilOrigin-Name: c461c0fe051d33cc8b4fede4eca13cd71f28126a

11 years agoRevise locking retry semantics in Win32 VFS to abort early if the file handle is...
mistachkin [Wed, 28 May 2014 03:27:42 +0000 (03:27 +0000)] 
Revise locking retry semantics in Win32 VFS to abort early if the file handle is reported as invalid.

FossilOrigin-Name: d43e2e59b5647655595fd953febf2beefa480006

11 years agoRevise how OSTRACE reports logically boolean results in the Win32 VFS.
mistachkin [Wed, 28 May 2014 03:23:55 +0000 (03:23 +0000)] 
Revise how OSTRACE reports logically boolean results in the Win32 VFS.

FossilOrigin-Name: c405f971cf03e29110019ff863cbfb026d97e1e6

11 years agoRemove an incorrect assert() in the sorter.
drh [Tue, 27 May 2014 20:19:06 +0000 (20:19 +0000)] 
Remove an incorrect assert() in the sorter.

FossilOrigin-Name: b8b66103de8c554cb87df40bf040760ec29f2ae1

11 years agoFix harmless compiler warnings.
drh [Tue, 27 May 2014 19:18:36 +0000 (19:18 +0000)] 
Fix harmless compiler warnings.

FossilOrigin-Name: 20b75460c0661b5dc071177b4a0791aceccda029

11 years agoChange the name of the Index.autoIndex field to Index.idxType and provide
drh [Tue, 27 May 2014 18:18:58 +0000 (18:18 +0000)] 
Change the name of the Index.autoIndex field to Index.idxType and provide
symbolic names for the various values of that field rather than using
magic numbers.

FossilOrigin-Name: d16e575dacc811de0f7b58a0d1cd243678dce6c5

11 years agoAvoid unnecessary cursor opens and seeks when running the OR-optimization
drh [Tue, 27 May 2014 17:57:32 +0000 (17:57 +0000)] 
Avoid unnecessary cursor opens and seeks when running the OR-optimization
on a WITHOUT ROWID table.

FossilOrigin-Name: 9c785c58327e08dad94a278a643a5443f94aec36

11 years agoImproved comments on the OR-optimization logic in the query planner.
drh [Tue, 27 May 2014 16:41:39 +0000 (16:41 +0000)] 
Improved comments on the OR-optimization logic in the query planner.

FossilOrigin-Name: 77fef5a3987fc16f84a8e755283ca6ec1363013c

11 years agoRemove unused code (previously #ifdef-ed out) from btree.c.
drh [Tue, 27 May 2014 15:21:42 +0000 (15:21 +0000)] 
Remove unused code (previously #ifdef-ed out) from btree.c.

FossilOrigin-Name: 8bc9737112e2700f337ff377cda040c8ba9d729f

11 years agoFix a harmless compiler warning in the FTS4 logic.
drh [Tue, 27 May 2014 11:54:48 +0000 (11:54 +0000)] 
Fix a harmless compiler warning in the FTS4 logic.

FossilOrigin-Name: 64a869ad2388d9d62601b93d5139f2dc57f260f7

11 years agoAdd a test to whereI.test that uses a multi-column PK.
dan [Tue, 27 May 2014 11:42:23 +0000 (11:42 +0000)] 
Add a test to whereI.test that uses a multi-column PK.

FossilOrigin-Name: aa183e60929bdbbcea3c436dd8cc674fc44ad09a

11 years agoFix for (unsupported) SQLITE_USE_FCNTL_TRACE code.
drh [Tue, 27 May 2014 10:57:37 +0000 (10:57 +0000)] 
Fix for (unsupported) SQLITE_USE_FCNTL_TRACE code.

FossilOrigin-Name: 994b2b7a591f08609140eb504253c141aec6206a

11 years agoAdd the OR-optimization to WITHOUT ROWID tables.
drh [Mon, 26 May 2014 22:05:46 +0000 (22:05 +0000)] 
Add the OR-optimization to WITHOUT ROWID tables.

FossilOrigin-Name: 06a23b8b32f0439b22936dc4107890481e4a1327

11 years agoMinor enhancements to comments and clarification of the code. without-rowid-or-opt
drh [Mon, 26 May 2014 22:01:00 +0000 (22:01 +0000)] 
Minor enhancements to comments and clarification of the code.

FossilOrigin-Name: cbec30d0c49a3f618c3df3ae0ca3d651b48841c2

11 years agoAdd a missing VdbeCoverage() macro on an OP_Found opcode added in the previous
drh [Mon, 26 May 2014 20:25:34 +0000 (20:25 +0000)] 
Add a missing VdbeCoverage() macro on an OP_Found opcode added in the previous
check-in.

FossilOrigin-Name: b4980a07e287480beddb2c6633c733520e05d074

11 years agoEnable the OR optimization for WITHOUT ROWID tables. Use a temp table instead of...
dan [Mon, 26 May 2014 20:06:45 +0000 (20:06 +0000)] 
Enable the OR optimization for WITHOUT ROWID tables. Use a temp table instead of the RowSet object to track the rows that have already been included in the result set.

FossilOrigin-Name: 2c7e277bbebd5c93dec53d381d9737909d40d846

11 years agoFix a problem in the shell when importing CSV files. If the leftmost field of the...
dan [Mon, 26 May 2014 18:27:12 +0000 (18:27 +0000)] 
Fix a problem in the shell when importing CSV files. If the leftmost field of the first row in the CSV file was both zero bytes in size and unquoted, no data was imported.

FossilOrigin-Name: 856d44a206d82e96265103556dedda39ca3602b1

11 years agoFix a problem in FTS4 where columns with names that are prefixes of any notindexed...
dan [Mon, 26 May 2014 16:40:02 +0000 (16:40 +0000)] 
Fix a problem in FTS4 where columns with names that are prefixes of any notindexed column were also being (incorrectly) marked as not indexed. For example in "CREATE ... t1(abc, bc, abcd, notindexed=abcd)", both abc and abcd were being treated as notindexed.

FossilOrigin-Name: d90c4964fcf46b0b043dbfd58267098582267001