]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
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 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

11 years agoRemove references in comments to VDBE opcodes that no longer exist. This
drh [Sat, 24 May 2014 17:15:15 +0000 (17:15 +0000)] 
Remove references in comments to VDBE opcodes that no longer exist.  This
is a documentation change only; no changes to code.

FossilOrigin-Name: ebfb51fe40756713d269b4c0ade752666910bb6e

11 years agoChanges to the output of EXPLAIN QUERY PLAN to make it clearer when a query uses...
dan [Fri, 23 May 2014 17:17:06 +0000 (17:17 +0000)] 
Changes to the output of EXPLAIN QUERY PLAN to make it clearer when a query uses the PRIMARY KEY index of a WITHOUT ROWID table.

FossilOrigin-Name: 9268df305b90ac11e44b3107bbab5becf38860b7

11 years agoIn the command-line shell, if three or more interrupt signals (control-c)
drh [Fri, 23 May 2014 12:03:47 +0000 (12:03 +0000)] 
In the command-line shell, if three or more interrupt signals (control-c)
are received in a row without a response from sqlite3_interrupt() then
call exit(1) immediately.  This allows control-C to interrupt the shell
even if it is stuck in a computation or loop that does not involve the
VDBE.

FossilOrigin-Name: b5cde57166fd874d00dec23d3a59bf3a23979fc5

11 years agoMake sure sufficient VDBE registers are allocated for an INSERT...SELECT
drh [Fri, 23 May 2014 11:48:57 +0000 (11:48 +0000)] 
Make sure sufficient VDBE registers are allocated for an INSERT...SELECT
when there is an idlist on the insert table that includes an explicit
rowid.  Ticket [9654505cfda93610585fde5a9bbf2e730c8a8d5]

FossilOrigin-Name: 9a2dd18776cc7003752980be0a0920a8799e5f35

11 years agoAdd a test for the EQP output of a skip-scan query that uses the PK index of a WITHOU...
dan [Thu, 22 May 2014 09:58:45 +0000 (09:58 +0000)] 
Add a test for the EQP output of a skip-scan query that uses the PK index of a WITHOUT ROWID table.

FossilOrigin-Name: 10238fad94a198c0639461645227b6c5ebe16eee

11 years agoDo not burn memory remembering CHECK constraints in a read-only database.
drh [Wed, 21 May 2014 08:48:18 +0000 (08:48 +0000)] 
Do not burn memory remembering CHECK constraints in a read-only database.

FossilOrigin-Name: 34ddf02d3d21151b8099c0c25706530a03d93887

11 years agoFix the sqlite3_db_readonly() API so that it reports true if the database
drh [Wed, 21 May 2014 08:21:07 +0000 (08:21 +0000)] 
Fix the sqlite3_db_readonly() API so that it reports true if the database
is readonly because the file format write version (byte 18 of the header)
is too large.

FossilOrigin-Name: 8d8af114dac301335ec10671c1e9a5a6d8266a60

11 years agoInternally, use a 64-bit integers for segment level numbers.
dan [Sat, 17 May 2014 16:56:52 +0000 (16:56 +0000)] 
Internally, use a 64-bit integers for segment level numbers.

FossilOrigin-Name: 8180e320ee4090e41511836678e49a98c0b228e8

11 years agoFix a broken test case in fts4growth2.test.
dan [Sat, 17 May 2014 15:10:37 +0000 (15:10 +0000)] 
Fix a broken test case in fts4growth2.test.

FossilOrigin-Name: 9fde5b960af39b187474e5b2909ff0e56d5e0bf9

11 years agoFix harmless compiler warnings. ftsWarnings
mistachkin [Fri, 16 May 2014 23:38:59 +0000 (23:38 +0000)] 
Fix harmless compiler warnings.

FossilOrigin-Name: 7e60347e21a7473974061965a8d1f2eadde987e2

11 years agoWork around compilation issue with MSVC.
mistachkin [Fri, 16 May 2014 23:15:50 +0000 (23:15 +0000)] 
Work around compilation issue with MSVC.

FossilOrigin-Name: 9623a29c11e3a90513016ea3306c085d2bf91b62

11 years agoFixes to prevent an FTS index from growing indefinitely as the corresponding table...
dan [Fri, 16 May 2014 16:16:59 +0000 (16:16 +0000)] 
Fixes to prevent an FTS index from growing indefinitely as the corresponding table is updated. Change the FTS 'automerge' option to allow the user to specify the number of segments that should be merged simultaneously by auto-merges.

FossilOrigin-Name: a75f1800021d30b712053373440041b7b355a36a

11 years agoAdd extra test to backcompat.test to ensure that old and new versions of FTS may... fts4-experimental
dan [Fri, 16 May 2014 15:48:17 +0000 (15:48 +0000)] 
Add extra test to backcompat.test to ensure that old and new versions of FTS may work together on the same incremental merge operation.

FossilOrigin-Name: 3997d47bb9c8593a2cd30317ea65163b99db1832

