]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
9 years agoAdd an experimental SQLITE_ENABLE_UNKNOWN_SQL_FUNCTION compile-time option. unknown-function
drh [Thu, 4 Aug 2016 01:47:01 +0000 (01:47 +0000)] 
Add an 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: 4ada023ca075628fdafc3bc4520239b9789cff29

9 years agoMerge recent trunk fixes.
drh [Thu, 28 Jul 2016 18:42:21 +0000 (18:42 +0000)] 
Merge recent trunk fixes.

FossilOrigin-Name: 97657445860363f5bd62c37e6a565e782e7eb908

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 years agoMerge fixes to sqlite3_scrub_backup() from trunk.
drh [Tue, 26 Jul 2016 15:17:14 +0000 (15:17 +0000)] 
Merge fixes to sqlite3_scrub_backup() from trunk.

FossilOrigin-Name: 91e811f51e611a37372875e96a4c51bbed2dfdea

9 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

9 years agoMerge the cache_spill VACUUM fix from trunk.
drh [Tue, 26 Jul 2016 04:54:54 +0000 (04:54 +0000)] 
Merge the cache_spill VACUUM fix from trunk.

FossilOrigin-Name: cc6bfdf814d5701591b69ba2d399d4a1f6f6cc98

9 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

9 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

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

FossilOrigin-Name: 0e9f534fef72ca142a4296ab5285c82aada38ba7

9 years agoMerge the VACCUM cache_size adjustment from trunk.
drh [Mon, 25 Jul 2016 22:46:06 +0000 (22:46 +0000)] 
Merge the VACCUM cache_size adjustment from trunk.

FossilOrigin-Name: cdb7efd01ed7a8f11681b277098bb3eb12ca39d2

9 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

9 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

9 years agoAdd the experimental SQLITE_VACUUM_CACHE_SIZE macro.
drh [Mon, 25 Jul 2016 18:50:08 +0000 (18:50 +0000)] 
Add the experimental SQLITE_VACUUM_CACHE_SIZE macro.

FossilOrigin-Name: 68ecd8e042bd14b8ede69219bd4ed175bf097d0b

9 years agoMerge 3.14 alpha changes from trunk.
drh [Mon, 25 Jul 2016 17:31:24 +0000 (17:31 +0000)] 
Merge 3.14 alpha changes from trunk.

FossilOrigin-Name: e98cefb17d03ca146d0ff42bdd4dd6a8f3ba6735

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 years agoAdd tests, including some for the sqlite3_expanded_sql() API.
mistachkin [Fri, 15 Jul 2016 00:07:47 +0000 (00:07 +0000)] 
Add tests, including some for the sqlite3_expanded_sql() API.

FossilOrigin-Name: 8b8c0b749a9a1daca49e7ea9351e253443bb1fc2

10 years agoMore work on the Tcl interface and tests for the sqlite3_trace_v2() API.
mistachkin [Thu, 14 Jul 2016 23:17:03 +0000 (23:17 +0000)] 
More work on the Tcl interface and tests for the sqlite3_trace_v2() API.

FossilOrigin-Name: f3c4aa97d8c10fdb69efc6405b5fa45781f45a61

10 years agoInitial work on the Tcl API interface to the new sqlite3_trace_v2() function.
mistachkin [Thu, 14 Jul 2016 21:26:09 +0000 (21:26 +0000)] 
Initial work on the Tcl API interface to the new sqlite3_trace_v2() function.

FossilOrigin-Name: 7b59fa40a01c89cc98414d90a798169c26e04256

10 years agoMinor tweak the the b-tree balancer. btree-tuning
drh [Thu, 14 Jul 2016 19:48:08 +0000 (19:48 +0000)] 
Minor tweak the the b-tree balancer.

FossilOrigin-Name: d2a0af7a37e390439c3001fedb5834f47fb24a1f

10 years agoFix ALTER TABLE so that it does not promote the schema version past 3, as
drh [Thu, 14 Jul 2016 19:13:11 +0000 (19:13 +0000)] 
Fix ALTER TABLE so that it does not promote the schema version past 3, as
that will cause DESC indexes to go corrupt.
Ticket [f68bf68513a1c].

FossilOrigin-Name: a7db6e45ad45be9b3003f61d4163f543498a7c9d

10 years agoFix copy/paste typo in the new sqlite3_expanded_sql() function.
mistachkin [Thu, 14 Jul 2016 09:22:16 +0000 (09:22 +0000)] 
Fix copy/paste typo in the new sqlite3_expanded_sql() function.

FossilOrigin-Name: e7d18c70d2b8f09c9f5b978fe3d69d1088e42322

