]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
8 years agoPrototype for the remember(V,PTR) extension function. rememberFunc
drh [Tue, 9 Aug 2016 21:08:42 +0000 (21:08 +0000)] 
Prototype for the remember(V,PTR) extension function.

FossilOrigin-Name: f0942c362f45ca1e986e142dbdd3ad957626dfb1

8 years agoFix harmless compiler warning.
drh [Tue, 9 Aug 2016 21:01:52 +0000 (21:01 +0000)] 
Fix harmless compiler warning.

FossilOrigin-Name: 9a5a4f6e3bc265fecf79a7f63d14abbf239da636

8 years agoMinor update to the way fts5 column filters are parsed.
dan [Tue, 9 Aug 2016 19:48:37 +0000 (19:48 +0000)] 
Minor update to the way fts5 column filters are parsed.

FossilOrigin-Name: 14864f2b8470fe98dbd17f59963bf1be8d4962f9

8 years agoHave fts5 interpret column lists that begin with a "-" character as "match any column...
dan [Tue, 9 Aug 2016 19:26:57 +0000 (19:26 +0000)] 
Have fts5 interpret column lists that begin with a "-" character as "match any column except" lists.

FossilOrigin-Name: e517545650631d1e8a7ee63c6646a8b183a0a894

8 years agoVersion 3.14 version-3.14.0
drh [Mon, 8 Aug 2016 13:40:27 +0000 (13:40 +0000)] 
Version 3.14

FossilOrigin-Name: d5e98057028abcf7217d0d2b2e29bbbcdf09d6de

8 years agoFix documentation typos. No changes to code.
drh [Sun, 7 Aug 2016 18:52:11 +0000 (18:52 +0000)] 
Fix documentation typos.  No changes to code.

FossilOrigin-Name: ebc396a19fa79bea208ecda277ffff5d02166d0b

8 years agoHave the TEA package build without SQLITE_OMIT_DEPRECATED. As it uses recently deprec...
dan [Fri, 5 Aug 2016 20:54:45 +0000 (20:54 +0000)] 
Have the TEA package build without SQLITE_OMIT_DEPRECATED. As it uses recently deprecated interfaces sqlite3_profile() and sqlite3_trace().

FossilOrigin-Name: 95578898835b933901603bd4d5e063f1219a016f

8 years agoUndo commit [f250166bb]. It is required to handle IO and other errors that occur...
dan [Fri, 5 Aug 2016 16:16:26 +0000 (16:16 +0000)] 
Undo commit [f250166bb]. It is required to handle IO and other errors that occur within a VACUUM of a Zipvfs database.

FossilOrigin-Name: ae72513af37cd806a6d94aaa7c47a740e119d3b1

8 years agoRemove an incorrect ALWAYS() statement and add a test case to show when
drh [Fri, 5 Aug 2016 15:34:42 +0000 (15:34 +0000)] 
Remove an incorrect ALWAYS() statement and add a test case to show when
the condition is sometimes false.

FossilOrigin-Name: 0f57effa3642e66a863f32cc7fba86d167084af3

8 years agoFix a very obscure problem following OOM in sqlite3_declare_vtab().
drh [Fri, 5 Aug 2016 14:35:47 +0000 (14:35 +0000)] 
Fix a very obscure problem following OOM in sqlite3_declare_vtab().

FossilOrigin-Name: 68eac74874d0646369bef3650c6cb271cca62ab4

8 years agoRevert the SQLITE_APICALL changes for now. That changes needs further
drh [Thu, 4 Aug 2016 13:23:28 +0000 (13:23 +0000)] 
Revert the SQLITE_APICALL changes for now.  That changes needs further
research before it is released.  Deferred until 3.15.

FossilOrigin-Name: 9adda385267d1a0ecff259b42a284913668441a2

8 years agoAdd the experimental SQLITE_ENABLE_UNKNOWN_SQL_FUNCTION compile-time option.
drh [Thu, 4 Aug 2016 12:35:17 +0000 (12:35 +0000)] 
Add the experimental SQLITE_ENABLE_UNKNOWN_SQL_FUNCTION compile-time option.
When enabled, the "unknown function" error is suppressed for EXPLAIN and
a no-op function named "unknown()" is substituted.  This facilitiates using
the command-line shell to analyze queries from applications that contain
many application-defined functions that are not normally available to the
shell.

FossilOrigin-Name: b7f30a9ff20d580fdaecdcf2b644d09ad6c2575e

