]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
8 years agoFix the vector BETWEEN operator so that it only evaluates the left-most
drh [Mon, 22 Aug 2016 14:30:05 +0000 (14:30 +0000)] 
Fix the vector BETWEEN operator so that it only evaluates the left-most
vector expression once.  Add support for vector comparisons in the CASE
operator.

FossilOrigin-Name: 07e69f43a294d35b5145a2b0242ee42d50adab14

8 years agoReinstate the mechanism in BETWEEN that avoids evaluating the first expression
drh [Mon, 22 Aug 2016 00:48:58 +0000 (00:48 +0000)] 
Reinstate the mechanism in BETWEEN that avoids evaluating the first expression
more than once, but fix the affinity extractor so that it works with this
mechanism.  The de-duplication of the first expression still does not work
for vector expressions, though.

FossilOrigin-Name: 2f39987f21bd6dae8d2be610a1fd5f06f8878e9e

8 years agoThe docs promise the in "x BETWEEN y AND z" the x expression is only evaluated
drh [Sat, 20 Aug 2016 22:49:28 +0000 (22:49 +0000)] 
The docs promise the in "x BETWEEN y AND z" the x expression is only evaluated
once.  That is no longer true, and so some tests are failing.  This needs to
be fixed before merging to trunk.

FossilOrigin-Name: e50d264fdc2f08d19202c68f73f18df301cb233d

8 years agoFurther comment enhancements. No changes to code.
drh [Sat, 20 Aug 2016 21:11:25 +0000 (21:11 +0000)] 
Further comment enhancements.  No changes to code.

FossilOrigin-Name: d4562a9e7b1eaff41466210e3a0caaf374ec5a92

8 years agoClarification of code comments in expr.c. Clean up the implementations
drh [Sat, 20 Aug 2016 21:02:38 +0000 (21:02 +0000)] 
Clarification of code comments in expr.c.  Clean up the implementations
of sqlite3ExprIsVector() and sqlite3ExprVectorSize() slightly.

FossilOrigin-Name: 4fb66d6592b141a4a71359250dbd1ac454569cb9

8 years agoFixes for problems following OOM errors.
drh [Sat, 20 Aug 2016 18:06:14 +0000 (18:06 +0000)] 
Fixes for problems following OOM errors.

FossilOrigin-Name: 9041ee4a6f0e8389297f887f1431ab5cfe783390

8 years agoDo not duplicate the Expr.pLeft subtree of a TK_SELECT_COLUMN node.
drh [Sat, 20 Aug 2016 17:00:16 +0000 (17:00 +0000)] 
Do not duplicate the Expr.pLeft subtree of a TK_SELECT_COLUMN node.

FossilOrigin-Name: 8384c77ebb3f65fbc54c199885926f2066f0b140

8 years agoFix a segfault that could occur if a query that used a vector comparison contained...
dan [Sat, 20 Aug 2016 15:01:24 +0000 (15:01 +0000)] 
Fix a segfault that could occur if a query that used a vector comparison contained certain types of syntax errors.

FossilOrigin-Name: 203f07c5e140e74cf91d0c1e20135c21236f0fc1

8 years agoImprovements to the vector comparison splitter in exprAnalyze().
drh [Sat, 20 Aug 2016 12:00:05 +0000 (12:00 +0000)] 
Improvements to the vector comparison splitter in exprAnalyze().

FossilOrigin-Name: a3ffd283bc931b04170ef737e56bced33d27f06d

8 years agoImprovements to comments. No code changes.
drh [Sat, 20 Aug 2016 01:06:22 +0000 (01:06 +0000)] 
Improvements to comments.  No code changes.

FossilOrigin-Name: 4165d20f64d778a4e48f511a37cfced8579d4dbe

8 years agoAdd support for vector assignments in the SET clause of an UPDATE statement.
drh [Sat, 20 Aug 2016 00:51:37 +0000 (00:51 +0000)] 
Add support for vector assignments in the SET clause of an UPDATE statement.

FossilOrigin-Name: f320d47d6b7b08d9552c8444004bc256348bda90