10 years agoFix a parameter misordering on sqlite3_trace_v2() in the loadable extension
drh [Thu, 14 Jul 2016 01:13:36 +0000 (01:13 +0000)] 
Fix a parameter misordering on sqlite3_trace_v2() in the loadable extension
interface.

FossilOrigin-Name: 989de2d5b5e7155654d3eebadb9651b23f422c58

10 years agoAdd the sqlite3_expanded_sql() interface. Refinements to the
drh [Thu, 14 Jul 2016 01:09:08 +0000 (01:09 +0000)] 
Add the sqlite3_expanded_sql() interface.  Refinements to the
sqlite3_trace_v2() interface to make it more useful.

FossilOrigin-Name: 99ee7ee58d45b29a0000492306ddc0b90563ff51

10 years agoLegacy tests now passing.
drh [Wed, 13 Jul 2016 23:18:27 +0000 (23:18 +0000)] 
Legacy tests now passing.

FossilOrigin-Name: f33526a341132435cb4185149a784eef6b3a1a2d

10 years agoFirst cut at implementing the new sqlite3_trace_v2() interface.
drh [Wed, 13 Jul 2016 22:55:01 +0000 (22:55 +0000)] 
First cut at implementing the new sqlite3_trace_v2() interface.

FossilOrigin-Name: cb0062feb018f52689938a58cb76886d431c33f0

10 years agoInterface design for a new sqlite3_trace_v2() method that supersedes
drh [Wed, 13 Jul 2016 21:30:03 +0000 (21:30 +0000)] 
Interface design for a new sqlite3_trace_v2() method that supersedes
sqlite3_trace() and sqlite3_profile().

FossilOrigin-Name: 0c569f759f6c4701321d7fea5e7ccb371743bb6b

10 years agoFix harmless compiler warnings in shell.c for NetBSD.
drh [Wed, 13 Jul 2016 13:05:13 +0000 (13:05 +0000)] 
Fix harmless compiler warnings in shell.c for NetBSD.

FossilOrigin-Name: 824b39e54fb9ba562be4d92cc9a54aee1cdf84cb

10 years agoFix header comments and remove an unnecessary version restriction from the
drh [Wed, 13 Jul 2016 00:55:28 +0000 (00:55 +0000)] 
Fix header comments and remove an unnecessary version restriction from the
carray() table-valued function implementation.

FossilOrigin-Name: 021d0fb8d85e44839d2b4fdb90b15f0e1f2442e6

10 years agoFix the error counter reset in Lemon generated parsers. This has no effect
drh [Tue, 12 Jul 2016 19:54:49 +0000 (19:54 +0000)] 
Fix the error counter reset in Lemon generated parsers.  This has no effect
on SQLite.

FossilOrigin-Name: 3ef93950d30b34d852d6bbc101d433a04112868a

10 years agoFix typos in comments. No changes to code.
mistachkin [Sun, 10 Jul 2016 19:35:10 +0000 (19:35 +0000)] 
Fix typos in comments.  No changes to code.

FossilOrigin-Name: 77c692a6704cd877ba35d0afb774ab9b46364d59

10 years agoAdd the "#/value-list/" style of results for approximate value matching
drh [Sat, 9 Jul 2016 17:47:01 +0000 (17:47 +0000)] 
Add the "#/value-list/" style of results for approximate value matching
in the do_test command of the test infrastructure.  Use this new result style
to make the SQLITE_DBSTATUS_CACHE_SIZE_SHARED tests cross-platform.

FossilOrigin-Name: c869bf34a8ee42ac6542862e59c7a4b89b042f79

10 years agoFix a compiler warning in test code - in the int64array_addr TCL command.
drh [Sat, 9 Jul 2016 17:15:05 +0000 (17:15 +0000)] 
Fix a compiler warning in test code - in the int64array_addr TCL command.

FossilOrigin-Name: 29fb988f1afc3fe623097acee1a5d08bf8386626

10 years agoFix compiler warnings on windows.
drh [Sat, 9 Jul 2016 16:38:25 +0000 (16:38 +0000)] 
Fix compiler warnings on windows.

FossilOrigin-Name: 8b22f777a11438ab0baadc7d9e471f415b734d1f

10 years agoFix various internal #defines to conform to new C-language naming restrictions,
drh [Sat, 9 Jul 2016 16:14:45 +0000 (16:14 +0000)] 
Fix various internal #defines to conform to new C-language naming restrictions,
specifically that private-use macros names must not begin with "_".

FossilOrigin-Name: 5471aca0158851d3fb0a2517306917536deb38bb

10 years agoAdd support for the win32-none VFS.
drh [Sat, 9 Jul 2016 00:06:21 +0000 (00:06 +0000)] 
Add support for the win32-none VFS.