8 years agoMake sure the ORDER BY LIMIT optimization is not applied if the inner-most
drh [Thu, 4 Aug 2016 09:09:44 +0000 (09:09 +0000)] 
Make sure the ORDER BY LIMIT optimization is not applied if the inner-most
loop can only have a single iteration and is hence not really a loop.

FossilOrigin-Name: 13e3bd3de6b434b6182ef36be108d7ee0be8ca53

8 years agoFix a typo in a comment in btree.c. No changes to code.
drh [Wed, 3 Aug 2016 14:51:16 +0000 (14:51 +0000)] 
Fix a typo in a comment in btree.c.   No changes to code.

FossilOrigin-Name: 722c12816347ee9fce7a090cfebef2c5841e7445

8 years agoFix the --help output on fuzzcheck so that it fix in an 80-character window.
drh [Wed, 3 Aug 2016 13:40:54 +0000 (13:40 +0000)] 
Fix the --help output on fuzzcheck so that it fix in an 80-character window.

FossilOrigin-Name: b91444b5db8465f09d112455e722c888b3f94329

8 years agoFix a unused variable that comes up with -DSQLITE_OMIT_DATETIME_FUNCS.
drh [Tue, 2 Aug 2016 20:42:24 +0000 (20:42 +0000)] 
Fix a unused variable that comes up with -DSQLITE_OMIT_DATETIME_FUNCS.

FossilOrigin-Name: e2f9919e34c70761e4e275eeffca8ccf9159223c

8 years agoThe 'replace.tcl' tool should use Unix line-endings.
mistachkin [Tue, 2 Aug 2016 19:29:56 +0000 (19:29 +0000)] 
The 'replace.tcl' tool should use Unix line-endings.

FossilOrigin-Name: 50de96314f75494dc1f5b14d62c595a70c4e0638

8 years agoUpdates to requirements marks. No changes to code.
drh [Tue, 2 Aug 2016 13:26:34 +0000 (13:26 +0000)] 
Updates to requirements marks.  No changes to code.

FossilOrigin-Name: b23c10ac8f65bc88a6c7d88e140217222eb4cbe5

8 years agoFix a problem introduced by [77948b5eceab92a7] causing duplicate calls to be made...
dan [Tue, 2 Aug 2016 11:29:16 +0000 (11:29 +0000)] 
Fix a problem introduced by [77948b5eceab92a7] causing duplicate calls to be made to the xSavepoint() method of virtual tables under some circumstances.

FossilOrigin-Name: e64a4173d2899acf13b73e6e28f2e164fd638a75

8 years agoFix harmless compiler warnings in sqlite3_status().
drh [Tue, 2 Aug 2016 08:45:26 +0000 (08:45 +0000)] 
Fix harmless compiler warnings in sqlite3_status().

FossilOrigin-Name: 7c38a79cdd42aaa45715aea330d10ca859098837

8 years agoUpdate the wordcount.c test program and add a new script "time-wordcount.sh"
drh [Mon, 1 Aug 2016 21:17:53 +0000 (21:17 +0000)] 
Update the wordcount.c test program and add a new script "time-wordcount.sh"
for additional performance testing.

FossilOrigin-Name: d8ef9f58643f13dd3d16dcde0d829ae08324f04b

8 years agoFix other harmless compiler warnings.
drh [Mon, 1 Aug 2016 17:06:44 +0000 (17:06 +0000)] 
Fix other harmless compiler warnings.

FossilOrigin-Name: 90d2c490fc2ed4e073711b84f989ca4d496dcfb5

8 years agoRemove a duplicate typedef from loadext.c (remaining copy is in sqlite3ext.h).
dan [Mon, 1 Aug 2016 16:57:30 +0000 (16:57 +0000)] 
Remove a duplicate typedef from loadext.c (remaining copy is in sqlite3ext.h).

FossilOrigin-Name: fd184e5a8f4577aa9a817eb55e771d8d1021b946

8 years agoAdd an extra compiler switch to loadext.test to ensure that it picks up the correct...
dan [Mon, 1 Aug 2016 16:50:50 +0000 (16:50 +0000)] 
Add an extra compiler switch to loadext.test to ensure that it picks up the correct version of sqlite3.h when building a test extension.

FossilOrigin-Name: e57fa6af32a1d1bf7be64b26850730f7e714b6c6

8 years agoUpdate releasetest.tcl to automatically do one round of tests with
drh [Mon, 1 Aug 2016 15:00:00 +0000 (15:00 +0000)] 
Update releasetest.tcl to automatically do one round of tests with
USE_STDCALL=1 when running on Windows with MSVC.

FossilOrigin-Name: a6a112de485eb9d15f6fa75568dcb876f00abb64

