]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
9 years agoFix test script temptable2.test so that it works with the "inmemory_journal" and... tempfiles-25
dan [Fri, 29 Apr 2016 14:12:48 +0000 (14:12 +0000)] 
Fix test script temptable2.test so that it works with the "inmemory_journal" and "journaltest" permutations.

FossilOrigin-Name: b7bec7f2d3d08d0c14f77654be2c5cedf1619e58

9 years agoMerge latest trunk changes, including test case fixes, with this branch.
dan [Fri, 29 Apr 2016 11:35:28 +0000 (11:35 +0000)] 
Merge latest trunk changes, including test case fixes, with this branch.

FossilOrigin-Name: 99794aca7b6cb40f08ce4db9889a989fc597eac9

9 years agoModify the permutations.test script so as to set any permutation specific configurati...
dan [Fri, 29 Apr 2016 11:33:58 +0000 (11:33 +0000)] 
Modify the permutations.test script so as to set any permutation specific configuration values before running each individual test script. Fix a mostly harmless buffer overread in the sessions module.

FossilOrigin-Name: 4cbd50245440e714935399a5c285cf32d8bfc424

9 years agoLemon bug fix: Do not merge action routines unless their destructors are
drh [Fri, 29 Apr 2016 11:28:35 +0000 (11:28 +0000)] 
Lemon bug fix:  Do not merge action routines unless their destructors are
also identical.  Problem and suggested fix reported on the mailing list
by Kelvin Sherlock.

FossilOrigin-Name: 4792d6dbba6857f74d27332dcc1468e39c767c71

9 years agoFix an almost entirely harmless buffer overread in the sessions module. permutations-fix
dan [Fri, 29 Apr 2016 10:13:22 +0000 (10:13 +0000)] 
Fix an almost entirely harmless buffer overread in the sessions module.

FossilOrigin-Name: 89b0ee3351381f7bc666cb206f77a56f2e0d4a0e

9 years agoSome optimization comments added to vdbe.c. No functional changes to code.
drh [Fri, 29 Apr 2016 02:55:05 +0000 (02:55 +0000)] 
Some optimization comments added to vdbe.c.  No functional changes to code.

FossilOrigin-Name: e7c22e3bffce63f3b47fa3683be8c00c42b2a7d3

9 years agoFurther simplifications and improved commentting on the rowset.c module,
drh [Thu, 28 Apr 2016 22:29:31 +0000 (22:29 +0000)] 
Further simplifications and improved commentting on the rowset.c module,
including several optimization comments.

FossilOrigin-Name: 9f15a520deb9f1d4ecaa3bfff82bd57ef122aadb

9 years agoComment changes only: Add several optimization marks in rowset.c. Add
drh [Thu, 28 Apr 2016 20:11:12 +0000 (20:11 +0000)] 
Comment changes only:  Add several optimization marks in rowset.c.  Add
a header comment that explains what the various special comments mean.

FossilOrigin-Name: 8cdbe89ac6c22d632f677eb293111b3dbae7d6c1

9 years agoFix typo in comment. No changes to code.
mistachkin [Thu, 28 Apr 2016 19:23:10 +0000 (19:23 +0000)] 
Fix typo in comment.  No changes to code.

FossilOrigin-Name: 9f6f17b5c97c9576c340173d068485fdbfd53253

9 years agoRearrange some code in the RowSet logic for clarity of presentation, while
drh [Thu, 28 Apr 2016 18:53:08 +0000 (18:53 +0000)] 
Rearrange some code in the RowSet logic for clarity of presentation, while
adding an /*OPTIMIZATION-IF-TRUE*/ comment.  It should operate identically.

FossilOrigin-Name: 5748e64376c1c2be5154a632d1527cfebbb9ec74

9 years agoMerge latest changes from trunk with this branch.
dan [Thu, 28 Apr 2016 14:59:05 +0000 (14:59 +0000)] 
Merge latest changes from trunk with this branch.

FossilOrigin-Name: 45467ee49872f495d5276cf830f10c3cf4ac8e3c

9 years agoAvoid running sessionfault.test and sessionfault2.test as part of the "inmemory_journ...
dan [Thu, 28 Apr 2016 14:54:54 +0000 (14:54 +0000)] 
Avoid running sessionfault.test and sessionfault2.test as part of the "inmemory_journal" permutation.

FossilOrigin-Name: 5973d3bf2e5aa979ccc9a4a3a0eb08b67098b499

9 years agoUse comments to mark several branches as optimizations. No changes to code.
drh [Thu, 28 Apr 2016 14:15:12 +0000 (14:15 +0000)] 
Use comments to mark several branches as optimizations.  No changes to code.

