]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
8 years agoRemove an unnecessary stack variable from sqlite3VdbeExec(). vector-compare
drh [Sat, 13 Aug 2016 14:17:02 +0000 (14:17 +0000)] 
Remove an unnecessary stack variable from sqlite3VdbeExec().

FossilOrigin-Name: c54bd9c82dd34951dc87848c0b19fcccaef928db

8 years agoImprovements to commits. No code changes.
drh [Sat, 13 Aug 2016 13:03:46 +0000 (13:03 +0000)] 
Improvements to commits.  No code changes.

FossilOrigin-Name: 18f5a3bee4f870be4644a6042a20081c46edb7d0

8 years agoFix to the vector less-than operator. All legacy tests passing now.
drh [Sat, 13 Aug 2016 12:37:47 +0000 (12:37 +0000)] 
Fix to the vector less-than operator.  All legacy tests passing now.

FossilOrigin-Name: ec70a67ebc997f457be4d52d8affc37e142dc3ff

8 years agoAttempt to simplify the logic and generated code for vector comparisons.
drh [Sat, 13 Aug 2016 10:02:17 +0000 (10:02 +0000)] 
Attempt to simplify the logic and generated code for vector comparisons.
Basic comparison operators are working, but there are many indexing test
failures still to be worked through.

FossilOrigin-Name: dfc028cfbe7657d20727a2670ecadb1575eb8cbb

8 years agoAdd VdbeCoverage() macros on newly added VDBE branch operations.
drh [Fri, 12 Aug 2016 11:25:49 +0000 (11:25 +0000)] 
Add VdbeCoverage() macros on newly added VDBE branch operations.

FossilOrigin-Name: 381aa73141db8ec59adbcb09e71af660ee4ae5ce

8 years agoFix a post-OOM memory leak.
drh [Fri, 12 Aug 2016 11:01:20 +0000 (11:01 +0000)] 
Fix a post-OOM memory leak.

FossilOrigin-Name: 14009b32b955b42cfd5f0c2ce7d4b3ce19ce201e

8 years agoMerge recent changes from trunk.
drh [Thu, 11 Aug 2016 12:31:21 +0000 (12:31 +0000)] 
Merge recent changes from trunk.

FossilOrigin-Name: 959677b97ba15f786936c762e2e68df1151d7ed0

8 years agoFix some problems with handling "no such collation sequence" errors.
dan [Thu, 11 Aug 2016 12:01:52 +0000 (12:01 +0000)] 
Fix some problems with handling "no such collation sequence" errors.

FossilOrigin-Name: 8278be06fa69e3266866220bdaf5be45a5fcfa23

8 years agoFix a 1 byte buffer overwrite in the "sqldiff --rbu" command.
dan [Thu, 11 Aug 2016 09:55:55 +0000 (09:55 +0000)] 
Fix a 1 byte buffer overwrite in the "sqldiff --rbu" command.

FossilOrigin-Name: ab83d7077da80ddbcf399d0797d79e964dc64f0e

8 years agoFix a harmless compiler warning in FTS5.
drh [Thu, 11 Aug 2016 01:24:56 +0000 (01:24 +0000)] 
Fix a harmless compiler warning in FTS5.

FossilOrigin-Name: 2ea0c8b46eefd4874f021f8dfd344be751f2034f

8 years agoOptimization to sqlite3WhereExprUsage().
drh [Wed, 10 Aug 2016 20:02:21 +0000 (20:02 +0000)] 
Optimization to sqlite3WhereExprUsage().

FossilOrigin-Name: 95493058fcf40306727a281f21c5a2a0011b7d02

8 years agoList of MATCH operator names in isMatchOfColumn() should be constant.
drh [Wed, 10 Aug 2016 19:43:29 +0000 (19:43 +0000)] 
List of MATCH operator names in isMatchOfColumn() should be constant.

FossilOrigin-Name: 7319d676aaf95ba7391379f4cdf193b6aa898893

8 years agoPerformance enhancement in the expression walker.
drh [Wed, 10 Aug 2016 18:56:32 +0000 (18:56 +0000)] 
Performance enhancement in the expression walker.

FossilOrigin-Name: ebccbd96094ac64de39dbd0d220d3a7afd8cd40e

8 years agoTweaks to pcache1TruncateUnsafe() to make it slightly smaller and faster and
drh [Wed, 10 Aug 2016 15:02:49 +0000 (15:02 +0000)] 
Tweaks to pcache1TruncateUnsafe() to make it slightly smaller and faster and
easier to test.

FossilOrigin-Name: 059f4e2efefb7b9deaf539110c19bceaeb10c6ce

8 years agoRearrange the code inside sqlite3RunParser() routine so that sqlite3Parser()
drh [Wed, 10 Aug 2016 14:40:00 +0000 (14:40 +0000)] 
Rearrange the code inside sqlite3RunParser() routine so that sqlite3Parser()
is only called from a single place.  This allows sqlite3Parser() to be
in-lined, which results in a 0.25% overall performance gain.