8 years agoAvoid making unnecessary changes to the signatures of the
drh [Mon, 1 Aug 2016 14:35:48 +0000 (14:35 +0000)] 
Avoid making unnecessary changes to the signatures of the
sqlite3_auto_extension() and sqlite3_cancel_auto_extension() interfaces.

FossilOrigin-Name: b6ea2f21f602031ef4dbd47462ac11b0bb0d5de6

8 years agoFix harmless compiler warning seen with MSVC.
mistachkin [Sat, 30 Jul 2016 18:54:54 +0000 (18:54 +0000)] 
Fix harmless compiler warning seen with MSVC.

FossilOrigin-Name: 390a38a142d36d2c57b3f21aab72edcde450125d

8 years agoUsing the header file 'intrin.h' requires MSVC 2005 or later.
mistachkin [Fri, 29 Jul 2016 17:36:27 +0000 (17:36 +0000)] 
Using the header file 'intrin.h' requires MSVC 2005 or later.

FossilOrigin-Name: 9fae75c08b7d3b3e13734193ad8398ef6971cbac

8 years agoFor test 'shell1-5.0', disable round-trip testing for characters in the range 0xE0...
mistachkin [Fri, 29 Jul 2016 04:12:18 +0000 (04:12 +0000)] 
For test 'shell1-5.0', disable round-trip testing for characters in the range 0xE0 to 0xEF on Linux, due to intermittent shell portability issues.

FossilOrigin-Name: 544c990afd3b64064cc4d970ec5d7eb23eeb9914

8 years agoFix typo in a test file interactive output string.
mistachkin [Fri, 29 Jul 2016 02:04:36 +0000 (02:04 +0000)] 
Fix typo in a test file interactive output string.

FossilOrigin-Name: 4fedd7902371935e1374ca7df3ffd4c4cf93959b

8 years agoMerge additional linkage macro changes from the branch.
drh [Fri, 29 Jul 2016 01:55:42 +0000 (01:55 +0000)] 
Merge additional linkage macro changes from the branch.

FossilOrigin-Name: 8b0eb22ee12b23421dcb8dbeb46909d813788a0b

8 years agoFurther refinement to the calling convention macros.
drh [Fri, 29 Jul 2016 01:49:36 +0000 (01:49 +0000)] 
Further refinement to the calling convention macros.

FossilOrigin-Name: 45588de385d2a721b3e9f04beb6c7b789dd27d42

8 years agoMerge updates from trunk.
mistachkin [Fri, 29 Jul 2016 01:47:18 +0000 (01:47 +0000)] 
Merge updates from trunk.

FossilOrigin-Name: 71ffa195f5a48280ee522d80ab82e8cdea636961

8 years agoUpdate the autoconf makefile for MSVC.
mistachkin [Fri, 29 Jul 2016 01:46:57 +0000 (01:46 +0000)] 
Update the autoconf makefile for MSVC.

FossilOrigin-Name: 2daf20980d4cb9ed36372778ae1f3e595e503549

8 years agoUndo some unhelpful changes to skip-scan scoring that were added
drh [Fri, 29 Jul 2016 01:32:36 +0000 (01:32 +0000)] 
Undo some unhelpful changes to skip-scan scoring that were added
by the check-in [9e2b2681] that improved scoring of index scan.

FossilOrigin-Name: c7d51934a4f30d096bb79fc509fc9dd0df5d89a4

8 years agoAdd macro necessary for building several extensions when the __stdcall calling conven...
mistachkin [Fri, 29 Jul 2016 01:31:49 +0000 (01:31 +0000)] 
Add macro necessary for building several extensions when the __stdcall calling convention is not in use.

FossilOrigin-Name: bc8c9b55ddf5227dc6b2116486f4a19bf54fce2b

8 years agoMissed a couple Tcl command deletion callbacks.
mistachkin [Thu, 28 Jul 2016 23:58:25 +0000 (23:58 +0000)] 
Missed a couple Tcl command deletion callbacks.

FossilOrigin-Name: fc5c187602acceedf7152b6927616d134f779a8f

8 years agoUse the SQLITE_TCLAPI macro in several extensions that were missed in the previous...
mistachkin [Thu, 28 Jul 2016 23:54:45 +0000 (23:54 +0000)] 
Use the SQLITE_TCLAPI macro in several extensions that were missed in the previous check-in.

FossilOrigin-Name: df2543652b835353c03956dfbd3e35e5b191372e

8 years agoMore compiler warning fixes for GCC related to the auto-extension mechanism.
mistachkin [Thu, 28 Jul 2016 22:53:10 +0000 (22:53 +0000)] 
More compiler warning fixes for GCC related to the auto-extension mechanism.