FossilOrigin-Name: 33e627472780b872716c504f2d585cc057c390a5

9 years agoEnsure that quota.test deletes the directory named "test.db" that it creates.
dan [Thu, 28 Apr 2016 09:53:14 +0000 (09:53 +0000)] 
Ensure that quota.test deletes the directory named "test.db" that it creates.

FossilOrigin-Name: 045edd4b17c6b76079ac90773c035d8c1f8d525d

9 years agoRemove an unnecessary conditional from the sqlite3DecOrHexToI64() routine.
drh [Thu, 28 Apr 2016 03:52:18 +0000 (03:52 +0000)] 
Remove an unnecessary conditional from the sqlite3DecOrHexToI64() routine.

FossilOrigin-Name: fcf85bfe50b254e825ee63a4cd0aa0b333b06eed

9 years agoChange the sqlite3Atoi64() routine so that it returns failure if not all of
drh [Thu, 28 Apr 2016 00:32:16 +0000 (00:32 +0000)] 
Change the sqlite3Atoi64() routine so that it returns failure if not all of
the input characters are consumed, even if it consumed all characters up to
the first 0x00.  This has no impact on external APIs as far as I can tell.

FossilOrigin-Name: 46d4ffff3bd33d7e901e76cfac1cbde38d4f61d0

9 years agoModify the permutations.test script so as to set any permutation specific configurati...
dan [Wed, 27 Apr 2016 18:54:49 +0000 (18:54 +0000)] 
Modify the permutations.test script so as to set any permutation specific configuration values before running each individual test script.

FossilOrigin-Name: 2662d8fef791f7b8b3b14f9c27dfedec84620dee

9 years agoMore simplification of the sqlite3AtoF() routine. Add special comments
drh [Wed, 27 Apr 2016 15:24:13 +0000 (15:24 +0000)] 
More simplification of the sqlite3AtoF() routine.  Add special comments
to indicate branches that are for optimization purposes only and that give
the correct answer even if always or never taken.

FossilOrigin-Name: 0065fe97cb8e5076acae1bf1560fd2f69dab9014

9 years agoFix a couple of test script problems on this branch. Both related to the fact that...
dan [Wed, 27 Apr 2016 11:24:42 +0000 (11:24 +0000)] 
Fix a couple of test script problems on this branch. Both related to the fact that temp database page sizes can no longer be changed by VACUUM or the backup API after the temp db is populated.

FossilOrigin-Name: 6bb5aa2be2a6c5ca66a98a9387b2845507a6bdd2

9 years agoRemove still more unnecessary branches from sqlite3AtoF().
drh [Wed, 27 Apr 2016 02:35:03 +0000 (02:35 +0000)] 
Remove still more unnecessary branches from sqlite3AtoF().

FossilOrigin-Name: 3adfe9f3e6ce7cc09fcb570d9b65e830a96cac15

9 years agoFurther simplifications to sqlite3AtoF() to remove unneeded branches.
drh [Tue, 26 Apr 2016 23:14:45 +0000 (23:14 +0000)] 
Further simplifications to sqlite3AtoF() to remove unneeded branches.

FossilOrigin-Name: dd69e53cb077873171af5312c633ca185595bf31

9 years agoRemove an unnecessary line from the sqlite3AtoF() routine.
drh [Tue, 26 Apr 2016 21:02:53 +0000 (21:02 +0000)] 
Remove an unnecessary line from the sqlite3AtoF() routine.

FossilOrigin-Name: a9d007494cfe30a26dca5352655dc7702351476e

9 years agoThe pcache and the built-in VFSes should not use mutexes when
drh [Tue, 26 Apr 2016 18:58:54 +0000 (18:58 +0000)] 
The pcache and the built-in VFSes should not use mutexes when
SQLITE_CONFIG_SINGLETHREAD is set.

FossilOrigin-Name: 12418b100196abbfbfb85e0ab4bb6b1cbf335df7

9 years agoFix an issue in temptable2.test preventing it from working with SQLITE_DEFAULT_AUTOVA...
dan [Tue, 26 Apr 2016 17:10:03 +0000 (17:10 +0000)] 
Fix an issue in temptable2.test preventing it from working with SQLITE_DEFAULT_AUTOVACUUM=1 builds.

FossilOrigin-Name: e790aac02e4b427b4891b514a050699d159b03b1

9 years agoMerge the checksymbols fix from trunk into this branch.
dan [Tue, 26 Apr 2016 16:03:58 +0000 (16:03 +0000)] 
Merge the checksymbols fix from trunk into this branch.