FossilOrigin-Name: b5f32a896d0e4010ec67fcf1d635bb9aa797d3c2

10 years agoInitial work on a Win32 VFS with NOP locking. win32nolock
mistachkin [Fri, 8 Jul 2016 21:14:37 +0000 (21:14 +0000)] 
Initial work on a Win32 VFS with NOP locking.

FossilOrigin-Name: 549abe3f89b55b05a05f267865a5dd84b8cd335d

10 years agoAnother attempt to fix error handling in Lemon. This change is a no-op for
drh [Fri, 8 Jul 2016 19:54:38 +0000 (19:54 +0000)] 
Another attempt to fix error handling in Lemon.  This change is a no-op for
SQLite's usage.

FossilOrigin-Name: e1d8ef311cabcb96495a88404991b1416655e4a8

10 years agoIn the sqldiff program, make sure the first argument to the db_prepare()
drh [Fri, 8 Jul 2016 02:14:24 +0000 (02:14 +0000)] 
In the sqldiff program, make sure the first argument to the db_prepare()
utility function is always a valid format string.

FossilOrigin-Name: 8bb8d886ffa948cd7bc66c8c62da76bce233be2e

10 years agoAdd the SQLITE_DBSTATUS_CACHE_USED_SHARED sqlite3_db_status() parameter. This option...
dan [Wed, 6 Jul 2016 18:42:34 +0000 (18:42 +0000)] 
Add the SQLITE_DBSTATUS_CACHE_USED_SHARED sqlite3_db_status() parameter. This option is similar to DBSTATUS_CACHE_USED, except that it divides memory used by shared caches evenly between all connections.

FossilOrigin-Name: 06cf2680588c8dc4f0cbde275a09cfdcb5943268

10 years agoChange the name of the SQLITE_DBSTATUS_PROPORTIONAL_CACHE_USED to SQLITE_DBSTATUS_CAC... dbstatus-prop-cache-used
dan [Wed, 6 Jul 2016 18:12:54 +0000 (18:12 +0000)] 
Change the name of the SQLITE_DBSTATUS_PROPORTIONAL_CACHE_USED to SQLITE_DBSTATUS_CACHE_USED_SHARED.

FossilOrigin-Name: d58401ab26c7c5417eb7d540f47d11c4e49edcb2

10 years agoFix a test script problem causing a test to fail if the ICU extension is enabled.
dan [Wed, 6 Jul 2016 10:17:43 +0000 (10:17 +0000)] 
Fix a test script problem causing a test to fail if the ICU extension is enabled.

FossilOrigin-Name: 0c228f5d3db1be598ebf5d9170428c19d18e01ad

10 years agoAdd the SQLITE_DBSTATUS_PROPORTIONAL_CACHE_USED sqlite3_db_status() parameter.
dan [Wed, 6 Jul 2016 10:12:02 +0000 (10:12 +0000)] 
Add the SQLITE_DBSTATUS_PROPORTIONAL_CACHE_USED sqlite3_db_status() parameter.

FossilOrigin-Name: 118321c8b9d88b8f439c952436f42838c3fc80cb

10 years agoFix a memory leak in recently added test code.
dan [Wed, 6 Jul 2016 09:19:14 +0000 (09:19 +0000)] 
Fix a memory leak in recently added test code.

FossilOrigin-Name: 724e4cdc25fc80b8face57b3398cd338994fb23c

10 years agoMore fixes to Fossil so that it automatically resets its error counter at the
drh [Tue, 5 Jul 2016 16:11:26 +0000 (16:11 +0000)] 
More fixes to Fossil so that it automatically resets its error counter at the
end of a parse.

FossilOrigin-Name: 2683b375ad1291172fdb47d94e16fcf869c78c8a

10 years agoAttempt to reset the error count in the Lemon-generated parser after
drh [Tue, 5 Jul 2016 12:47:28 +0000 (12:47 +0000)] 
Attempt to reset the error count in the Lemon-generated parser after
a parse failure.

FossilOrigin-Name: 91889fa30e84760e0d4b3d429c4abdef5a3f7931