FossilOrigin-Name: b8218129bc848c61fa6910feae4141dac6ad86fc

8 years agoThe return type used by the auto-extension entry points is 'int', not 'void'.
mistachkin [Thu, 28 Jul 2016 22:46:53 +0000 (22:46 +0000)] 
The return type used by the auto-extension entry points is 'int', not 'void'.

FossilOrigin-Name: bf9c86c74f30136a106f37603a6c7dcc76caf41d

8 years agoMake sure all the auto-extension mechanism function signatures match up precisely.
mistachkin [Thu, 28 Jul 2016 22:38:31 +0000 (22:38 +0000)] 
Make sure all the auto-extension mechanism function signatures match up precisely.

FossilOrigin-Name: 87ba69b5ca4a8e4ef2bbaaf07a0ff13fc5cd4721

8 years agoMake the extension auto-loading mechanism work with the __stdcall calling convention...
mistachkin [Thu, 28 Jul 2016 22:23:26 +0000 (22:23 +0000)] 
Make the extension auto-loading mechanism work with the __stdcall calling convention.  Also, fix a couple Tcl command calling conventions missed in the previous check-in.

FossilOrigin-Name: 3ea567c4b07b2a7a027b9b5cb8250ab687803698

8 years agoThe 'sqlite3ext.h' content should be processed before being included in the amalgamation.
mistachkin [Thu, 28 Jul 2016 19:28:35 +0000 (19:28 +0000)] 
The 'sqlite3ext.h' content should be processed before being included in the amalgamation.

FossilOrigin-Name: cbe1de4799df4d512bc175f51ed99c6ec6d5a4d1

8 years agoDecorate all interfaces with calling convention macros.
drh [Thu, 28 Jul 2016 18:55:57 +0000 (18:55 +0000)] 
Decorate all interfaces with calling convention macros.

FossilOrigin-Name: fd784887e125bf95f4799ad09cbcba6795173487

8 years agoAll SQLite API functions and callbacks in the 'sqlite3ext.h' header file must be...
mistachkin [Thu, 28 Jul 2016 18:49:20 +0000 (18:49 +0000)] 
All SQLite API functions and callbacks in the 'sqlite3ext.h' header file must be decorated with the calling convention.

FossilOrigin-Name: 97fc6e4328fe72cdd10f11a4b4bc9ce14bdc537f

8 years agoDisable the authorizer callback when reparsing the schema. This avoids
drh [Thu, 28 Jul 2016 18:38:13 +0000 (18:38 +0000)] 
Disable the authorizer callback when reparsing the schema.  This avoids
undesirable authorization failures following an ALTER TABLE.

FossilOrigin-Name: 805d01cdabb48a69eb986a7f084e53eb25d76b7f

8 years agoFixup reserved function pointers in the Tcl stubs table and several macros containing...
mistachkin [Thu, 28 Jul 2016 18:18:53 +0000 (18:18 +0000)] 
Fixup reserved function pointers in the Tcl stubs table and several macros containing Tcl function pointers.

FossilOrigin-Name: 959cd0131a5c717679b6e250229794679efe7f69

8 years agoAdjustments to get 'testfixture.exe' compiling with Tcl 8.6 when __stdcall is enabled.
mistachkin [Thu, 28 Jul 2016 18:06:52 +0000 (18:06 +0000)] 
Adjustments to get 'testfixture.exe' compiling with Tcl 8.6 when __stdcall is enabled.

FossilOrigin-Name: 90e89ec9c8efff057a9e43c612427fc5c97ab52d

8 years agoImprovements to the way the COMPILER compile-time option is set when compiling
drh [Thu, 28 Jul 2016 17:24:16 +0000 (17:24 +0000)] 
Improvements to the way the COMPILER compile-time option is set when compiling
with Clang.

FossilOrigin-Name: 81f9cf86c48f3cd43755ded4dc97388ec650f8af

8 years agoMake sure the SQLITE_TCLAPI macro is always defined.
mistachkin [Thu, 28 Jul 2016 17:11:20 +0000 (17:11 +0000)] 
Make sure the SQLITE_TCLAPI macro is always defined.

FossilOrigin-Name: f2f1323cc4d2ad2d6794dbfae8d50b747213e85d

8 years agoMore work on getting the 'testfixture.exe' target to work correctly.
mistachkin [Thu, 28 Jul 2016 16:09:52 +0000 (16:09 +0000)] 
More work on getting the 'testfixture.exe' target to work correctly.