FossilOrigin-Name: 04911cee0cd5467ee99744b774d692219e5e1425

9 years agoFix the "checksymbols" target in Makefile.in to be able to deal with the
drh [Tue, 26 Apr 2016 13:13:53 +0000 (13:13 +0000)] 
Fix the "checksymbols" target in Makefile.in to be able to deal with the
sqlite3changegroup family of interfaces.

FossilOrigin-Name: d819bfbd46dc7f065d2a3ab0ef9f8322d8394e11

9 years agoAdd an sqlite3FaultSim() all to make it easier to simulate IO errors in
drh [Mon, 25 Apr 2016 22:39:42 +0000 (22:39 +0000)] 
Add an sqlite3FaultSim() all to make it easier to simulate IO errors in
a VACUUM commit.

FossilOrigin-Name: 8bfde416c51f4e087275aebf652a73985515e810

9 years agoRemove an obsolete comment from the pager. No code changes.
drh [Mon, 25 Apr 2016 19:28:34 +0000 (19:28 +0000)] 
Remove an obsolete comment from the pager.  No code changes.

FossilOrigin-Name: 36f97ca8874a03ac8699f44fe0da95b0be507cc7

9 years agoUpdate the RBU vacuum code so that databases that use custom collation sequences...
dan [Mon, 25 Apr 2016 19:25:12 +0000 (19:25 +0000)] 
Update the RBU vacuum code so that databases that use custom collation sequences can be vacuumed.

FossilOrigin-Name: 7dd48c10790a7b9c4165214399c261a0aa701297

9 years agoFix some unreachable branches in the pager.
drh [Mon, 25 Apr 2016 19:20:56 +0000 (19:20 +0000)] 
Fix some unreachable branches in the pager.

FossilOrigin-Name: 3ae44770fdecc40c8097f1de0b504f36585a2232

9 years agoMerge bug fix from trunk.
drh [Mon, 25 Apr 2016 15:03:49 +0000 (15:03 +0000)] 
Merge bug fix from trunk.

FossilOrigin-Name: a905d5e08de3f3c60b667d840b5995911372647d

9 years agoWhen checking for the WHERE-clause push-down optimization, verify that
drh [Mon, 25 Apr 2016 02:20:10 +0000 (02:20 +0000)] 
When checking for the WHERE-clause push-down optimization, verify that
all terms of the compound inner SELECT are non-aggregate, not just the
last term.  Fix for ticket [f7f8c97e97597].

FossilOrigin-Name: ec215f94ac9748c0acd82af0cc9e7a92249462f9

9 years agoFix a typo in the Makefile.
mistachkin [Mon, 25 Apr 2016 01:43:24 +0000 (01:43 +0000)] 
Fix a typo in the Makefile.

FossilOrigin-Name: d0a579b35105810821bbfec6b50ecfebac7a17ee

9 years agoMerge the temporary directory search algorithm fix from trunk.
drh [Sat, 23 Apr 2016 21:16:55 +0000 (21:16 +0000)] 
Merge the temporary directory search algorithm fix from trunk.

FossilOrigin-Name: 9b8fec60d8e576cd09e1d075a59bfad1c6169d7a

9 years agoFix the fix to the temporary directory search algorithm so that it continues
drh [Sat, 23 Apr 2016 20:59:23 +0000 (20:59 +0000)] 
Fix the fix to the temporary directory search algorithm so that it continues
to return "." as a fallback if that directory has the correct permissions.

FossilOrigin-Name: b38fe522cfc971b37ca04e7b63a92bbb6e0b01e1

9 years agoMerge the latest trunk changes.
drh [Sat, 23 Apr 2016 19:55:59 +0000 (19:55 +0000)] 
Merge the latest trunk changes.

FossilOrigin-Name: 84da122dd6e70ed603fea781dca204ae2f668c53

9 years agoFix a problem with mixing temp-files and mmap-mode.
dan [Sat, 23 Apr 2016 17:24:16 +0000 (17:24 +0000)] 
Fix a problem with mixing temp-files and mmap-mode.

FossilOrigin-Name: c80c5c62b2e2c5e47e0839f8e2d5b6341ca4a249

9 years agoFix some problems to do with temp-file databases and recovering from IO and SQLITE_FU...
dan [Sat, 23 Apr 2016 14:55:28 +0000 (14:55 +0000)] 
Fix some problems to do with temp-file databases and recovering from IO and SQLITE_FULL errors.

FossilOrigin-Name: 3d61da4a76af8c9c2a293df085f3ed5a7bb447df