11 years agoRepurpose the SQLITE_TESTCTRL_FAULT_INSTALL test-control to register a
drh [Fri, 16 May 2014 14:17:01 +0000 (14:17 +0000)] 
Repurpose the SQLITE_TESTCTRL_FAULT_INSTALL test-control to register a
callback to be invoked by sqlite3FaultSim().  That test-control has been
unused since 2008-06-20 and was never used in any official release.

FossilOrigin-Name: 0d43a7ad9abe821e33e0bf83a997aa4461b1e3f2

11 years agoFix a bug causing an incorrect segment size value to be stored if both an old and...
dan [Fri, 16 May 2014 10:30:44 +0000 (10:30 +0000)] 
Fix a bug causing an incorrect segment size value to be stored if both an old and new FTS version performed work on the same incremental merge operation.

FossilOrigin-Name: a9a2aeab298ba2ac0b8835e61406e2d83bf7e39b

11 years agoMerge latest trunk changes with this branch.
dan [Thu, 15 May 2014 19:05:55 +0000 (19:05 +0000)] 
Merge latest trunk changes with this branch.

FossilOrigin-Name: 5809986ffcc5d9cbab64760f8d7fbfbb6b626ee7

11 years agoFix a problem with the handling of delete markers by automerge on large databases.
dan [Thu, 15 May 2014 18:36:39 +0000 (18:36 +0000)] 
Fix a problem with the handling of delete markers by automerge on large databases.

FossilOrigin-Name: 2b09bd17eb85ea3c682e930d2aabc6441f2265e0

11 years agoDo not search for promotable segments following an FTS 'optimize' operation or creati...
dan [Wed, 14 May 2014 19:49:17 +0000 (19:49 +0000)] 
Do not search for promotable segments following an FTS 'optimize' operation or creation of a new segment on the oldest existing level.

FossilOrigin-Name: 34f6b4b8e4cb8ea45fd518672dc96335d1ce06ab

11 years agoFix a problem to do with loading the value of the FTS automerge setting from the...
dan [Wed, 14 May 2014 18:45:27 +0000 (18:45 +0000)] 
Fix a problem to do with loading the value of the FTS automerge setting from the database.

FossilOrigin-Name: 7268119f74602929b372b88eca7b3c3b4964f7d5

11 years agoFix various problems to do with segment promotion. Add test file fts4growth2.test...
dan [Wed, 14 May 2014 15:58:47 +0000 (15:58 +0000)] 
Fix various problems to do with segment promotion. Add test file fts4growth2.test, containing tests to check that the FTS index does not grow indefinitely as the table is updated.

FossilOrigin-Name: 21491a9bc686e63bec32f1a67103622f1160a2f9

11 years agoFix a problem preventing delete markers from ever being removed from the FTS index.
dan [Tue, 13 May 2014 20:11:37 +0000 (20:11 +0000)] 
Fix a problem preventing delete markers from ever being removed from the FTS index.

FossilOrigin-Name: 7f47ae5c5ddb1227484ddae7c6960183932a052a

11 years agoImprove a comment in the MSVC makefile. No changes to code.
mistachkin [Mon, 12 May 2014 22:36:50 +0000 (22:36 +0000)] 
Improve a comment in the MSVC makefile.  No changes to code.

FossilOrigin-Name: 0901dccedaf5679691ba803ec76d113de170185d

11 years agoAdd VSIX packaging support for Windows Phone 8.1 using Visual Studio 2013 Update 2.
mistachkin [Mon, 12 May 2014 21:12:04 +0000 (21:12 +0000)] 
Add VSIX packaging support for Windows Phone 8.1 using Visual Studio 2013 Update 2.

FossilOrigin-Name: 013738f3d531078fb47f9992c18a0d630e771a32

11 years agoExperimental code to prevent FTS indexes from growing indefinitely as the table is...
dan [Mon, 12 May 2014 20:04:48 +0000 (20:04 +0000)] 
Experimental code to prevent FTS indexes from growing indefinitely as the table is updated.

FossilOrigin-Name: b3b505a4dd0c679437a4272109f1188175088cd1

11 years agoIn mutex_w32.c, make inclusion of the Windows header file dependent on SQLITE_OS_WIN...
mistachkin [Mon, 12 May 2014 15:37:03 +0000 (15:37 +0000)] 
In mutex_w32.c, make inclusion of the Windows header file dependent on SQLITE_OS_WIN, not SQLITE_MUTEX_W32.

FossilOrigin-Name: 93ffbcc0b1d207950851dbb16a8c101afb949d5f

11 years agoMerge updates from trunk. Emit the AppliesTo and DependsOn SDK manifest attributes... vsixWinPhone81
mistachkin [Sat, 10 May 2014 17:33:11 +0000 (17:33 +0000)] 
Merge updates from trunk.  Emit the AppliesTo and DependsOn SDK manifest attributes when building the VSIX for Windows Phone 8.1.