FossilOrigin-Name: 36b72fd609cf151f3db0e65b450d7cd515f2ac49

8 years agoModify the mksqlite3h.tcl tool to handle the syscall typedef specially.
mistachkin [Thu, 28 Jul 2016 15:38:34 +0000 (15:38 +0000)] 
Modify the mksqlite3h.tcl tool to handle the syscall typedef specially.

FossilOrigin-Name: 478a84efa6ea13629227ba8970c8ef8545d31074

8 years agoChange mksqlite3h.tcl to automatically insert the SQLITE_CALLBACK calling
drh [Thu, 28 Jul 2016 15:09:02 +0000 (15:09 +0000)] 
Change mksqlite3h.tcl to automatically insert the SQLITE_CALLBACK calling
convention macros.

FossilOrigin-Name: 11ab9c9ab562df98c20abf126a8bac178aef77a8

8 years agoAllow the 'testfixture.exe' target to be compiled with the __stdcall calling convention.
mistachkin [Thu, 28 Jul 2016 14:37:04 +0000 (14:37 +0000)] 
Allow the 'testfixture.exe' target to be compiled with the __stdcall calling convention.

FossilOrigin-Name: e8be3dfeabaa31b3490793cf8230faae1204be15

8 years agoNew test case to insure legacy CREATE TABLE syntax is supported.
drh [Thu, 28 Jul 2016 12:52:30 +0000 (12:52 +0000)] 
New test case to insure legacy CREATE TABLE syntax is supported.

FossilOrigin-Name: 6feff15cae8f0427be790355841d49c479c1c586

8 years agoWork in progress on setting a calling convention for all callback functions.
mistachkin [Thu, 28 Jul 2016 04:14:37 +0000 (04:14 +0000)] 
Work in progress on setting a calling convention for all callback functions.

FossilOrigin-Name: 02b8040e1add02734d2dbc6c59737ab74ff8fb18

8 years agoEnhance the query planner cost estimation for index scans to take into account
drh [Wed, 27 Jul 2016 19:30:53 +0000 (19:30 +0000)] 
Enhance the query planner cost estimation for index scans to take into account
WHERE clause terms that can be computed using only the index and that do not
require looking up rows in the original table.  This fixes an obscure
performance regression that arose when the ORDER BY LIMIT optimization was
added by check-in [bf46179d44843].

FossilOrigin-Name: 9e2b26811452a5011d0a97a689636fa4409da856

8 years agoAdd test cases and fix a comment. improved-index-scan
drh [Wed, 27 Jul 2016 19:20:58 +0000 (19:20 +0000)] 
Add test cases and fix a comment.

FossilOrigin-Name: 50f8ea37fb9647c4a9da2c269a4d6f54b10ce96b

8 years agoWhen estimating the cost of an index scan, factor in the cost savings of
drh [Wed, 27 Jul 2016 18:27:02 +0000 (18:27 +0000)] 
When estimating the cost of an index scan, factor in the cost savings of
being able to use the index to evaluate some WHERE clause terms without
having to do a table lookup.

FossilOrigin-Name: a59b5622f7cc6e502d71aabc12c053582cd03609

8 years agoInitialize a variable in where.c to avoid a valgrind warning.
dan [Wed, 27 Jul 2016 16:03:54 +0000 (16:03 +0000)] 
Initialize a variable in where.c to avoid a valgrind warning.

FossilOrigin-Name: 4d59df02d3713b3e3804e1a88e676749b2794286

8 years agoEnsure that the sqlite3_scrub_backup() extension creates a backup database at least...
dan [Tue, 26 Jul 2016 10:46:21 +0000 (10:46 +0000)] 
Ensure that the sqlite3_scrub_backup() extension creates a backup database at least as large as indicated by the database header, even if the last page of the input database is a free-list leaf.

FossilOrigin-Name: 483994a54dee3c7a3801e0e9d3c96fa9dbd8d2fd

8 years agoCopy the cache_spill setting from the main database over to the
drh [Tue, 26 Jul 2016 04:49:43 +0000 (04:49 +0000)] 
Copy the cache_spill setting from the main database over to the
vacuum_db transient database when running a VACUUM.

FossilOrigin-Name: c0e7d98ef2a13ede5ae865083ede1aaffdf43310

8 years agoMake sure affinity is applied correctly on lower-bound range constraints
drh [Tue, 26 Jul 2016 04:31:14 +0000 (04:31 +0000)] 
Make sure affinity is applied correctly on lower-bound range constraints
in the min() optimization.  Fix for ticket [a0bac8b3c3d1bb].