9 years agoChange the temporary directory search algorithm on unix so that directories
drh [Thu, 21 Apr 2016 23:37:24 +0000 (23:37 +0000)] 
Change the temporary directory search algorithm on unix so that directories
with only -wx permission are allowed.  And do not allow "." to be returned if
it lacks -wx permission.

FossilOrigin-Name: 67985761aa93fb613b87d340e75371fa55b0f778

9 years agoAdd the sqlite3rbu_vacuum() API, to create an RBU handle that can be used to rebuild...
dan [Thu, 21 Apr 2016 18:13:37 +0000 (18:13 +0000)] 
Add the sqlite3rbu_vacuum() API, to create an RBU handle that can be used to rebuild a database in the same way as the VACUUM command.

FossilOrigin-Name: bd4a6f8313eb71399a7141ebf7f2617d7b1464c3

9 years agoIf a call to sqlite3rbu_close() on an rbu handle opened by sqlite3rbu_vacuum() return... rbu-vacuum
dan [Thu, 21 Apr 2016 16:44:38 +0000 (16:44 +0000)] 
If a call to sqlite3rbu_close() on an rbu handle opened by sqlite3rbu_vacuum() returns other than SQLITE_OK, delete the contents of the rbu_state table. This ensures that if an RBU vacuum operation either completes successfully or encounters an error, the next call to sqlite3rbu_vacuum() with the same parameters starts a new RBU vacuum operation.

FossilOrigin-Name: 6e4ac704f51bdd1e0b16814f6a45ab29f26400ee

9 years agoFix a problem in rbu vacuum on tables with a large sqlite_master table.
dan [Thu, 21 Apr 2016 15:26:26 +0000 (15:26 +0000)] 
Fix a problem in rbu vacuum on tables with a large sqlite_master table.

FossilOrigin-Name: 23eac52e987996afe8db847921aef434cebd25b5

9 years agoAdd a function prototype in order to fix a compiler warning.
drh [Thu, 21 Apr 2016 15:24:46 +0000 (15:24 +0000)] 
Add a function prototype in order to fix a compiler warning.

FossilOrigin-Name: 49aec9718d61c9f12aed96f530128666c3b01c81

9 years agoMerge updates from trunk.
drh [Thu, 21 Apr 2016 15:03:37 +0000 (15:03 +0000)] 
Merge updates from trunk.

FossilOrigin-Name: cc28106e5c196c0a9678fbbd06f6afd49271a8e8

9 years agoAdd the SQLITE_DBCONFIG_ENABLE_LOAD_EXTENSION method for enabling
drh [Thu, 21 Apr 2016 02:27:56 +0000 (02:27 +0000)] 
Add the SQLITE_DBCONFIG_ENABLE_LOAD_EXTENSION method for enabling
sqlite3_load_extension() while leaving the load_extension() SQL function
disabled.

FossilOrigin-Name: c4f165c460c4244ed434107feac005efa3c386cf

9 years agoTest cases for SQLITE_DBCONFIG_ENABLE_LOAD_EXTENSION. load-ext-security
drh [Thu, 21 Apr 2016 01:58:21 +0000 (01:58 +0000)] 
Test cases for SQLITE_DBCONFIG_ENABLE_LOAD_EXTENSION.

FossilOrigin-Name: debafa5efd37ac60e030d0963ce8e7c4f51a0f10

9 years agoRevert sqlite3_enable_load_extension() to its original long-standing behavior.
drh [Thu, 21 Apr 2016 01:30:09 +0000 (01:30 +0000)] 
Revert sqlite3_enable_load_extension() to its original long-standing behavior.
Add SQLITE_DBCONFIG_ENABLE_LOAD_EXTENSION which will enable only the C-API and
leave the SQL function disabled.

FossilOrigin-Name: b2ae5bfa32e608625bd177907596df3dbc2212e1

9 years agoAdd a documentation comment for sqlite3rbu_vacuum() to sqlite3rbu.h.
dan [Wed, 20 Apr 2016 20:08:58 +0000 (20:08 +0000)] 
Add a documentation comment for sqlite3rbu_vacuum() to sqlite3rbu.h.

FossilOrigin-Name: da5c753ddac3cbfdf03710a82f5fd9fa2e29e819

9 years agoWhen an error occurs while transitioning out of WAL mode, make sure the
drh [Wed, 20 Apr 2016 19:30:47 +0000 (19:30 +0000)] 
When an error occurs while transitioning out of WAL mode, make sure the
locking state is not left at EXCLUSIVE.

FossilOrigin-Name: 3340f086510b08ce5b42a8781f1df51bf7c27701