8 years agoChange the way TK_SELECT_COLUMN is handled so that the subquery is only
drh [Sat, 20 Aug 2016 00:07:01 +0000 (00:07 +0000)] 
Change the way TK_SELECT_COLUMN is handled so that the subquery is only
generated once even if part of the vector comparison is used for indexing
and the other part is now.  This change also is a pathway to vector assignment
in UPDATE statements.

FossilOrigin-Name: d8feea7dcde83179bff303072426561cfe825e58

8 years agoReplace the magic number (-2) with its symbol XN_EXPR in the
drh [Fri, 19 Aug 2016 19:58:06 +0000 (19:58 +0000)] 
Replace the magic number (-2) with its symbol XN_EXPR in the
exprMightBeIndexed() routine.  No logic changes.

FossilOrigin-Name: d4a5af69cc3bde6f8c02075c07b4d47a0252392d

8 years agoImproved comments on sqlite3CodeSubquery(). No changes to code.
drh [Fri, 19 Aug 2016 19:12:58 +0000 (19:12 +0000)] 
Improved comments on sqlite3CodeSubquery().  No changes to code.

FossilOrigin-Name: acea4ee136def4815d22eec240c5903a72bde9bd

8 years agoShow the WhereTerm.iField value on debugging output, when it is non-zero.
drh [Fri, 19 Aug 2016 18:40:17 +0000 (18:40 +0000)] 
Show the WhereTerm.iField value on debugging output, when it is non-zero.

FossilOrigin-Name: 931c95358d8bc02f3e3d8ee4e545a07b2d2c97e8

8 years agoFix an obsolete comment on codeEqualityTerm(). No changes to code.
drh [Fri, 19 Aug 2016 18:28:00 +0000 (18:28 +0000)] 
Fix an obsolete comment on codeEqualityTerm().  No changes to code.

FossilOrigin-Name: d07be5afb0a915769382dfd815403f8832cb3eec

8 years agoMerge recent enhancements from trunk.
drh [Fri, 19 Aug 2016 15:41:24 +0000 (15:41 +0000)] 
Merge recent enhancements from trunk.

FossilOrigin-Name: b17872363b60edab05a5d382a44038aad91e4d9f

8 years agoEnhance the VACUUM command so that it can operate on an attached database.
drh [Fri, 19 Aug 2016 15:15:55 +0000 (15:15 +0000)] 
Enhance the VACUUM command so that it can operate on an attached database.

FossilOrigin-Name: 083f9e6270fa4faa402b91231271da4f3915c79f

8 years agoDisable row counting on queries run while doing a VACUUM. vacuum-attached-db
drh [Fri, 19 Aug 2016 15:12:38 +0000 (15:12 +0000)] 
Disable row counting on queries run while doing a VACUUM.

FossilOrigin-Name: ad35ef116296e5d6aaeb9ef260bf35bee3bd6d20

8 years agoAdd the capability to VACUUM an attached database by specifying the schema
drh [Fri, 19 Aug 2016 14:20:56 +0000 (14:20 +0000)] 
Add the capability to VACUUM an attached database by specifying the schema
name as an argument to the VACUUM command.  Since version 2.0, VACUUM has
accepted an argument which was silently ignored.  Now it has meaning.

FossilOrigin-Name: 29d63059b4d2bb612523ac55ebfef040d054a64f

8 years agoChange the name of Db.zName to Db.zDbSName for improved long-term code
drh [Thu, 18 Aug 2016 22:19:03 +0000 (22:19 +0000)] 
Change the name of Db.zName to Db.zDbSName for improved long-term code
maintainability.

FossilOrigin-Name: cb9865e14db1c0076618f13400151112f84960cb

8 years agoFix a zName to zDbSName conversion missed in the previous check-in. zDbSName
drh [Thu, 18 Aug 2016 20:56:39 +0000 (20:56 +0000)] 
Fix a zName to zDbSName conversion missed in the previous check-in.

FossilOrigin-Name: d7cf423cdccada2b0a4b7cc79ccf5f35d6f43212

8 years agoFix a SQL NULL handling bug in the vector IN operator code generation.
drh [Thu, 18 Aug 2016 19:04:57 +0000 (19:04 +0000)] 
Fix a SQL NULL handling bug in the vector IN operator code generation.