FossilOrigin-Name: b819bace9c2a0b0159122b26db96a8f50a6f0eac

8 years agoIn the VACUUM command, set the cache_size of the transient vacuum_db database
drh [Mon, 25 Jul 2016 22:40:12 +0000 (22:40 +0000)] 
In the VACUUM command, set the cache_size of the transient vacuum_db database
to be the same as the database being vacuumed.

FossilOrigin-Name: b78d99548ac53ac10dcc38368cc4b29c8cbcb09b

8 years agoFix a test case in FTS5 to make it compatible with Tcl 8.5.
drh [Mon, 25 Jul 2016 21:11:53 +0000 (21:11 +0000)] 
Fix a test case in FTS5 to make it compatible with Tcl 8.5.

FossilOrigin-Name: a495f8e77e14241150f79e746c7303284f04621a

8 years agoMinor test infrastructure changes to better support SEE testing.
drh [Mon, 25 Jul 2016 16:10:43 +0000 (16:10 +0000)] 
Minor test infrastructure changes to better support SEE testing.

FossilOrigin-Name: 8dcb9d506b5eef3a21d97877217e0df69966a915

8 years agoAdd a new %ifdef to parse.y so that the build works with SQLITE_OMIT_SUBQUERY.
drh [Mon, 25 Jul 2016 14:40:43 +0000 (14:40 +0000)] 
Add a new %ifdef to parse.y so that the build works with SQLITE_OMIT_SUBQUERY.

FossilOrigin-Name: 38a48cfb9a8212970c4a4f8458643c22ed067e8b

8 years agoChanges to test scripts to get them all running on OpenBSD.
drh [Mon, 25 Jul 2016 14:20:01 +0000 (14:20 +0000)] 
Changes to test scripts to get them all running on OpenBSD.

FossilOrigin-Name: 9e7bedeee444cbf0b1a9165e88928c5d85088de1

8 years agoDisable the DBSTATUS_CACHE_USED_SHARED tests on mac when memsys3/5 is disabled
drh [Mon, 25 Jul 2016 12:10:25 +0000 (12:10 +0000)] 
Disable the DBSTATUS_CACHE_USED_SHARED tests on mac when memsys3/5 is disabled
due to differences in the allocation sizes for the Darwin memory allocator.

FossilOrigin-Name: d6f6c87c9c0acf609a9d5bea818bb7a5437109a1

8 years agoUpdate the vacuummem.test script so that it works on mac as well as on linux.
drh [Mon, 25 Jul 2016 12:01:18 +0000 (12:01 +0000)] 
Update the vacuummem.test script so that it works on mac as well as on linux.

FossilOrigin-Name: ea7fb98b96f13f7dc5ed83ec5e8ad8857e20e06e

8 years agoIf both MEMSYS3 and MEMSYS5 are enabled, than automatically disable MEMSYS3.
drh [Mon, 25 Jul 2016 11:57:21 +0000 (11:57 +0000)] 
If both MEMSYS3 and MEMSYS5 are enabled, than automatically disable MEMSYS3.

FossilOrigin-Name: ccc22e14dc5d910d632807f49484be54dc2fde83

8 years agoAnother attempt at getting --enable-memsysN working.
drh [Mon, 25 Jul 2016 11:39:24 +0000 (11:39 +0000)] 
Another attempt at getting --enable-memsysN working.

FossilOrigin-Name: 5f40e6ad599eea59a5adc3a11d6f7998872736b4

8 years agoFix the --enable-memsysN options in configure so that they actually work.
drh [Mon, 25 Jul 2016 11:32:09 +0000 (11:32 +0000)] 
Fix the --enable-memsysN options in configure so that they actually work.

FossilOrigin-Name: 679552550e085497b98478bbe28056d99fe4aab4

8 years agoAdd --enable-memsys3 and --enable-memsys5 options to the configure script.
drh [Mon, 25 Jul 2016 11:27:22 +0000 (11:27 +0000)] 
Add --enable-memsys3 and --enable-memsys5 options to the configure script.

FossilOrigin-Name: 67e1dc9842dc8a6ae5edef21bdb2ef6d3f4a17b7

8 years agoEvidence marks and code reformatting for SQLITE_TRACE_STMT operation.
drh [Mon, 25 Jul 2016 02:42:22 +0000 (02:42 +0000)] 
Evidence marks and code reformatting for SQLITE_TRACE_STMT operation.

FossilOrigin-Name: e1e022383114525241454f63ea8b9768fb7ec657