9 years agoFix a locking race condition in Windows 10 that can occur when two or more
drh [Wed, 20 Apr 2016 18:31:27 +0000 (18:31 +0000)] 
Fix a locking race condition in Windows 10 that can occur when two or more
processes attempt to recover the same hot journal at the same time.

FossilOrigin-Name: 38a4e9d92887898b779493c71e4500f777a4e2e7

9 years agoAdd fault injection tests for rbu vacuum. Fix some problems revealed by the same.
dan [Wed, 20 Apr 2016 17:47:52 +0000 (17:47 +0000)] 
Add fault injection tests for rbu vacuum. Fix some problems revealed by the same.

FossilOrigin-Name: f042fdd1ea7febec7228e51efc2b0281805e196a

9 years ago<b>API Change:</b> Modify sqlite3_enable_load_extension() so that it only
drh [Wed, 20 Apr 2016 00:30:05 +0000 (00:30 +0000)] 
<b>API Change:</b> Modify sqlite3_enable_load_extension() so that it only
enables/disables the load_extension() SQL function, and leaves the C-APIs
enabled at all times.  In this way, applications can enable extension loading
for the C interface without having to expose that capability to the SQL.

FossilOrigin-Name: edb454e45ae008e051e2f48d704a855b0c3e4be9

9 years agoUpdates to ensure the values of PRAGMA settings like "page_size", "auto_vacuum",...
dan [Tue, 19 Apr 2016 19:27:09 +0000 (19:27 +0000)] 
Updates to ensure the values of PRAGMA settings like "page_size", "auto_vacuum", "user_version" and "application_id" are not lost when a database is RBU vacuumed.

FossilOrigin-Name: 74ffea76b8c9ddd7699ce6ca77dce005bd7922ac

9 years agoWhen an RBU vacuum is started on a db identified using a URI filename, pass the same...
dan [Tue, 19 Apr 2016 17:11:05 +0000 (17:11 +0000)] 
When an RBU vacuum is started on a db identified using a URI filename, pass the same URI parameters when creating the new version of the db. This ensures that RBU vacuum works with password protected databases.

FossilOrigin-Name: ca021ba88106500f347ed65199a4832bc9eb5ef8

9 years agoDetect attempts to use rbu vacuum on a wal mode database (not allowed). And attempts...
dan [Tue, 19 Apr 2016 16:20:24 +0000 (16:20 +0000)] 
Detect attempts to use rbu vacuum on a wal mode database (not allowed). And attempts to write to a database in the middle of an rbu vacuum (which prevents the vacuum from resuming).

FossilOrigin-Name: 00b2f4b09ffca5156e43c4db2bfe0b2c979c49b0

9 years agoAnother fix to rbu vacuum for a zipvfs case.
dan [Mon, 18 Apr 2016 21:00:01 +0000 (21:00 +0000)] 
Another fix to rbu vacuum for a zipvfs case.

FossilOrigin-Name: 29407d70e44ad9ea5ddaf1011d0e212b602a3ddf

9 years agoFix some zipvfs related problems in RBU vacuum.
dan [Mon, 18 Apr 2016 18:18:18 +0000 (18:18 +0000)] 
Fix some zipvfs related problems in RBU vacuum.

FossilOrigin-Name: d76f4aaa4caab713460421bd27365a82ac986c20

9 years agoRemove quotes from identifiers used as datatype names in a CREATE TABLE
drh [Mon, 18 Apr 2016 15:46:14 +0000 (15:46 +0000)] 
Remove quotes from identifiers used as datatype names in a CREATE TABLE
statement.  Fix for ticket [7d7525cb01b68]

FossilOrigin-Name: eba27d4d17a76884292667d570d542e580ee3e77

9 years agoMerge recent trunk changes.
drh [Mon, 18 Apr 2016 13:36:17 +0000 (13:36 +0000)] 
Merge recent trunk changes.

FossilOrigin-Name: d9768de502e34da42f3ad955947c23da50f57bce

9 years agosqlite3PCachePerecentDirty() should return 0 if the pcache is empty.
drh [Mon, 18 Apr 2016 13:30:50 +0000 (13:30 +0000)] 
sqlite3PCachePerecentDirty() should return 0 if the pcache is empty.

FossilOrigin-Name: 85f3d80eb7319754792eef76996b2c740a2b0073

9 years agoThe last parameter to pread64() and pwrite64() should be off64_t, not off_t.
drh [Mon, 18 Apr 2016 13:09:55 +0000 (13:09 +0000)] 
The last parameter to pread64() and pwrite64() should be off64_t, not off_t.

