]>
git.ipfire.org Git - thirdparty/sqlite.git/log
drh [Tue, 17 Mar 2015 20:39:11 +0000 (20:39 +0000)]
Clarify the documentation on sqlite3_errcode(). No changes to code.
FossilOrigin-Name:
2c0e0d87fb418d684fba1c83d9fd8e4e96588c54
drh [Tue, 17 Mar 2015 18:54:10 +0000 (18:54 +0000)]
Merge all recent trunk enhancements into the sessions branch.
FossilOrigin-Name:
1d1c57c3566d86cd44f146688b620131b3b57e52
drh [Tue, 17 Mar 2015 17:08:35 +0000 (17:08 +0000)]
Also merge the WAL blocking lock tests that were somehow missed on the
previous check-in.
FossilOrigin-Name:
7214dab7443d35c105904dd69635c1f8b45b2fc8
drh [Tue, 17 Mar 2015 16:59:57 +0000 (16:59 +0000)]
Transient locks in WAL mode can now block in order to resolve priority
inversions.
FossilOrigin-Name:
ec2f46de531ec8ef91981b19b48ab64db7727264
dan [Tue, 17 Mar 2015 16:01:29 +0000 (16:01 +0000)]
Add a test for the change on this branch.
FossilOrigin-Name:
e22dde187eb0b389d6d93e2e39a26fd0f4e6196e
dan [Mon, 16 Mar 2015 20:40:00 +0000 (20:40 +0000)]
Make SQLite slightly more likely to use an auto-index within a sub-query.
FossilOrigin-Name:
ab832336f4a28193c4d2b61e833564822a7b86a8
mistachkin [Mon, 16 Mar 2015 18:08:56 +0000 (18:08 +0000)]
Fix typo of test prefix in the new WHERE test file.
FossilOrigin-Name:
34779c528f1817d6ec34216b58fb4277956b5167
drh [Mon, 16 Mar 2015 17:48:12 +0000 (17:48 +0000)]
When the WHERE clause contains two OR-connected terms with identical
operands but different operators, try to combine them into a single term.
Example: (X=A OR X>A) becomes (X>=A).
FossilOrigin-Name:
8bdda827a3d268009297a0216e3d94bf0eceeb2e
drh [Mon, 16 Mar 2015 17:07:09 +0000 (17:07 +0000)]
Modify the fts3query.test script so that it works even when testfixture is
built using a version of TCL that is unable to sort the
integer -
9223372036854775808
FossilOrigin-Name:
f61fd24b4d3b686911ea578f77612309099f0cc6
drh [Mon, 16 Mar 2015 16:44:55 +0000 (16:44 +0000)]
When deleting the master journal to commit a multi-database transaction, do
not sync the directory if PRAGMA synchronous=OFF for all participating
database files.
FossilOrigin-Name:
018d7671402a0f8103d1306641655b69f9fa235d
dan [Mon, 16 Mar 2015 16:28:43 +0000 (16:28 +0000)]
When estimating the number of rows visited by a range scan for which the keys consist of more than one field, consider prefixes of stat4 samples as well as the full samples. This generates more accurate estimates.
FossilOrigin-Name:
3e0590dee0e68cc1599858757c650a7378026170
drh [Mon, 16 Mar 2015 13:48:23 +0000 (13:48 +0000)]
Use #ifdef to omit code that is only used for STAT3 and STAT4.
FossilOrigin-Name:
f2c9c5b57b7739daafc44e8ec36d4a2beacd5f17
drh [Mon, 16 Mar 2015 13:12:34 +0000 (13:12 +0000)]
Improved comments. No code changes.
FossilOrigin-Name:
23f71a26386ff2aff9800fe96cec1dc9c805b5b6
drh [Mon, 16 Mar 2015 12:13:31 +0000 (12:13 +0000)]
When a WHERE clause contains disjuncts with the same operands, try to
combine them into a single operator. Example: (x=A OR x>A) becomes
(x>=A).
FossilOrigin-Name:
7a3097689d17625fb0dfc4372712f375f3bdb9a1
dan [Mon, 16 Mar 2015 09:21:30 +0000 (09:21 +0000)]
Another test case for the planner change on this branch.
FossilOrigin-Name:
f2207a0691ed361061719f4dacf021a677a9d892
dan [Sat, 14 Mar 2015 18:59:58 +0000 (18:59 +0000)]
When estimating the number of rows visited by a range scan for which the keys consist of more than one field, consider prefixes of stat4 samples as well as the full samples.
FossilOrigin-Name:
e1caf93c9ad0ee15d42030af95619f212d3fcf9d
dan [Fri, 13 Mar 2015 15:44:36 +0000 (15:44 +0000)]
Add tests to ensure "PRAGMA incremental_vacuum" and "PRAGMA auto_vacuum = incremental" handle corrupt databases correctly.
FossilOrigin-Name:
1c2166cb2a387a0856f41b399c3648bf8c5fce73
dan [Fri, 13 Mar 2015 08:31:54 +0000 (08:31 +0000)]
drh [Fri, 13 Mar 2015 00:11:09 +0000 (00:11 +0000)]
Remove debugging logic accidently included in the previous check-in.
FossilOrigin-Name:
2887fb38ffc28712c34028cd38db2b7993d864eb
drh [Thu, 12 Mar 2015 23:48:27 +0000 (23:48 +0000)]
Fix the "now" option for date-time functions for cases when STAT4 is disabled.
FossilOrigin-Name:
3ac1f6a3cf1a8fd3ab1ca96b2564c13c4b8d2234
drh [Thu, 12 Mar 2015 21:22:08 +0000 (21:22 +0000)]
When STAT4 is enabled, allow probes of the STAT4 table using the value
of constant functions computed at compile-time.
FossilOrigin-Name:
0f250957cd82be63e44eb99be6cc10760f4fdfc4
drh [Thu, 12 Mar 2015 21:02:36 +0000 (21:02 +0000)]
Always disallow functions as the DEFAULT of a column. Add assert()s and
FossilOrigin-Name:
a991bb1a9eb54bdbd45bd623e8b304bdfeb481a3
dan [Thu, 12 Mar 2015 19:12:30 +0000 (19:12 +0000)]
Disable multiplexing of master-journal files in the test_multiplex.c module.
FossilOrigin-Name:
b8684df395b5585a9428417c2bfd076515560f19
drh [Thu, 12 Mar 2015 18:38:51 +0000 (18:38 +0000)]
If an error occurs in the compile-time evaluation of an application-defined
function, then propagate back out the exact error code, not just the
generic SQLITE_ERROR.
FossilOrigin-Name:
93f42586cc9db63c5a4599ce06630e60204a5bc9
drh [Thu, 12 Mar 2015 06:46:52 +0000 (06:46 +0000)]
The valueFromFunction() routine is better able to handle OOM errors.
Omit unreachable branches.
FossilOrigin-Name:
8fb6bd9be59d6b04e922d7b246aaefd4851539b6
drh [Thu, 12 Mar 2015 05:08:34 +0000 (05:08 +0000)]
Improve the text on one of the opcode documentation comments in vdbe.c.
FossilOrigin-Name:
08958f57970d2346f3e98e62225e2b5d351d12d8
dan [Wed, 11 Mar 2015 20:59:42 +0000 (20:59 +0000)]
Allow the default value for columns added using ALTER TABLE ADD COLUMN to be a function in existing schemas loaded from disk. But prevent this version of SQLite from being used to create such a column.
FossilOrigin-Name:
ff868e22ca0393eaac417872a4c10738f0d7d970
dan [Wed, 11 Mar 2015 20:06:40 +0000 (20:06 +0000)]
Allow the query planner to evaluate deterministic scalar SQL functions used in WHERE constraints if all arguments are SQL literals in order to compare the results with sqlite_stat4 sample data.
FossilOrigin-Name:
b7f1fc26d24012e1e7c7f6b3cc0b84ad2b02b8ad
dan [Wed, 11 Mar 2015 14:51:39 +0000 (14:51 +0000)]
Add an optimization to the fts5 unicode tokenizer code.
FossilOrigin-Name:
f5db489250029678fce845dfb2b1109fde46bea5
drh [Wed, 11 Mar 2015 14:34:38 +0000 (14:34 +0000)]
Expand the multi-process test cases to repeat each case 20 times and
to repeat tests using different journal modes.
FossilOrigin-Name:
a2715b049a86555990abccc7aa363c524ddb9982
drh [Tue, 10 Mar 2015 20:22:35 +0000 (20:22 +0000)]
Arrange for some of the transient locks in WAL mode to block, as a single
to the OS to fix priority inversions.
FossilOrigin-Name:
c6e6d5f4e06c3ac0bfb620c0c728fbc7230c4a02
dan [Tue, 10 Mar 2015 19:24:30 +0000 (19:24 +0000)]
Avoid redundant string comparisons while merging fts5 segment b-trees.
FossilOrigin-Name:
5c46820d9b4aae791a8704b69145bd81f1e6780d
drh [Tue, 10 Mar 2015 15:34:47 +0000 (15:34 +0000)]
Fix an incrblob2 test case so that it works on 32-bit systems.
FossilOrigin-Name:
8d0b11c96e15556dd65ced05708a832aef134e69
drh [Tue, 10 Mar 2015 13:50:18 +0000 (13:50 +0000)]
Revise test cases in malloc5.test to accommodate varying allocation
sizes returned by some system malloc() implementations.
FossilOrigin-Name:
fbae6bafd74d8da9c72be5f562a62f80b01cc846
drh [Mon, 9 Mar 2015 13:24:46 +0000 (13:24 +0000)]
Merge recent trunk enhancements into the ota-update branch.
FossilOrigin-Name:
5489cb68921f62f10d832adbc4d19ea8c6c5da50
drh [Mon, 9 Mar 2015 13:07:45 +0000 (13:07 +0000)]
Merge recent trunk enhancements into the sessions branch.
FossilOrigin-Name:
68c8937e83b770d5ec6b1855c1bde81057c11b5f
drh [Mon, 9 Mar 2015 13:01:02 +0000 (13:01 +0000)]
Fix the LIKE optimization so that it works even if there are additional
range contraints on the column that is subject to the LIKE or GLOB.
FossilOrigin-Name:
984c3fd5261619fb542a5a95dab37707b5d79dbf
drh [Mon, 9 Mar 2015 12:11:56 +0000 (12:11 +0000)]
Always use LIKE optimization range constraints in pairs.
FossilOrigin-Name:
0e02dc94fd1bb891d0edd1e34b57e923b17712a7
drh [Mon, 9 Mar 2015 10:40:48 +0000 (10:40 +0000)]
Increase the version number to 3.8.9
FossilOrigin-Name:
e5da5e7d5dc5a3438ced23f1ee83e695abc29c45
drh [Sat, 7 Mar 2015 20:32:49 +0000 (20:32 +0000)]
Fix another problem with the LIKE optimization.
FossilOrigin-Name:
465bfc72d252f94778248253142faeba78ceea02
dan [Sat, 7 Mar 2015 15:46:41 +0000 (15:46 +0000)]
Fix some compiler warnings caused by signed/unsigned pointer conversions.
FossilOrigin-Name:
cccee7b5b1e84523f1c549d3052fd170e32bde80
drh [Sat, 7 Mar 2015 13:56:48 +0000 (13:56 +0000)]
Fix the LIKE optimization so that it finds BLOB entries in addition to text
entries. Ticket [
05f43be8fdda9f ].
FossilOrigin-Name:
74cb0b032fcf598537fae04412771450124ae712
drh [Sat, 7 Mar 2015 12:58:52 +0000 (12:58 +0000)]
New test cases for LIKE and GLOB with BLOB left-hand side values.
FossilOrigin-Name:
50fa3c5fae90bd3b2f4121e99ab52d79963a6fda
dan [Sat, 7 Mar 2015 11:50:31 +0000 (11:50 +0000)]
Fix the bm25() function so that it multiplies scores by -1 before returning them. This means better matches have a lower numerical score, so "ORDER BY rank" (not "ORDER BY rank DESC") does what you want.
FossilOrigin-Name:
3ee7b5a9f987c269251620ae7cc0fc7876b58ee5
drh [Sat, 7 Mar 2015 03:02:38 +0000 (03:02 +0000)]
Remove some code that is commented out.
FossilOrigin-Name:
55ff429177acfdab056a16a67361a5381115c6c7
drh [Sat, 7 Mar 2015 02:51:59 +0000 (02:51 +0000)]
Fix problems with reverse order sorting and indexes in the LIKE optimization.
FossilOrigin-Name:
564b8fe79475d7584a21078e6098840b8ce6a6e1
drh [Sat, 7 Mar 2015 00:57:37 +0000 (00:57 +0000)]
Refactor some jump opcodes in the VDBE. Add JumpZeroIncr and DecrJumpZero.
Fix the LIKE optimization to work with DESC sort order.
FossilOrigin-Name:
26cb5145bf52f8c3fffa8c69b6c24aee4d974883
drh [Fri, 6 Mar 2015 20:49:52 +0000 (20:49 +0000)]
Test cases added. Comments fixed. Proposed solution for
ticket [
05f43be8fdda9fbd9 ].
FossilOrigin-Name:
6b993bd54035b67f4d84941e3f444ca79b7feee1
drh [Fri, 6 Mar 2015 19:47:38 +0000 (19:47 +0000)]
Fix the LIKE optimization even when comparing mixed-case BLOBs.
FossilOrigin-Name:
a58aafdb4e1422b6a8ffc07a67984928bbedf919
drh [Fri, 6 Mar 2015 16:45:16 +0000 (16:45 +0000)]
The LIKE optimization must be applied twice, once for strings and a second
time for BLOBs. Ticket [
05f43be8fdda9f ]. This check-in is a proof-of-concept
of how that might be done.
FossilOrigin-Name:
5757e803cb5759b476bbc6453c58340089611420
drh [Fri, 6 Mar 2015 04:37:26 +0000 (04:37 +0000)]
Clearification of some documentation text. Added requirements marks.
FossilOrigin-Name:
8c1e85aab9e0d90726057e25e2ea0663341c070f
drh [Fri, 6 Mar 2015 03:31:58 +0000 (03:31 +0000)]
Clarification of documentation on sqlite3_backup.
FossilOrigin-Name:
31d5e9b42e5c96207187dcde1cbbb1e79f26fca2
dan [Thu, 5 Mar 2015 16:21:20 +0000 (16:21 +0000)]
Fix some problems with OTA and empty target databases, or target databases with the wrong set of tables. Also add SQLITE_FCNTL_VFSNAME support to the OTA VFS.
FossilOrigin-Name:
46119e8d8e391d8dea844352521b58415f7365b1
drh [Thu, 5 Mar 2015 15:34:15 +0000 (15:34 +0000)]
New test cases and requirements marks for PRAGMA index_info, index_xinfo,
and index_list.
FossilOrigin-Name:
e5b13634d9794e4c75378cea89b64c5ecc5aa3e5
drh [Thu, 5 Mar 2015 14:29:02 +0000 (14:29 +0000)]
Revert "PRAGMA index_info" to output only three columns, for complete
compatibility with prior versions. The new "PRAGMA index_xinfo" can be
used to get the extra information in 4th, 5th, and 6th columns.
FossilOrigin-Name:
fc543c2c5ced30a7dc3a05b0c1ad80fdc838df8e
dan [Thu, 5 Mar 2015 14:07:25 +0000 (14:07 +0000)]
Add comments to sqlite3ota.h to make it clear that passing NULL in place of a parent VFS name to sqlite3ota_create_vfs() causes the new VFS to use the system default as its parent.
FossilOrigin-Name:
158c1a48818a9abc001b9ea547167c2624a7bad3
dan [Thu, 5 Mar 2015 13:43:21 +0000 (13:43 +0000)]
Fix a typo in sqlite3ota.h.
FossilOrigin-Name:
04087dec4c3db5f322eca289585525b7267ed4f8
drh [Thu, 5 Mar 2015 01:29:51 +0000 (01:29 +0000)]
New requirements marks on compound SELECT statements.
FossilOrigin-Name:
e7991bc510f63f3594603a91f6f3b32e94d90e72
drh [Wed, 4 Mar 2015 23:14:14 +0000 (23:14 +0000)]
New requirements marks on INSERT and INDEXED BY and on some sqlite3_config()
options.
FossilOrigin-Name:
c298ea0bd90d63673435bf8ceafbaeba3db6187d
mistachkin [Wed, 4 Mar 2015 20:18:55 +0000 (20:18 +0000)]
Fix harmless compiler warning.
FossilOrigin-Name:
580dae4615353d73c7d096107571bd60fec5b0f2
drh [Wed, 4 Mar 2015 15:35:07 +0000 (15:35 +0000)]
Refinement to the wording of the documentation on depreciated functions.
FossilOrigin-Name:
04a59d6f7ecbf769bd127a9071348b51ce8463f8
drh [Wed, 4 Mar 2015 15:25:03 +0000 (15:25 +0000)]
Remove a surplus </dl> mark in the documentation. No changes to code.
FossilOrigin-Name:
5450e4650b2dedf3626bbe5a64b680dbd4011173
dan [Wed, 4 Mar 2015 08:29:24 +0000 (08:29 +0000)]
Fix a couple of build problems.
FossilOrigin-Name:
a5d5468c0509d129e198bf9432190ee07cedb7af
drh [Tue, 3 Mar 2015 20:42:01 +0000 (20:42 +0000)]
Clean up #ifdef logic dealing with VxWorks in os_unix.c. On VxWorks,
automatically use posix advisory locking if it is available or fall back
to named semaphore locking if not.
FossilOrigin-Name:
ac8c7ca3db14ec19be1f19cfaf14b47fdda0c9ef
drh [Tue, 3 Mar 2015 19:56:20 +0000 (19:56 +0000)]
Fix compiler warnings when compiling under VxWorks 7.
FossilOrigin-Name:
55c21521a64703d7050c7f8975538f4cfae95eb7
drh [Tue, 3 Mar 2015 16:58:56 +0000 (16:58 +0000)]
Enhance SQLITE_ALLOW_URI_AUTHORITITY to elide //localhost/ and to deal
with dodgy URIs that contain too many "/" characters.
FossilOrigin-Name:
39b566a2d0916c57f3fac756c6d6af149b44781d
drh [Tue, 3 Mar 2015 14:00:11 +0000 (14:00 +0000)]
Fix over-length source code lines in the main.c source file.
FossilOrigin-Name:
debba6f161090bf9db1458fb3767d80d8362a73f
drh [Mon, 2 Mar 2015 22:06:43 +0000 (22:06 +0000)]
Changes so that the amalgamation and the command-line shell build without
modifications on VxWorks 7. Still gives a few compiler warnings, and still
mostly untested on that platform.
FossilOrigin-Name:
7d92f1f11ee69b0ba7d5a48f0611016d77d41c78
drh [Mon, 2 Mar 2015 17:25:00 +0000 (17:25 +0000)]
Ensure that automatic indexes are *not* considered when doing the the subqueries
of the OR-optimization.
FossilOrigin-Name:
17890292cf1776b3334fca7eff693cdbea458304
drh [Sat, 28 Feb 2015 14:03:35 +0000 (14:03 +0000)]
In the command-line shell, the inability to read ~/.sqliterc is no longer
a fatal error. A warning is issued, but processing continues.
FossilOrigin-Name:
6bf6246306e6fd490766c0a05932be52a0ed66f2
drh [Sat, 28 Feb 2015 01:04:27 +0000 (01:04 +0000)]
More test cases and requirements marks for pragmas.
FossilOrigin-Name:
fc51037cd97063069620213a62efdeff5d898706
drh [Fri, 27 Feb 2015 21:53:35 +0000 (21:53 +0000)]
Remove all references to SQLITE_DEFAULT_TEMP_CACHE_SIZE. Add requirements
marks related to cache_size changing.
FossilOrigin-Name:
766ad65025a9d5815300978e6e349f5af5db6012
drh [Fri, 27 Feb 2015 20:28:08 +0000 (20:28 +0000)]
New requirements marks and a few new test cases to go with them. No changes
to code.
FossilOrigin-Name:
8c2b29d9acb92d47f4deec21a7c2dca52db63345
mistachkin [Fri, 27 Feb 2015 19:40:08 +0000 (19:40 +0000)]
Merge updates from trunk.
FossilOrigin-Name:
acf7684323da4dc3aaf9746bd13b0f56054a17dd
dan [Fri, 27 Feb 2015 09:41:10 +0000 (09:41 +0000)]
Further minor optimizations to flushing fts5 data to disk.
FossilOrigin-Name:
a07dcca9ef3821a6719ef9dbbc8ed861fa005035
dan [Fri, 27 Feb 2015 07:23:26 +0000 (07:23 +0000)]
Fix suffix and prefix compression of terms in top-level fts5 segments. And a crash that could follow an OOM condition.
FossilOrigin-Name:
bb104b3646c6f07ed002be7360b08433ee7980d4
drh [Fri, 27 Feb 2015 00:33:15 +0000 (00:33 +0000)]
Add a couple of requirements marks.
FossilOrigin-Name:
d70b0fd4c94f2b70cf31c2ab9ef7a2fb2e71c182
mistachkin [Thu, 26 Feb 2015 21:04:44 +0000 (21:04 +0000)]
Fix potential memory leaks in the misc 'compress' extension.
FossilOrigin-Name:
3bc34fd427d9d7819cd9740237b1f5d4180341fa
dan [Thu, 26 Feb 2015 20:49:09 +0000 (20:49 +0000)]
Optimize copying data from fts5 in-memory hash tables to top level segments.
FossilOrigin-Name:
8e3ca6323a2beab5f04250e24ae15b159d2aa0ac
drh [Thu, 26 Feb 2015 16:40:41 +0000 (16:40 +0000)]
Update a requirements mark to reflect a change of wording in the documentation.
No changes to code.
FossilOrigin-Name:
3038d0169bfc3f63d64c7fef20ab2323d032655f
drh [Thu, 26 Feb 2015 16:32:33 +0000 (16:32 +0000)]
Fix a real bug (in test code) that was introduced while trying to eliminate
harmless compiler warnings from OpenBSD (see check-in [
10321910990195878c ]).
FossilOrigin-Name:
a62ba58c737656fae620d9cdaaae299104ac06f6
dan [Thu, 26 Feb 2015 14:54:03 +0000 (14:54 +0000)]
Fix an fts5 bug in large incremental merges.
FossilOrigin-Name:
208e3cb6b6dc8c7d824b64dec2034004c9fcbba5
drh [Thu, 26 Feb 2015 02:33:52 +0000 (02:33 +0000)]
Simplifications to the description of the nByte parameter to sqlite3_prepare()
and friends.
FossilOrigin-Name:
4bee8295e36fb61f903210b6d052ee9b8fb3b6d0
dan [Wed, 25 Feb 2015 19:24:37 +0000 (19:24 +0000)]
Instead of the 4-byte fields, use regular varints for the poslist-size field in fts5_hash.c.
FossilOrigin-Name:
7eb022d7e5fdb180af823c82c47c938e4a7a355f
drh [Wed, 25 Feb 2015 14:25:31 +0000 (14:25 +0000)]
Make sure the sqlite3_mutex.id field is initialized in the Win32
mutex implementation, even when SQLITE_DEBUG is turned off.
FossilOrigin-Name:
6d132e7a224ee68b5cefe9222944aac5760ffc20
drh [Wed, 25 Feb 2015 14:02:53 +0000 (14:02 +0000)]
Merge the latest trunk fixes into the sessions branch.
FossilOrigin-Name:
131a2d3116436ca6304777c9c5d46b7c4051d949
drh [Wed, 25 Feb 2015 13:48:10 +0000 (13:48 +0000)]
Add support for the linenoise command-line editing library in shell.c.
FossilOrigin-Name:
03bbb947192b0c28d960604eae12e5fc2fa6e74e
dan [Wed, 25 Feb 2015 10:54:53 +0000 (10:54 +0000)]
Add support for linenoise to shell.c.
FossilOrigin-Name:
f7f2598c376a27a86acc21578779c03d0016cd30
mistachkin [Wed, 25 Feb 2015 01:06:08 +0000 (01:06 +0000)]
When cleaning with MSVC, prevent superfluous output regarding 'missing' files and directories.
FossilOrigin-Name:
034c16bd24ddca363946a4b8751418469d890d2a
drh [Wed, 25 Feb 2015 00:24:41 +0000 (00:24 +0000)]
Remove an always-false conditional from constructAutomaticIndex(). Put an
assert() in its place to prove that the conditional is always false.
FossilOrigin-Name:
3af300bf6f5bee0b51a4c1ac1dc3879771378bff
dan [Tue, 24 Feb 2015 20:10:49 +0000 (20:10 +0000)]
Prevent partial indexes on the table on the left hand side of a LEFT JOIN from being incorrectly qualified by a constraint in the ON clause of the join. This relaxes the rule introduced by the previous commit (as the partial indexes on the table on the rhs of the LEFT JOIN may now be qualified by terms within the ON clause).
FossilOrigin-Name:
1d6fb43a576d335d2717e94d28385178c23c81a1
drh [Tue, 24 Feb 2015 20:04:59 +0000 (20:04 +0000)]
Make sure partial indexes are not qualified incorrectly by a constraint that
is inside the ON clause of a LEFT JOIN. Fix for ticket [
2326c258d02ead33 ].
FossilOrigin-Name:
491cfe9b3f87f5fcc579f953745012cea8d64db7
drh [Tue, 24 Feb 2015 18:39:00 +0000 (18:39 +0000)]
More test cases to help ensure that partial indexes do not get used if their
qualifing constraint is inside the ON clause of a LEFT JOIN.
FossilOrigin-Name:
c6399958a17e8b7c1798a9240fb06bffc774b332
drh [Tue, 24 Feb 2015 16:48:59 +0000 (16:48 +0000)]
This additional fix prevents a partial index from being qualified for use
if the constraint that qualifies the partial index is part of the ON clause of
a LEFT JOIN.
FossilOrigin-Name:
1a1516e4da26dcee35e6fbb6604ce252faf3d116
drh [Tue, 24 Feb 2015 16:05:54 +0000 (16:05 +0000)]
Make sure partial automatic indexes are not based on terms in the ON clause
of a LEFT JOIN. Fix for ticket [
2326c258d02ead3 ].
FossilOrigin-Name:
c0f4e308a508183b72ceda447dc3ac778cb85b9f
dan [Mon, 23 Feb 2015 20:09:50 +0000 (20:09 +0000)]
Fix building with ENABLE_OTA and OMIT_LOAD_EXTENSION.
FossilOrigin-Name:
d6d21ff55228d3ffe6cdbb5755645b147806a1da
dan [Mon, 23 Feb 2015 16:17:46 +0000 (16:17 +0000)]
Merge latest trunk changes with this branch.
FossilOrigin-Name:
e5ca79d2d3c066252b0baa4f76ddbe0ee3b14cb6
dan [Mon, 23 Feb 2015 15:41:48 +0000 (15:41 +0000)]
Change SQLITE_FCNTL_ZIPVFS_PAGER to SQLITE_FCNTL_ZIPVFS.
FossilOrigin-Name:
f7865b942834dd2f6b865336e08ba1adbf20612a
dan [Mon, 23 Feb 2015 15:02:13 +0000 (15:02 +0000)]
Update the sqlite3ota_db() API to account for the fact that each OTA handle now uses two SQLite database handles.
FossilOrigin-Name:
ef08ecceb7e237a01af6cc3141dccee09ffe9ae3
dan [Mon, 23 Feb 2015 12:22:55 +0000 (12:22 +0000)]
Improve tests for resuming ota updates following power failures. Fix a problem revealed by the same.
FossilOrigin-Name:
1cb675e5392f179516d8e7a52760922a6c7df4d0