FossilOrigin-Name: 936146b12e27784f15a68fe65732c6d92c3a12f3

8 years agoDisplay SELECT_COLUMN expressions in the .wheretrace debugging output.
drh [Thu, 18 Aug 2016 18:09:10 +0000 (18:09 +0000)] 
Display SELECT_COLUMN expressions in the .wheretrace debugging output.

FossilOrigin-Name: 3b27a5da100037f75a4efc15e0354a6aa94194f8

8 years agoDisplay VECTOR expressions in .wheretrace and .selecttrace debugging output.
drh [Thu, 18 Aug 2016 17:55:57 +0000 (17:55 +0000)] 
Display VECTOR expressions in .wheretrace and .selecttrace debugging output.

FossilOrigin-Name: 157347e2580e5078c4081d602e9d1a82d194e719

8 years agoSince the TK_VECTOR token is not actually used by the parser, make it an
drh [Thu, 18 Aug 2016 15:36:03 +0000 (15:36 +0000)] 
Since the TK_VECTOR token is not actually used by the parser, make it an
extra token code added by the tool/addopcodes.tcl script during parser build.

FossilOrigin-Name: b40b202c1f82808d2240e87b22f1e78b2208cb26

8 years agoMerge recent enhancements from trunk.
drh [Thu, 18 Aug 2016 15:21:16 +0000 (15:21 +0000)] 
Merge recent enhancements from trunk.

FossilOrigin-Name: 4768a1066cb9c7627064d7efec44188d6755cb03

8 years agoSimplify the vector comparison code generator logic, and the resulting
drh [Thu, 18 Aug 2016 15:15:29 +0000 (15:15 +0000)] 
Simplify the vector comparison code generator logic, and the resulting
VDBE code.

FossilOrigin-Name: e2ad0b5d8e1e83118c12889150aca2f2a6b2bdde

8 years agoRename the Db.zName field to Db.zDbSName to make it more descriptive and to
drh [Thu, 18 Aug 2016 14:33:11 +0000 (14:33 +0000)] 
Rename the Db.zName field to Db.zDbSName to make it more descriptive and to
distinguish it from all of the other "zName" variables scattered throughout
the code.

FossilOrigin-Name: 92a22f01343a898455fd61c3b8e7d7c954f5b569

8 years agoFix a problem in the fts5 snippet() auxiliary function.
dan [Wed, 17 Aug 2016 11:14:39 +0000 (11:14 +0000)] 
Fix a problem in the fts5 snippet() auxiliary function.

FossilOrigin-Name: a861713cc6a3868a1c89240e8340bc7b2b9559da

8 years agoFix a bug in destructor processing of Lemon. That has no impact on the
drh [Tue, 16 Aug 2016 16:46:40 +0000 (16:46 +0000)] 
Fix a bug in destructor processing of Lemon.  That has no impact on the
SQLite grammar.  The bug was introduced by prior work to optimize the
Lemon-generated parser used by SQLite.

FossilOrigin-Name: f9035b8e2ea331801402bcb62b203ab092949770

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 agoFix an fts5 problem with corrupt database handling found by address-sanitizer.
dan [Sat, 13 Aug 2016 10:34:12 +0000 (10:34 +0000)] 
Fix an fts5 problem with corrupt database handling found by address-sanitizer.

FossilOrigin-Name: e22252e1da4cd9e41b970970a1c4f466aa6cc133

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 agoFix a buffer overread in fts5.
dan [Sat, 13 Aug 2016 06:38:31 +0000 (06:38 +0000)] 
Fix a buffer overread in fts5.

FossilOrigin-Name: fcfbee6c7d33a9ae7feb46044a0c2fe680460d39

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 agoAdd the "modeof=<filename>" URI parameter to os_unix.c - used to specify a file to...
dan [Thu, 11 Aug 2016 18:05:47 +0000 (18:05 +0000)] 
Add the "modeof=<filename>" URI parameter to os_unix.c - used to specify a file to copy permissions from when a new database is created. Also allow passing NULL as the second parameter to sqlite3rbu_vacuum().

FossilOrigin-Name: ed406d31ff54ee3de8db91690a966e5c561f8f94

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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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