FossilOrigin-Name: 3a7d72986fabe9434ff5bd02c93169314f072b23

9 years agoAdd the -vacuum switch to the "rbu" demonstration program.
dan [Mon, 18 Apr 2016 09:17:05 +0000 (09:17 +0000)] 
Add the -vacuum switch to the "rbu" demonstration program.

FossilOrigin-Name: 9a0078a538c7e73a009960347b8953c5af99fefd

9 years agoChanges so that rbu vacuum works with zipvfs databases.
dan [Sat, 16 Apr 2016 19:02:53 +0000 (19:02 +0000)] 
Changes so that rbu vacuum works with zipvfs databases.

FossilOrigin-Name: bae7f875f476f6e01112751cb404fef42ba0a01c

9 years agoAvoid creating any extra files ("<target>-vacuum") when running an RBU vacuum. Ensure...
dan [Sat, 16 Apr 2016 17:53:14 +0000 (17:53 +0000)] 
Avoid creating any extra files ("<target>-vacuum") when running an RBU vacuum. Ensure that the OAL file created is "<target>-oal", not "<target>-vacuum-oal".

FossilOrigin-Name: dc19aacc7e99213edca9bb57b5c11a8a1ac99113

9 years agoFix a couple of assert() statements that were failing with OOM error tests.
dan [Sat, 16 Apr 2016 15:03:20 +0000 (15:03 +0000)] 
Fix a couple of assert() statements that were failing with OOM error tests.

FossilOrigin-Name: 8eb3d7d8360530f364bbbebac53e1f0e6753d924

9 years agoAdd the experimental sqlite3rbu_vacuum() API function. For opening an RBU handle...
dan [Fri, 15 Apr 2016 20:46:41 +0000 (20:46 +0000)] 
Add the experimental sqlite3rbu_vacuum() API function. For opening an RBU handle that rebuilds a database from scratch.

FossilOrigin-Name: 0216b48f28042ad86711e00802c2da8ce9be3044

9 years agoCLI enhancement: Add the ".eqp full" option, that shows both the EXPLAIN
drh [Fri, 15 Apr 2016 15:03:27 +0000 (15:03 +0000)] 
CLI enhancement:  Add the ".eqp full" option, that shows both the EXPLAIN
QUERY PLAN and the EXPLAIN output for each command run.  Also disable
any ".wheretrace" and ".selecttrace" when showing EQP output.

FossilOrigin-Name: 3e217d6265ecd16db783bed7ce1d9d0f9c4828bb

9 years agoIn the ICU extension toupper() and tolower() SQL functions, avoid calling u_strToUppe...
dan [Thu, 14 Apr 2016 17:29:13 +0000 (17:29 +0000)] 
In the ICU extension toupper() and tolower() SQL functions, avoid calling u_strToUpper() or u_strToLower() a second time if the buffer passed to the first invocation turns out to be large enough.

FossilOrigin-Name: d23e581351fb8eea28e7b13b3dcadfc817c3a05f

9 years agoAdd the SF_HasAgg constant (currently unused). Also enhance the comments on
drh [Thu, 14 Apr 2016 16:40:13 +0000 (16:40 +0000)] 
Add the SF_HasAgg constant (currently unused).  Also enhance the comments on
many other constant definitions to detail constraints on their values.

FossilOrigin-Name: 7b7a69d098f7581a43b818c251717c2450b797de

9 years agoCorrectly interpret negative "PRAGMA cache_size" values when determining the cache...
dan [Thu, 14 Apr 2016 15:44:37 +0000 (15:44 +0000)] 
Correctly interpret negative "PRAGMA cache_size" values when determining the cache-size used for sorting large amounts of data (i.e. the functionality in vdbesort.c).

FossilOrigin-Name: 79147dca87cfd7eb62d57baa3b70fa2a8542232a

9 years agoAdd some missing testcase() macros to the pushDownWhereTerms() routine.
drh [Thu, 14 Apr 2016 15:38:33 +0000 (15:38 +0000)] 
Add some missing testcase() macros to the pushDownWhereTerms() routine.

FossilOrigin-Name: 67d7f79c5e5be41a18817c802b5c4d349e3a83a4

9 years agoRename WhereInfo.pResultSet to pDistinctSet to more accurately reflect what
drh [Thu, 14 Apr 2016 13:35:26 +0000 (13:35 +0000)] 
Rename WhereInfo.pResultSet to pDistinctSet to more accurately reflect what
it represents.

FossilOrigin-Name: 5317961411695e107e8cefdeaba62280429979ca