8 years agoChange SQLITE_TRACE_STMT to return unexpanded SQL text in the X argument.
drh [Mon, 25 Jul 2016 02:31:48 +0000 (02:31 +0000)] 
Change SQLITE_TRACE_STMT to return unexpanded SQL text in the X argument.
Add documentation on how and when to use sqlite3_expanded_sql(P) to compute
the expanded text for legacy sqlite3_trace() compatibility.

FossilOrigin-Name: 163e15229d837a5471007cffb8d41faafd081737

8 years agoFix code so that the deprecated sqlite3_trace() and sqlite3_profile()
drh [Mon, 25 Jul 2016 00:05:56 +0000 (00:05 +0000)] 
Fix code so that the deprecated sqlite3_trace() and sqlite3_profile()
interfaces are not called when SQLITE_OMIT_DEPRECATED is used.

FossilOrigin-Name: 1c5baae3c545096a29a093f7d4387771f1db507c

8 years agoUse sqlite3_trace_v2() instead of sqlite3_trace() in the shell.
drh [Sat, 23 Jul 2016 20:27:41 +0000 (20:27 +0000)] 
Use sqlite3_trace_v2() instead of sqlite3_trace() in the shell.

FossilOrigin-Name: c8e0539b970585cbb3619461a53abb0c3b308a17

8 years agoAdd the json_quote() function to the JSON1 extension.
drh [Sat, 23 Jul 2016 19:34:53 +0000 (19:34 +0000)] 
Add the json_quote() function to the JSON1 extension.

FossilOrigin-Name: 269892abf6e59c417729669cc764d1f237e093fd

8 years agoSmall tweak to the btree balancer for improved tree balance.
drh [Sat, 23 Jul 2016 19:18:55 +0000 (19:18 +0000)] 
Small tweak to the btree balancer for improved tree balance.

FossilOrigin-Name: 8817dedb75430e6c78ff527f7ded4abb35776cef

8 years agoFix recently added tests so that they work in all configurations.
drh [Sat, 23 Jul 2016 14:50:26 +0000 (14:50 +0000)] 
Fix recently added tests so that they work in all configurations.

FossilOrigin-Name: d0bcaf0cd92ae5bbea7ad68537ba89437d5c39e8

8 years agoAdd the sqlite3_expanded_sql() and sqlite3_trace_v2() interfaces.
drh [Sat, 23 Jul 2016 05:22:02 +0000 (05:22 +0000)] 
Add the sqlite3_expanded_sql() and sqlite3_trace_v2() interfaces.

FossilOrigin-Name: 99a6c51887d9d78409944c5a028d5a3ac2e066a7

8 years agoImprovements to sqlite3_trace_v2() documentation. Fix the sqlite3_trace_v2
drh [Sat, 23 Jul 2016 04:58:57 +0000 (04:58 +0000)] 
Improvements to sqlite3_trace_v2() documentation.  Fix the
sqlite3VdbeExpandSql() routine to respond better to OOM conditions.

FossilOrigin-Name: 0400f642d542e62bb428e0bf263964c65691368e

8 years agoAdd requirements marks to the sqlite3_trace_v2() interface documentation.
drh [Sat, 23 Jul 2016 02:07:26 +0000 (02:07 +0000)] 
Add requirements marks to the sqlite3_trace_v2() interface documentation.

FossilOrigin-Name: ebd388e94da4a2b29c2a546f832d359619803ec5

8 years agoFix sqlite3VdbeExpandSql() so that it handles OOMs by always returning NULL.
drh [Sat, 23 Jul 2016 00:43:14 +0000 (00:43 +0000)] 
Fix sqlite3VdbeExpandSql() so that it handles OOMs by always returning NULL.

FossilOrigin-Name: 5a027fe4127d498e0dc0d9439131c6a29085cf0a

8 years agoRevise a warning fix from the previous check-in to improve clarity. Also, fix an...
mistachkin [Fri, 22 Jul 2016 21:35:38 +0000 (21:35 +0000)] 
Revise a warning fix from the previous check-in to improve clarity.  Also, fix an incorrect test prefix (typo).

FossilOrigin-Name: f50a3fd6606c14b82c9b938bfca284d54b6c650f

8 years agoFix harmless compiler warnings seen with MSVC.
mistachkin [Fri, 22 Jul 2016 21:26:56 +0000 (21:26 +0000)] 
Fix harmless compiler warnings seen with MSVC.

FossilOrigin-Name: 8bb6e6fcedf7d0ae796b8848593106c921ebf21a

8 years agoBe sure to hold the database connection mutex while calling sqlite3VdbeExpand()
drh [Fri, 22 Jul 2016 20:45:03 +0000 (20:45 +0000)] 
Be sure to hold the database connection mutex while calling sqlite3VdbeExpand()
from within sqlite3_expanded_sql().