FossilOrigin-Name: 25d1d02b3ea126ade22b2a72649ae55509aa1777

8 years agoIncrement the version number to 3.15.
drh [Wed, 10 Aug 2016 13:34:16 +0000 (13:34 +0000)] 
Increment the version number to 3.15.

FossilOrigin-Name: 8c2701e70ab2553d7a586ff5fe7afa02d8c63199

8 years agoImproved comments on the lempar.c parser template. Adjust the
drh [Wed, 10 Aug 2016 13:30:43 +0000 (13:30 +0000)] 
Improved comments on the lempar.c parser template.  Adjust the
YY_SHIFT_USE_DFLT constant in the Lemon-generated parser tables so as
to guarantee that it is always out of range of the yy_lookahead[] table.

FossilOrigin-Name: 83622f3f50030e4d6abafb99d99742928aaf157c

8 years agoFix pcache1TruncateUnsafe() run faster for the case where iLimit is
drh [Wed, 10 Aug 2016 11:50:12 +0000 (11:50 +0000)] 
Fix pcache1TruncateUnsafe() run faster for the case where iLimit is
very close to iMaxKey.

FossilOrigin-Name: b07a26df06a2ffb946ff8a1cc7f43eaf701a94b5

8 years agoPerformance optimization in the yy_find_shift_action() routine of the
drh [Wed, 10 Aug 2016 01:43:30 +0000 (01:43 +0000)] 
Performance optimization in the yy_find_shift_action() routine of the
Lemon-generated parser.

FossilOrigin-Name: ba6663beefcc8060e6f3be6ab37c13fdbb08b7de

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 agoAdd rowvalue5.test, which should have been part of the previous commit on this branch.
dan [Tue, 9 Aug 2016 05:48:40 +0000 (05:48 +0000)] 
Add rowvalue5.test, which should have been part of the previous commit on this branch.

FossilOrigin-Name: ea03e219ced87777f0c3c6bbb0274078dbb829e2

8 years agoFix some cases involving row values and virtual tables.
dan [Mon, 8 Aug 2016 20:15:41 +0000 (20:15 +0000)] 
Fix some cases involving row values and virtual tables.

FossilOrigin-Name: 156a41f30a0afd9a70e6c26470dcc468a11bd402

8 years agoFix the EXPLAIN QUERY PLAN output for row value range constaints that use an index.
dan [Mon, 8 Aug 2016 18:42:08 +0000 (18:42 +0000)] 
Fix the EXPLAIN QUERY PLAN output for row value range constaints that use an index.

FossilOrigin-Name: bb60651163553c5e46bf7b2805490570cea647b8

8 years agoMerge trunk changes with this branch.
dan [Mon, 8 Aug 2016 16:52:11 +0000 (16:52 +0000)] 
Merge trunk changes with this branch.

FossilOrigin-Name: 0e927a7e0250a65fd8e97b322cd69e93fadd13f0

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 problem with estimating the number of rows visited by a query that uses a multi...
dan [Wed, 3 Aug 2016 18:00:49 +0000 (18:00 +0000)] 
Fix a problem with estimating the number of rows visited by a query that uses a multi-column IN(SELECT...) constraint.

FossilOrigin-Name: 3c2f908f5b7312570cfa74afcf4252a857cb5237

8 years agoFix another problem involving vector range constraints and mixed ASC/DESC indexes.
dan [Wed, 3 Aug 2016 16:39:04 +0000 (16:39 +0000)] 
Fix another problem involving vector range constraints and mixed ASC/DESC indexes.

FossilOrigin-Name: 1559f4c43473e107f7196eea3ee91c53ede22999

8 years agoFix stat4-based cost estimates for vector range constraints.
dan [Wed, 3 Aug 2016 16:14:33 +0000 (16:14 +0000)] 
Fix stat4-based cost estimates for vector range constraints.

FossilOrigin-Name: 18af74abc8ceae47ab9fbee3e3e5bb37db8fcba5

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 agoAdd new test file rowvaluefault.test.
dan [Tue, 2 Aug 2016 20:45:56 +0000 (20:45 +0000)] 
Add new test file rowvaluefault.test.

FossilOrigin-Name: e496b2d63984311e6ae117677e6c2417ae24b6bc

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 agoAdd tests and fixes for vector operations that use sub-queries with different combina...
dan [Tue, 2 Aug 2016 18:50:15 +0000 (18:50 +0000)] 
Add tests and fixes for vector operations that use sub-queries with different combinations of LIMIT, OFFSET and ORDER BY clauses.

FossilOrigin-Name: 092b1c5ff53c9f3cfed079c46e3353d93f99303e

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