9 years agoSince the return value of sqlite3OsClose() is always ignored, we might as
drh [Thu, 14 Apr 2016 13:16:58 +0000 (13:16 +0000)] 
Since the return value of sqlite3OsClose() is always ignored, we might as
well make it "void" instead of "int", and thereby save 50 bytes in the
compiled binary.

FossilOrigin-Name: 7ee570e7a9a2159a8c0d41805c00f91ca0de00e3

9 years agoAdditional ".selecttrace" debugging output when the query is transformed from a
drh [Thu, 14 Apr 2016 13:06:49 +0000 (13:06 +0000)] 
Additional ".selecttrace" debugging output when the query is transformed from a
DISTINCT into a GROUP BY.

FossilOrigin-Name: 5a46914510af4d5557b299db65c68d5df1070766

9 years agoFix compiler warnings by removing surplus local variables in the schema
drh [Wed, 13 Apr 2016 21:00:36 +0000 (21:00 +0000)] 
Fix compiler warnings by removing surplus local variables in the schema
pretty-printer logic of the command-line shell.

FossilOrigin-Name: 55a62483b9121a8b373d038a26fdebc4308661f6

9 years agoMerge enhancements from trunk via tempfiles-lazy-open.
drh [Wed, 13 Apr 2016 19:20:23 +0000 (19:20 +0000)] 
Merge enhancements from trunk via tempfiles-lazy-open.

FossilOrigin-Name: ae16310c4e9a9b7e94874bd912fc6a4324cfaa2b

9 years agoOn commit, flush dirty temp-file pages only if the file is already open and 25% or...
dan [Wed, 13 Apr 2016 16:52:11 +0000 (16:52 +0000)] 
On commit, flush dirty temp-file pages only if the file is already open and 25% or more of the cache is dirty.

FossilOrigin-Name: f6babf2920340f25815c0a3c58de1e902c2f5542

9 years agoMerge enhancements from trunk. tempfiles-lazy-open
drh [Wed, 13 Apr 2016 16:02:28 +0000 (16:02 +0000)] 
Merge enhancements from trunk.

FossilOrigin-Name: e2edd34e79af906e7069e3e837730b12de0b73fe

9 years agoFixes for harmless compiler warnings.
drh [Wed, 13 Apr 2016 15:52:16 +0000 (15:52 +0000)] 
Fixes for harmless compiler warnings.

FossilOrigin-Name: 68142dc541b7a0a36fcb075a26f10f03c1e7c422

9 years agoAdd the --indent option to the .schema and .fullschema commands in the shell,
drh [Wed, 13 Apr 2016 15:33:42 +0000 (15:33 +0000)] 
Add the --indent option to the .schema and .fullschema commands in the shell,
to enable simple but effective pretty-printing.

FossilOrigin-Name: 83cfe82cd6d31ec0a6193525fd92e63a2a43b142

9 years agoA couple more compiler warning fixes.
mistachkin [Tue, 12 Apr 2016 20:26:51 +0000 (20:26 +0000)] 
A couple more compiler warning fixes.

FossilOrigin-Name: 929fa4c31e7c5b8c6cbb1412478ea91b15ad5529

9 years agoEven more compiler warning fixes.
mistachkin [Tue, 12 Apr 2016 20:15:12 +0000 (20:15 +0000)] 
Even more compiler warning fixes.

FossilOrigin-Name: 7faec9ea335c53953338886398b85aef87348a1c

9 years agoMore harmless compiler warning fixes.
mistachkin [Tue, 12 Apr 2016 20:05:06 +0000 (20:05 +0000)] 
More harmless compiler warning fixes.

FossilOrigin-Name: ab69527c1608da0b668f3b49e967661dd99cc3d4

9 years agoCompilation fix for a C99-ism in the 'fts3view' tool.
mistachkin [Tue, 12 Apr 2016 19:30:31 +0000 (19:30 +0000)] 
Compilation fix for a C99-ism in the 'fts3view' tool.

FossilOrigin-Name: bedb88a4b9c808ea781ae69058399a1a3a3d15fa

9 years agoFix harmless compiler warnings in the 'session' module.
mistachkin [Tue, 12 Apr 2016 19:20:22 +0000 (19:20 +0000)] 
Fix harmless compiler warnings in the 'session' module.

FossilOrigin-Name: a18a6ce2271865d04cd75a8a5baa63798b7393db

9 years agoOnce a temporary database file has been opened, flush all dirty pages to disk when...
dan [Tue, 12 Apr 2016 19:09:29 +0000 (19:09 +0000)] 
Once a temporary database file has been opened, flush all dirty pages to disk when comitting a transaction.