FossilOrigin-Name: f6237a5f190bd5693ceed0ca1f048c3ec2a4da67

11 years agoWhen using Visual Studio 2013, add the appropriate MaxPlatformVersion attribute to...
mistachkin [Sat, 10 May 2014 17:28:45 +0000 (17:28 +0000)] 
When using Visual Studio 2013, add the appropriate MaxPlatformVersion attribute to the VSIX SDK manifest.

FossilOrigin-Name: 0a4f59676bd0ab33b2c86c9a35a2ebbdbaf09ee7

11 years agoFurther MSVC makefile changes to support Windows Phone 8.1.
mistachkin [Fri, 9 May 2014 23:31:55 +0000 (23:31 +0000)] 
Further MSVC makefile changes to support Windows Phone 8.1.

FossilOrigin-Name: a9c81815e1b7a9c05da61f75edac45cb1a954135

11 years agoMerge updates from trunk.
mistachkin [Fri, 9 May 2014 20:54:07 +0000 (20:54 +0000)] 
Merge updates from trunk.

FossilOrigin-Name: f4fea7bb8a4b118bdceff400a6c49c6291c0d58e

11 years agoWhen cross-compiling with the MSVC makefile, make sure the correct library path is...
mistachkin [Fri, 9 May 2014 20:51:17 +0000 (20:51 +0000)] 
When cross-compiling with the MSVC makefile, make sure the correct library path is used.  Also, keep track of the required compilation options separately.

FossilOrigin-Name: c3dce2e7390eec3a337be1b99f80ad5f721cc647

11 years agoInclude sqlite3rtree.h in the tsrc/ pile of source files during
drh [Wed, 7 May 2014 21:16:56 +0000 (21:16 +0000)] 
Include sqlite3rtree.h in the tsrc/ pile of source files during
target_source in the main.mk makefile.

FossilOrigin-Name: 116bed5af664899a73b46dca528ac0c021fc50c3

11 years agoRemove a superfluous variable initialization.
drh [Wed, 7 May 2014 20:33:17 +0000 (20:33 +0000)] 
Remove a superfluous variable initialization.

FossilOrigin-Name: 68766f837491cb89c2103f2627eb9e23ab326a68

11 years agoA better fix for the group_concat() problem.
drh [Wed, 7 May 2014 20:24:00 +0000 (20:24 +0000)] 
A better fix for the group_concat() problem.

FossilOrigin-Name: 1c086deebd0eb442918972e4b9185a5a0db3b8c3

11 years agoFix the way parenthesis in MATCH expressions are handled by FTS if the tokenizer...
dan [Wed, 7 May 2014 19:59:36 +0000 (19:59 +0000)] 
Fix the way parenthesis in MATCH expressions are handled by FTS if the tokenizer considers them to be token characters.

FossilOrigin-Name: e21bf7a2ade6373e94ea403c665f78e1ad22143f

11 years agoMake sure the group_concat() function returns an empty string, not a NULL,
drh [Wed, 7 May 2014 18:23:04 +0000 (18:23 +0000)] 
Make sure the group_concat() function returns an empty string, not a NULL,
if it has at least one input row. Fix for ticket [55746f9e65f8587].

FossilOrigin-Name: d01cedaa73d8f9e5502502a1068a9509d1de295c

11 years agoEnsure that the sqlite3StrAccumAppend() routine is never called with a NULL tkt-55746f9e
drh [Wed, 7 May 2014 18:21:56 +0000 (18:21 +0000)] 
Ensure that the sqlite3StrAccumAppend() routine is never called with a NULL
second argument.  Doing so is harmless when N==0, but it causes an assert()
to fail that was placed to quiet static analyzers.

FossilOrigin-Name: f03fbf3700d9d4a654e3aa2e5caa810a8416bed9

11 years agoMake sure the group_concat() function returns an empty string, not a NULL,
drh [Wed, 7 May 2014 17:19:31 +0000 (17:19 +0000)] 
Make sure the group_concat() function returns an empty string, not a NULL,
if it has at least one input row.  Fix for ticket [55746f9e65f8587].

FossilOrigin-Name: 0deac8737545a020d344be96fff16660a7977ab8

11 years agoAdd the SQLITE_IOCAP_IMMUTABLE bit as a possible return value from
drh [Wed, 7 May 2014 15:46:04 +0000 (15:46 +0000)] 
Add the SQLITE_IOCAP_IMMUTABLE bit as a possible return value from
the xDeviceCharacteristics method in the VFS.  Add the "nolock" and
"immutable" query parameters to URI filenames.

FossilOrigin-Name: 1a0d7d3d9dd54b783e3a805961287dd01f94770c

11 years agoFix nolock and immutable so that they work even if READONLY is requested. win32-none
drh [Wed, 7 May 2014 15:32:03 +0000 (15:32 +0000)] 
Fix nolock and immutable so that they work even if READONLY is requested.

FossilOrigin-Name: e193aced2942e7405d0f45f90d4954b5663b4ba5