10 years agoAdd the sqlite3rbu_state() API. Used to determine the current state (creating OAL...
dan [Mon, 4 Jul 2016 11:47:48 +0000 (11:47 +0000)] 
Add the sqlite3rbu_state() API. Used to determine the current state (creating OAL, ready to move OAL, incremental-checkpoint, finished or error) of an RBU operation.

FossilOrigin-Name: 0357875fbb1bb462feef5121287b2f84da88e497

10 years agoAdd the carray() virtual table as a loadable extension.
drh [Mon, 4 Jul 2016 11:34:56 +0000 (11:34 +0000)] 
Add the carray() virtual table as a loadable extension.

FossilOrigin-Name: d8bc6feb99938a2aa06142b217045e4b54c66bf1

10 years agoChange the name of the intarray() extension to carray() and give it an prototype-int-array
drh [Sun, 3 Jul 2016 02:35:47 +0000 (02:35 +0000)] 
Change the name of the intarray() extension to carray() and give it an
optional third parameter that specifies the datatype as one of 'int32',
'int64', 'double', or 'char*'.  'int32' is the default.

FossilOrigin-Name: a204ba99db34b356acb259189158a32d2df25da0

10 years agoFix an off-by-one comparison in the intarray() virtual table. Get the
drh [Sat, 2 Jul 2016 20:57:06 +0000 (20:57 +0000)] 
Fix an off-by-one comparison in the intarray() virtual table.  Get the
intarray() virtual table tests working using the legacy makefile.

FossilOrigin-Name: 7c3d441f2a9f642f3d91dcee854a4d16d298bc34

10 years agoMerge the alternative table-valued function RHS of IN operator implementation
drh [Sat, 2 Jul 2016 20:51:31 +0000 (20:51 +0000)] 
Merge the alternative table-valued function RHS of IN operator implementation
from trunk.

FossilOrigin-Name: 507fdbfb54ce377f0d870260b07d71b797843fcf

10 years agoFix a problem in table-valued functions on the RHS of an IN operator that
drh [Sat, 2 Jul 2016 12:33:21 +0000 (12:33 +0000)] 
Fix a problem in table-valued functions on the RHS of an IN operator that
occurs following an OOM error.

FossilOrigin-Name: bead151e72215e6ca2a90eb049cfca414dccea04

10 years agoAdd support for table-valued functions on the RHS of an IN operator.
drh [Sat, 2 Jul 2016 12:08:14 +0000 (12:08 +0000)] 
Add support for table-valued functions on the RHS of an IN operator.

FossilOrigin-Name: ac6000f050ff4efcf8a87f0825077dbf4144f073

10 years agoFix the transitive constraint logic error that can result in a null pointer
drh [Fri, 1 Jul 2016 20:12:39 +0000 (20:12 +0000)] 
Fix the transitive constraint logic error that can result in a null pointer
dereference.  Fix for ticket [e8d439c77685eca6].

FossilOrigin-Name: 228a7879870f8689e2f9b74fbef2ff93fab7b3c2

10 years agoAdd test cases to the transitive constraint fix. planner-fix
drh [Fri, 1 Jul 2016 19:48:43 +0000 (19:48 +0000)] 
Add test cases to the transitive constraint fix.

FossilOrigin-Name: c952af89c22ddc31491f142b9511608a4c8f9737

10 years agoAdd the sqlite3rbu_state() API. Used to determine the current state (creating OAL... rbu-state-api
dan [Fri, 1 Jul 2016 12:39:58 +0000 (12:39 +0000)] 
Add the sqlite3rbu_state() API. Used to determine the current state (creating OAL, ready to move OAL, incremental-checkpoint, finished or error) of an RBU operation.

FossilOrigin-Name: 92e7df0ff5c4c118c63d92a767dc82700438a310

10 years agoAdd the ability to have a table-valued function on the RHS of an IN operator.
drh [Wed, 29 Jun 2016 06:19:19 +0000 (06:19 +0000)] 
Add the ability to have a table-valued function on the RHS of an IN operator.

FossilOrigin-Name: ba1b441b6003808810667d749635fe6b2e8c6165

10 years agoAnother test case for the intarray($PTR,$N) virtual table.
drh [Wed, 29 Jun 2016 05:08:01 +0000 (05:08 +0000)] 
Another test case for the intarray($PTR,$N) virtual table.

FossilOrigin-Name: 06e1fab7527c6b4330a58f8d8873afaf2d67ae86

10 years agoAdd a prototype intarray($PTR,$N) table valued function.
drh [Wed, 29 Jun 2016 05:00:30 +0000 (05:00 +0000)] 
Add a prototype intarray($PTR,$N) table valued function.

FossilOrigin-Name: 233b33382dc70de45f90b6dfdb5785f20b21489e

10 years agoProposed fix for a problem in the query planner.
drh [Tue, 28 Jun 2016 22:27:56 +0000 (22:27 +0000)] 
Proposed fix for a problem in the query planner.

FossilOrigin-Name: a33d23560959a127e37d8213dc00210cd4b05352

10 years agoPrevent the WhereLoop.rSetup cost estimate from going negative on complex
drh [Sun, 26 Jun 2016 04:06:28 +0000 (04:06 +0000)] 
Prevent the WhereLoop.rSetup cost estimate from going negative on complex
queries.

FossilOrigin-Name: f81050859170c8708a1b296da8dd3ef0dd314a11