FossilOrigin-Name: bbac71aa2aa2380d393cda3be64b0208b464b27e

9 years agoFix speedtest1 so that it automatically unlinks its test database prior
drh [Tue, 12 Apr 2016 17:13:33 +0000 (17:13 +0000)] 
Fix speedtest1 so that it automatically unlinks its test database prior
to startup.

FossilOrigin-Name: b65b69f6b686c6555876b6fc701da95cc49120b5

9 years agoAdd the --temp option to the speedtest1.c performance test program.
drh [Tue, 12 Apr 2016 16:59:39 +0000 (16:59 +0000)] 
Add the --temp option to the speedtest1.c performance test program.

FossilOrigin-Name: 8053a6e2bf616fc9326f0323962176e318d7d2a5

9 years agoImproved localtime() support for WindowsCE
drh [Tue, 12 Apr 2016 16:23:30 +0000 (16:23 +0000)] 
Improved localtime() support for WindowsCE

FossilOrigin-Name: 662c32af0276a9ef4eea2d29e2523ccc44b6d128

9 years agoAdd and adjust comments. winCeLocalTime
mistachkin [Tue, 12 Apr 2016 16:11:52 +0000 (16:11 +0000)] 
Add and adjust comments.

FossilOrigin-Name: 541c6da23850673f5d2a2e31c3967b796ee2effc

9 years agoMerge enhancements from trunk.
drh [Tue, 12 Apr 2016 16:10:10 +0000 (16:10 +0000)] 
Merge enhancements from trunk.

FossilOrigin-Name: 9682c0433c04713c28bd9105a7e20af7372f873e

9 years agoAdd the sqlite3_snapshot_cmp() interface (available only with
drh [Tue, 12 Apr 2016 16:04:07 +0000 (16:04 +0000)] 
Add the sqlite3_snapshot_cmp() interface (available only with
SQLITE_ENABLE_SNAPSHOT).

FossilOrigin-Name: 7e7289655185e7643ead6d685922528bc4d9e0ae

9 years agoUpdate the documentation for sqlite3_snapshot_cmp() to make the circumstances under... snapshot-cmp
dan [Tue, 12 Apr 2016 15:14:25 +0000 (15:14 +0000)] 
Update the documentation for sqlite3_snapshot_cmp() to make the circumstances under which the comparison is valid clearer. Add tests for the same.

FossilOrigin-Name: 8fc834741bf6c8a832a180795c3d6f5c3dcfcd62

9 years agoUpdate the header comment on the memjournal.c file. No code changes.
drh [Tue, 12 Apr 2016 11:58:18 +0000 (11:58 +0000)] 
Update the header comment on the memjournal.c file.  No code changes.

FossilOrigin-Name: 07f10deabb0f4207408142541e3913d638dfcdeb

9 years agoPerformance optimization the Vdbe allocator.
drh [Tue, 12 Apr 2016 00:26:59 +0000 (00:26 +0000)] 
Performance optimization the Vdbe allocator.

FossilOrigin-Name: e2c4995bf1099cc02bcb1dc4a4631f06a870d171

9 years agoAvoid unnecessary calls to object destructors for a small performance gain.
drh [Tue, 12 Apr 2016 00:16:54 +0000 (00:16 +0000)] 
Avoid unnecessary calls to object destructors for a small performance gain.

FossilOrigin-Name: aec94b6ee68fe50e2cc14388281e2ef531e21d68

9 years agoPerformance improvements in sqlite3WhereExprUsage().
drh [Tue, 12 Apr 2016 00:00:33 +0000 (00:00 +0000)] 
Performance improvements in sqlite3WhereExprUsage().

FossilOrigin-Name: fdf752394b48fb7b9afe7b8a7d83f859985cc2d2

9 years agoFurther refinements.
mistachkin [Mon, 11 Apr 2016 22:45:45 +0000 (22:45 +0000)] 
Further refinements.

FossilOrigin-Name: b35bb928b25492f6dd71ccf9c250cb9f0cce09ff

9 years agoMerge updates from trunk.
mistachkin [Mon, 11 Apr 2016 22:24:03 +0000 (22:24 +0000)] 
Merge updates from trunk.

FossilOrigin-Name: b8094166b3c6a8ec7913b403e08b5e6790fb03c1

9 years agoFix typo in the MSVC makefile.
mistachkin [Mon, 11 Apr 2016 22:23:04 +0000 (22:23 +0000)] 
Fix typo in the MSVC makefile.

FossilOrigin-Name: 3189a7f1851f823218d85a2455bf218d00d81543