FossilOrigin-Name: 527b5ba68c0b0185958b945b197f9022951d9379

8 years agoAdd requirements marks to the sqlite3_expanded_sql() documentation.
drh [Fri, 22 Jul 2016 20:20:53 +0000 (20:20 +0000)] 
Add requirements marks to the sqlite3_expanded_sql() documentation.

FossilOrigin-Name: 409535e6dfc307f26ea3d9f51be51c439b6d7b22

8 years agoFix a problem with upper case module names in the "sqldiff --vtab" command.
dan [Fri, 22 Jul 2016 10:09:26 +0000 (10:09 +0000)] 
Fix a problem with upper case module names in the "sqldiff --vtab" command.

FossilOrigin-Name: 87e25fc472604b3978811be53991104c665a95e7

8 years agoAdd extra test cases to verify the fix in [64ca1a835].
dan [Thu, 21 Jul 2016 18:02:20 +0000 (18:02 +0000)] 
Add extra test cases to verify the fix in [64ca1a835].

FossilOrigin-Name: bf98a2de7ed41a8acca89d7369b353f12182cfb4

8 years agoAdd new test file vacuummem.test. To test that any temporary memory used by VACUUM...
dan [Thu, 21 Jul 2016 16:43:54 +0000 (16:43 +0000)] 
Add new test file vacuummem.test. To test that any temporary memory used by VACUUM is freed as soon as the VACUUM has finished (not, for example, when sqlite3_close() is finally called).

FossilOrigin-Name: 1b1ad0b28c392ade4321734e9b022a545b845b04

8 years agoAdd the largely untested SQLITE_FTS5_NO_WITHOUT_ROWID compile time option to fts5...
dan [Fri, 15 Jul 2016 19:17:19 +0000 (19:17 +0000)] 
Add the largely untested SQLITE_FTS5_NO_WITHOUT_ROWID compile time option to fts5. For building a dynamically loadable extension that does not use WITHOUT ROWID.

FossilOrigin-Name: d0a1cf1c56c237617fb73cb31f4950365b1f3e9b

8 years agoThe sqlite3_expanded_sql() function compiles, but always returns NULL, when
drh [Fri, 15 Jul 2016 10:01:06 +0000 (10:01 +0000)] 
The sqlite3_expanded_sql() function compiles, but always returns NULL, when
the SQLITE_OMIT_TRACE compile-time option is used.

FossilOrigin-Name: 53c25ebe34e6776a12260078852973b1d581d20f

8 years agoMerge fixes from trunk. Fix the tclsqlite.test script.
drh [Fri, 15 Jul 2016 02:55:51 +0000 (02:55 +0000)] 
Merge fixes from trunk.  Fix the tclsqlite.test script.

FossilOrigin-Name: d2b1fa55e8809ffc25a25f256349b8d08beadab5

8 years agoDisable the CSV extension when virtual tables are disabled.
drh [Fri, 15 Jul 2016 02:50:18 +0000 (02:50 +0000)] 
Disable the CSV extension when virtual tables are disabled.

FossilOrigin-Name: ec7180892ac737f0731cf61f2d095a5c1d18ad93

8 years agoModify the Tcl test command 'sqlite3_bind_blob' to make use of the Tcl_GetByteArrayFr...
mistachkin [Fri, 15 Jul 2016 01:49:25 +0000 (01:49 +0000)] 
Modify the Tcl test command 'sqlite3_bind_blob' to make use of the Tcl_GetByteArrayFromObj() API.

FossilOrigin-Name: e03c81895e52096ab055d8231841e9070602ca84

8 years agoFix typo in sqlite3_trace_v2().
mistachkin [Fri, 15 Jul 2016 00:39:47 +0000 (00:39 +0000)] 
Fix typo in sqlite3_trace_v2().

FossilOrigin-Name: 97ccf15fb7e5103c8317d06a1985ba9c88544a60

8 years agoCorrections and enhancements for the new tests.
mistachkin [Fri, 15 Jul 2016 00:23:01 +0000 (00:23 +0000)] 
Corrections and enhancements for the new tests.

FossilOrigin-Name: 20e74c638537aa207de41a4f3c932cc05024ea9a

8 years agoModify one test result to be case-insensitive.
mistachkin [Fri, 15 Jul 2016 00:09:53 +0000 (00:09 +0000)] 
Modify one test result to be case-insensitive.

FossilOrigin-Name: 5ccbeeea7d7933402f7ccb0b1c9b3038989ca746