]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
8 years agoFix SQLITE_OMIT_SUBQUERY builds.
dan [Tue, 2 Aug 2016 17:45:00 +0000 (17:45 +0000)] 
Fix SQLITE_OMIT_SUBQUERY builds.

FossilOrigin-Name: 339f85f414a484e44d2502d1ff7281caf9b7c838

8 years agoFix a problem with vector range constraints and mixed ASC/DESC indexes.
dan [Tue, 2 Aug 2016 17:07:51 +0000 (17:07 +0000)] 
Fix a problem with vector range constraints and mixed ASC/DESC indexes.

FossilOrigin-Name: e2ad30c8b5366fd8e50f36c62345ed03ec613c47

8 years agoMerge latest trunk changes into this branch.
dan [Tue, 2 Aug 2016 16:24:10 +0000 (16:24 +0000)] 
Merge latest trunk changes into this branch.

FossilOrigin-Name: d468101b421e073e9debd7381bde1d36af31369e

8 years agoAdd missing comments and make some code on this branch clearer.
dan [Tue, 2 Aug 2016 16:18:35 +0000 (16:18 +0000)] 
Add missing comments and make some code on this branch clearer.

FossilOrigin-Name: 6937677cc2c2db6b21f997559f88a339466cd15b

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 a problem with vector range constraints involving the rowid column. And other...
dan [Mon, 1 Aug 2016 20:14:31 +0000 (20:14 +0000)] 
Fix a problem with vector range constraints involving the rowid column. And other issues.

FossilOrigin-Name: 3ef75d45ebcd8ede91596d69e55fe7d685008a60

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 agoFix a problem with IN(...) constraints where the LHS is a sub-select that is an aggre...
dan [Mon, 1 Aug 2016 16:37:43 +0000 (16:37 +0000)] 
Fix a problem with IN(...) constraints where the LHS is a sub-select that is an aggregate query.

FossilOrigin-Name: 1f4dba87da4a44ad26223ad965731164c0d9bad9

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 problems with vector == comparisons and NULL values.
dan [Sat, 30 Jul 2016 21:02:33 +0000 (21:02 +0000)] 
Fix problems with vector == comparisons and NULL values.

FossilOrigin-Name: 059d0d05354e6efab7892c97b339ffa0b5303587

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 agoMerge latest trunk with this branch.
dan [Sat, 30 Jul 2016 17:59:39 +0000 (17:59 +0000)] 
Merge latest trunk with this branch.

FossilOrigin-Name: 63ae02d084a332250ff6fd8d8c80e53bf5422a68

8 years agoRemove the EP_Vector expression flag.
dan [Sat, 30 Jul 2016 16:39:28 +0000 (16:39 +0000)] 
Remove the EP_Vector expression flag.

FossilOrigin-Name: e9d9c6d46b46160fad6aa6e3441a65a09157515f

8 years agoFix some issues with vector range constraints and the column cache. Also vector range...
dan [Fri, 29 Jul 2016 20:58:19 +0000 (20:58 +0000)] 
Fix some issues with vector range constraints and the column cache. Also vector range constraints and rowid columns.

FossilOrigin-Name: 42607366bfc2dceb1013797a973b3b8df75dcb4d

8 years agoChange the way "(a, b) = (SELECT *)" expressions are handled in where.c if there...
dan [Fri, 29 Jul 2016 18:12:12 +0000 (18:12 +0000)] 
Change the way "(a, b) = (SELECT *)" expressions are handled in where.c if there is an index on one of the columns only.

FossilOrigin-Name: 4dfebff2924f46284d5b9cda69175f79b29d6028

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 agoFix further issues with multi-column IN(...) operators. Also some error handling...
dan [Thu, 28 Jul 2016 19:47:15 +0000 (19:47 +0000)] 
Fix further issues with multi-column IN(...) operators. Also some error handling cases surrounding row values.

FossilOrigin-Name: cc3f6542bec99b00d2698889bcea2aa0b587efa0

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 agoMerge latest trunk changes into this branch.
dan [Thu, 28 Jul 2016 13:59:21 +0000 (13:59 +0000)] 
Merge latest trunk changes into this branch.

FossilOrigin-Name: 9685880f7baeb670739fdcf2d9df08e22abaa699

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 agoFix some problems with multi-column IN(SELECT...) processing.
dan [Wed, 27 Jul 2016 19:33:04 +0000 (19:33 +0000)] 
Fix some problems with multi-column IN(SELECT...) processing.

FossilOrigin-Name: 719a3b2035a335ca8b9704646b1d641011e3ea0e

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 agoMerge latest trunk changes into this branch.
dan [Tue, 26 Jul 2016 18:15:35 +0000 (18:15 +0000)] 
Merge latest trunk changes into this branch.

FossilOrigin-Name: d4f3d52c5a11fc7ad7e8cad76361edbcef13a12f

8 years agoFix where.c handling of "IN (SELECT ...)" expressions when the SELECT returns more...
dan [Tue, 26 Jul 2016 18:06:08 +0000 (18:06 +0000)] 
Fix where.c handling of "IN (SELECT ...)" expressions when the SELECT returns more than one result column. Also error handling for other row value constructor cases.

FossilOrigin-Name: 061b8006034f06a0311b4304c8b14d2c8b0153df

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 agoAllow vector IN(SELECT ...) expressions to use an index if either all the indexed...
dan [Sat, 23 Jul 2016 20:24:06 +0000 (20:24 +0000)] 
Allow vector IN(SELECT ...) expressions to use an index if either all the indexed columns are declared NOT NULL or if there is no difference between the expression evaluating to 0 and NULL (as in a WHERE clause).

FossilOrigin-Name: e2fd6f49b1b145bec09c581cc982b89429643ae9

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 agoMerge latest trunk changes with this branch.
dan [Fri, 22 Jul 2016 17:58:05 +0000 (17:58 +0000)] 
Merge latest trunk changes with this branch.

FossilOrigin-Name: 60fed5cdd4a44aefa1b4d505adeb7936f2f0b952

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

9 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

9 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

9 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

9 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

9 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

9 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

9 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