]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
11 years agoAllow whereShortCut() to use the PRIMARY KEY index of a WITHOUT ROWID table to optimi...
dan [Wed, 18 Mar 2015 20:03:27 +0000 (20:03 +0000)] 
Allow whereShortCut() to use the PRIMARY KEY index of a WITHOUT ROWID table to optimize a vector of "IS" operators in a WHERE clause.

FossilOrigin-Name: 52e73eeca063bb30092ce600068bf487641399a0

11 years agoClarify that OTA is unable to update or delete rows with NULL values in primary key...
dan [Wed, 18 Mar 2015 19:04:40 +0000 (19:04 +0000)] 
Clarify that OTA is unable to update or delete rows with NULL values in primary key fields.

FossilOrigin-Name: 2e7c1e0a0d128d9bac119692b2505b5ed0abe87a

11 years agoMerge recent trunk enhancements into the ota-update branch.
drh [Mon, 9 Mar 2015 13:24:46 +0000 (13:24 +0000)] 
Merge recent trunk enhancements into the ota-update branch.

FossilOrigin-Name: 5489cb68921f62f10d832adbc4d19ea8c6c5da50

11 years agoFix the LIKE optimization so that it works even if there are additional
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

11 years agoAlways use LIKE optimization range constraints in pairs. like-opt-fix
drh [Mon, 9 Mar 2015 12:11:56 +0000 (12:11 +0000)] 
Always use LIKE optimization range constraints in pairs.

FossilOrigin-Name: 0e02dc94fd1bb891d0edd1e34b57e923b17712a7

11 years agoIncrease the version number to 3.8.9
drh [Mon, 9 Mar 2015 10:40:48 +0000 (10:40 +0000)] 
Increase the version number to 3.8.9

FossilOrigin-Name: e5da5e7d5dc5a3438ced23f1ee83e695abc29c45

11 years agoFix another problem with the LIKE optimization.
drh [Sat, 7 Mar 2015 20:32:49 +0000 (20:32 +0000)] 
Fix another problem with the LIKE optimization.

FossilOrigin-Name: 465bfc72d252f94778248253142faeba78ceea02

11 years agoFix the LIKE optimization so that it finds BLOB entries in addition to text
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

11 years agoNew test cases for LIKE and GLOB with BLOB left-hand side values.
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

11 years agoRemove some code that is commented out.
drh [Sat, 7 Mar 2015 03:02:38 +0000 (03:02 +0000)] 
Remove some code that is commented out.

FossilOrigin-Name: 55ff429177acfdab056a16a67361a5381115c6c7

11 years agoFix problems with reverse order sorting and indexes in the LIKE optimization.
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

11 years agoRefactor some jump opcodes in the VDBE. Add JumpZeroIncr and DecrJumpZero.
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

11 years agoTest cases added. Comments fixed. Proposed solution for
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

11 years agoFix the LIKE optimization even when comparing mixed-case BLOBs.
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

11 years agoThe LIKE optimization must be applied twice, once for strings and a second
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

11 years agoClearification of some documentation text. Added requirements marks.
drh [Fri, 6 Mar 2015 04:37:26 +0000 (04:37 +0000)] 
Clearification of some documentation text.  Added requirements marks.

FossilOrigin-Name: 8c1e85aab9e0d90726057e25e2ea0663341c070f

11 years agoClarification of documentation on sqlite3_backup.
drh [Fri, 6 Mar 2015 03:31:58 +0000 (03:31 +0000)] 
Clarification of documentation on sqlite3_backup.

FossilOrigin-Name: 31d5e9b42e5c96207187dcde1cbbb1e79f26fca2

11 years agoFix some problems with OTA and empty target databases, or target databases with the...
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

11 years agoNew test cases and requirements marks for PRAGMA index_info, index_xinfo,
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

11 years agoRevert "PRAGMA index_info" to output only three columns, for complete
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

11 years agoAdd comments to sqlite3ota.h to make it clear that passing NULL in place of a parent...
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

11 years agoFix a typo in sqlite3ota.h.
dan [Thu, 5 Mar 2015 13:43:21 +0000 (13:43 +0000)] 
Fix a typo in sqlite3ota.h.

FossilOrigin-Name: 04087dec4c3db5f322eca289585525b7267ed4f8

11 years agoNew requirements marks on compound SELECT statements.
drh [Thu, 5 Mar 2015 01:29:51 +0000 (01:29 +0000)] 
New requirements marks on compound SELECT statements.

FossilOrigin-Name: e7991bc510f63f3594603a91f6f3b32e94d90e72

11 years agoNew requirements marks on INSERT and INDEXED BY and on some sqlite3_config()
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

11 years agoFix harmless compiler warning.
mistachkin [Wed, 4 Mar 2015 20:18:55 +0000 (20:18 +0000)] 
Fix harmless compiler warning.

FossilOrigin-Name: 580dae4615353d73c7d096107571bd60fec5b0f2

11 years agoRefinement to the wording of the documentation on depreciated functions.
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

11 years agoRemove a surplus </dl> mark in the documentation. No changes to code.
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

11 years agoClean up #ifdef logic dealing with VxWorks in os_unix.c. On VxWorks,
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

11 years agoFix compiler warnings when compiling under VxWorks 7.
drh [Tue, 3 Mar 2015 19:56:20 +0000 (19:56 +0000)] 
Fix compiler warnings when compiling under VxWorks 7.

FossilOrigin-Name: 55c21521a64703d7050c7f8975538f4cfae95eb7

11 years agoEnhance SQLITE_ALLOW_URI_AUTHORITITY to elide //localhost/ and to deal
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

11 years agoFix over-length source code lines in the main.c source file.
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

11 years agoChanges so that the amalgamation and the command-line shell build without
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

11 years agoEnsure that automatic indexes are *not* considered when doing the the subqueries
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

11 years agoIn the command-line shell, the inability to read ~/.sqliterc is no longer
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

11 years agoMore test cases and requirements marks for pragmas.
drh [Sat, 28 Feb 2015 01:04:27 +0000 (01:04 +0000)] 
More test cases and requirements marks for pragmas.

FossilOrigin-Name: fc51037cd97063069620213a62efdeff5d898706

11 years agoRemove all references to SQLITE_DEFAULT_TEMP_CACHE_SIZE. Add requirements
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

11 years agoNew requirements marks and a few new test cases to go with them. No changes
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

11 years agoAdd a couple of requirements marks.
drh [Fri, 27 Feb 2015 00:33:15 +0000 (00:33 +0000)] 
Add a couple of requirements marks.

FossilOrigin-Name: d70b0fd4c94f2b70cf31c2ab9ef7a2fb2e71c182

11 years agoFix potential memory leaks in the misc 'compress' extension.
mistachkin [Thu, 26 Feb 2015 21:04:44 +0000 (21:04 +0000)] 
Fix potential memory leaks in the misc 'compress' extension.

FossilOrigin-Name: 3bc34fd427d9d7819cd9740237b1f5d4180341fa

11 years agoUpdate a requirements mark to reflect a change of wording in the documentation.
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

11 years agoFix a real bug (in test code) that was introduced while trying to eliminate
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

11 years agoSimplifications to the description of the nByte parameter to sqlite3_prepare()
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

11 years agoMake sure the sqlite3_mutex.id field is initialized in the Win32
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

11 years agoAdd support for the linenoise command-line editing library in shell.c.
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

11 years agoAdd support for linenoise to shell.c. linenoise
dan [Wed, 25 Feb 2015 10:54:53 +0000 (10:54 +0000)] 
Add support for linenoise to shell.c.

FossilOrigin-Name: f7f2598c376a27a86acc21578779c03d0016cd30

11 years agoWhen cleaning with MSVC, prevent superfluous output regarding 'missing' files and...
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

11 years agoRemove an always-false conditional from constructAutomaticIndex(). Put an
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

11 years agoPrevent partial indexes on the table on the left hand side of a LEFT JOIN from being...
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

11 years agoMake sure partial indexes are not qualified incorrectly by a constraint that
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

11 years agoMore test cases to help ensure that partial indexes do not get used if their tkt-2326c258
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

11 years agoThis additional fix prevents a partial index from being qualified for use
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

11 years agoMake sure partial automatic indexes are not based on terms in the ON clause
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

11 years agoFix building with ENABLE_OTA and OMIT_LOAD_EXTENSION.
dan [Mon, 23 Feb 2015 20:09:50 +0000 (20:09 +0000)] 
Fix building with ENABLE_OTA and OMIT_LOAD_EXTENSION.

FossilOrigin-Name: d6d21ff55228d3ffe6cdbb5755645b147806a1da

11 years agoMerge latest trunk changes with this branch.
dan [Mon, 23 Feb 2015 16:17:46 +0000 (16:17 +0000)] 
Merge latest trunk changes with this branch.

FossilOrigin-Name: e5ca79d2d3c066252b0baa4f76ddbe0ee3b14cb6

11 years agoChange SQLITE_FCNTL_ZIPVFS_PAGER to SQLITE_FCNTL_ZIPVFS.
dan [Mon, 23 Feb 2015 15:41:48 +0000 (15:41 +0000)] 
Change SQLITE_FCNTL_ZIPVFS_PAGER to SQLITE_FCNTL_ZIPVFS.

FossilOrigin-Name: f7865b942834dd2f6b865336e08ba1adbf20612a

11 years agoUpdate the sqlite3ota_db() API to account for the fact that each OTA handle now uses...
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

11 years agoImprove tests for resuming ota updates following power failures. Fix a problem reveal...
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

11 years agoFix some problems with resuming ota updates if saving the state is interrupted by...
dan [Sat, 21 Feb 2015 20:08:25 +0000 (20:08 +0000)] 
Fix some problems with resuming ota updates if saving the state is interrupted by a power failure or system crash.

FossilOrigin-Name: 6d5ed70d0dbabe9c2ab2f2dba47747d17d937781

11 years agoUpdate document on sqlite3_mprintf() and related functions. Discuss the
drh [Sat, 21 Feb 2015 15:42:57 +0000 (15:42 +0000)] 
Update document on sqlite3_mprintf() and related functions.  Discuss the
%w format and point out that obscure ANSI-C formats are not supported.
No changes to code.

FossilOrigin-Name: f8917ba4d917bc762b3b252466ab72a8a70dc0d8

11 years agoFix a compiler warning associated with USE_PREAD64.
drh [Sat, 21 Feb 2015 00:56:05 +0000 (00:56 +0000)] 
Fix a compiler warning associated with USE_PREAD64.

FossilOrigin-Name: c299e55a661c04f71ab43cb8aed04f8ece6e0567

11 years agoFix over-length source code lines in os_unix.c.
drh [Sat, 21 Feb 2015 00:49:00 +0000 (00:49 +0000)] 
Fix over-length source code lines in os_unix.c.

FossilOrigin-Name: 7560a9fa50236ecaa0617f1ab5bb5662f4a61c72

11 years agoKeep track of the optimal number of reserved bytes (by looking at reserve
drh [Sat, 21 Feb 2015 00:19:25 +0000 (00:19 +0000)] 
Keep track of the optimal number of reserved bytes (by looking at reserve
byte requests in calls to sqlite3BtreeSetPageSize()) and then change the
reserve byte count to the optimal when doing a VACUUM or when using the
backup API.

FossilOrigin-Name: 28c2b726285ea88b334acfd6390a057d2d244838

11 years agoAdd some missing comments and fix other minor code issues in sqlite3ota.c.
dan [Fri, 20 Feb 2015 14:36:16 +0000 (14:36 +0000)] 
Add some missing comments and fix other minor code issues in sqlite3ota.c.

FossilOrigin-Name: 718fd8b673d6557dd0eaad03e6a3332b5490afbf

11 years agoEnsure the mutex used to protect the linked list of all main database files opened...
dan [Thu, 19 Feb 2015 19:59:35 +0000 (19:59 +0000)] 
Ensure the mutex used to protect the linked list of all main database files opened by a single ota vfs is allocated.

FossilOrigin-Name: 9c8682d6650a94e11f9bec5baff69ed9668874fa

11 years agoUpdate various documentation comments in sqlite3ota.c and sqlite3ota.h.
dan [Thu, 19 Feb 2015 18:06:40 +0000 (18:06 +0000)] 
Update various documentation comments in sqlite3ota.c and sqlite3ota.h.

FossilOrigin-Name: 60e0a46b82dd9c704e8aa977d1ccdd73d388422f

11 years agoFix errors in the EBCDIC upper-case to lower-case translation table.
drh [Thu, 19 Feb 2015 17:16:14 +0000 (17:16 +0000)] 
Fix errors in the EBCDIC upper-case to lower-case translation table.

FossilOrigin-Name: 905009f6723040d4da4776b6fd07e83c628dea2b

11 years agoRemove a redundant call to statfs() in the xOpen() method of the unix VFS.
drh [Thu, 19 Feb 2015 16:12:04 +0000 (16:12 +0000)] 
Remove a redundant call to statfs() in the xOpen() method of the unix VFS.
Also fix an unused local variable warning.

FossilOrigin-Name: 8215727dda384351765ab1d5c53ea80775b4ec65

11 years agoMerge latest trunk changes with this branch.
dan [Thu, 19 Feb 2015 14:41:24 +0000 (14:41 +0000)] 
Merge latest trunk changes with this branch.

FossilOrigin-Name: 6f5888a5e430feb5d9a50009a2eb103d9945bd22

11 years agoAdd tests for a couple of previously untested branches in the ota code.
dan [Thu, 19 Feb 2015 13:36:02 +0000 (13:36 +0000)] 
Add tests for a couple of previously untested branches in the ota code.

FossilOrigin-Name: a3c1bc5d5e3f4b197f48cbbc240608e94bfc2b45

11 years agoMove the os_unix.c file closer to apple-osx.
drh [Thu, 19 Feb 2015 02:43:02 +0000 (02:43 +0000)] 
Move the os_unix.c file closer to apple-osx.

FossilOrigin-Name: 81f242e338d6122e27aad86986bfd140012c6582

11 years agoFirst small steps toward brining trunk and apple-osx closer together.
drh [Thu, 19 Feb 2015 00:29:11 +0000 (00:29 +0000)] 
First small steps toward brining trunk and apple-osx closer together.

FossilOrigin-Name: 28284ccc0d7301503f6d2d7bee9093738d52e331

11 years agoAdd new file ota12.test, containing tests for applying ota updates to live databases...
dan [Wed, 18 Feb 2015 20:17:14 +0000 (20:17 +0000)] 
Add new file ota12.test, containing tests for applying ota updates to live databases with other active reader/writer clients.

FossilOrigin-Name: 0864d127fe42fc0db7ab30a3ebf74c0114095648

11 years agoAdd ota tests to increase code coverage. Fix some minor issues in error handling...
dan [Wed, 18 Feb 2015 20:16:15 +0000 (20:16 +0000)] 
Add ota tests to increase code coverage. Fix some minor issues in error handling within the ota code.

FossilOrigin-Name: 2b10c5d2b8b8b535d3dec0c68a777db16268e1e5

11 years agoFix a problem with OTA updates in the presence of database readers.
dan [Wed, 18 Feb 2015 17:40:05 +0000 (17:40 +0000)] 
Fix a problem with OTA updates in the presence of database readers.

FossilOrigin-Name: 144bb29ffcbfe96dc10c0224113e73a80e89314b

11 years agoImprove test coverage of ota code a bit.
dan [Tue, 17 Feb 2015 20:49:42 +0000 (20:49 +0000)] 
Improve test coverage of ota code a bit.

FossilOrigin-Name: a438fa6c9ad2fb1d78ac747172d07455d6381387

11 years agoAdd extra tests and fixes for ota.
dan [Mon, 16 Feb 2015 21:13:19 +0000 (21:13 +0000)] 
Add extra tests and fixes for ota.

FossilOrigin-Name: e0b7151962fedbcac975f2216fd6b33b995a8945

11 years agoAdd further tests and fixes for ota.
dan [Mon, 16 Feb 2015 11:48:34 +0000 (11:48 +0000)] 
Add further tests and fixes for ota.

FossilOrigin-Name: 62dc1fffc38cb157c15105098749b6dd0198eb84

11 years agoMove tcl test code from sqlite3ota.c to new file ext/ota/test_ota.c.
dan [Mon, 16 Feb 2015 06:27:37 +0000 (06:27 +0000)] 
Move tcl test code from sqlite3ota.c to new file ext/ota/test_ota.c.

FossilOrigin-Name: f20779a6e890ba73bfaa904cefcf3a029b01fed4

11 years agoChange the way the "incremental checkpoint" function of OTA works in order to reduce...
dan [Sat, 14 Feb 2015 18:58:22 +0000 (18:58 +0000)] 
Change the way the "incremental checkpoint" function of OTA works in order to reduce the effect on the SQLite core code.

FossilOrigin-Name: b64a11a754dc56f3406d3b703531ebe9e4af4908

11 years agoImprovements to SQLITE_ENABLE_API_ARMOR.
drh [Fri, 13 Feb 2015 16:36:14 +0000 (16:36 +0000)] 
Improvements to SQLITE_ENABLE_API_ARMOR.

FossilOrigin-Name: 823ad40ccb5b51aaa0d5a48da63b465df9d0649a

11 years agoMake sure the prepared statement auto-resets on extended error codes
drh [Fri, 13 Feb 2015 12:05:56 +0000 (12:05 +0000)] 
Make sure the prepared statement auto-resets on extended error codes
of SQLITE_BUSY and SQLITE_LOCKED even when compiled using
SQLITE_OMIT_AUTORESET.

FossilOrigin-Name: 3c6ca414879feb1f5d31d5fd95a1737530aca624

11 years agoFor the shell '.import' command, make sure the last column value present is considere...
mistachkin [Thu, 12 Feb 2015 22:45:25 +0000 (22:45 +0000)] 
For the shell '.import' command, make sure the last column value present is considered before NULL filling any missing ones.

FossilOrigin-Name: 9c5bcad1f7d04c16f3ec7fc483280059ae93961b

11 years agoMerge the ota-update-no-pager_ota_mode branch into this one.
dan [Wed, 11 Feb 2015 17:05:17 +0000 (17:05 +0000)] 
Merge the ota-update-no-pager_ota_mode branch into this one.

FossilOrigin-Name: 71887cd9b38def398d48eaf0ec34eeac3c7c5177

11 years agoMerge latest trunk changes with this branch. ota-update-no-pager_ota_mode
dan [Wed, 11 Feb 2015 16:54:48 +0000 (16:54 +0000)] 
Merge latest trunk changes with this branch.

FossilOrigin-Name: 0b63e8dcbaec5043e353734e684c2a46552a3409

11 years agoEnsure that an error is reported if an attempt is made to update a wal mode database...
dan [Wed, 11 Feb 2015 16:25:27 +0000 (16:25 +0000)] 
Ensure that an error is reported if an attempt is made to update a wal mode database via ota.

FossilOrigin-Name: 6fc5d4d26a603b3906f02ceea0f507780d0c35eb

11 years agoFurther tweaks to work with zipvfs.
dan [Tue, 10 Feb 2015 20:00:38 +0000 (20:00 +0000)] 
Further tweaks to work with zipvfs.

FossilOrigin-Name: 0f152416be792457c52417aeb531ac860d12a5bd

11 years agoAdd documentation and test cases for sqlite3ota_create_vfs(). Also code to detect...
dan [Tue, 10 Feb 2015 17:08:17 +0000 (17:08 +0000)] 
Add documentation and test cases for sqlite3ota_create_vfs(). Also code to detect errors in zipvfs/ota setup.

FossilOrigin-Name: e729668168f00325459bc2e9b515aa95e57f2754

11 years agoAdd the sqlite3ota_create_vfs() and sqlite3ota_destroy_vfs() functions.
dan [Mon, 9 Feb 2015 20:07:35 +0000 (20:07 +0000)] 
Add the sqlite3ota_create_vfs() and sqlite3ota_destroy_vfs() functions.

FossilOrigin-Name: 96443ecb6909141aa621a16e628455857d036482

11 years agoPropagate COLLATE operators upward through function calls and CASE operations.
drh [Mon, 9 Feb 2015 18:28:03 +0000 (18:28 +0000)] 
Propagate COLLATE operators upward through function calls and CASE operations.
And do not flatten an aggregate subquery into a query that uses other
subqueries.  Fixes for tickets [ca0d20b6cdddec5] and
[2f7170d73bf9], respectively.

FossilOrigin-Name: 24e78b8d65734a6a8ae21a20542cd1839e756fb1

11 years agoFix WITHOUT ROWID table handing in sqlite3_analyzer.
dan [Mon, 9 Feb 2015 17:46:11 +0000 (17:46 +0000)] 
Fix WITHOUT ROWID table handing in sqlite3_analyzer.

FossilOrigin-Name: 937e0fe7008c0f76b6a584180df9a9457166a0b1

11 years agoAdd test cases for the query flattener fix for tkt-2f7170d7
drh [Mon, 9 Feb 2015 16:34:33 +0000 (16:34 +0000)] 
Add test cases for the query flattener fix for
ticket [2f7170d73bf9abf8].

FossilOrigin-Name: dd8f7f7511639a1baa41a6ff2e359dc6f1e66943

11 years agoPropagate the COLLATE operator upward through function calls.
drh [Mon, 9 Feb 2015 16:09:34 +0000 (16:09 +0000)] 
Propagate the COLLATE operator upward through function calls.
Initial fix for ticket [ca0d20b6cdddec5e8].

FossilOrigin-Name: c053448a55f9d030e8ffe88cf4fc14ada7f6ec19

11 years agoDisable the query flattener for aggregate subqueries if the parent query
drh [Mon, 9 Feb 2015 15:21:36 +0000 (15:21 +0000)] 
Disable the query flattener for aggregate subqueries if the parent query
uses other subqueries in its result set or WHERE clause or ORDER BY clause.
Preliminary fix for ticket [2f7170d73bf9abf8].  However it still contains
a defect similar to the COLLATE problem of [ca0d20b6cddd].

FossilOrigin-Name: 0b7d65e3fda676d193347cb782854c28a48252af

11 years agoRename the internal "EP_Constant" bitmask to a less misleading "EP_ConstFunc".
drh [Mon, 9 Feb 2015 14:07:07 +0000 (14:07 +0000)] 
Rename the internal "EP_Constant" bitmask to a less misleading "EP_ConstFunc".

FossilOrigin-Name: 4ef7ceced2b0000d21f7f8014384c04a0e4661d3

11 years agoIn selecttrace 0x100 mode, show the parse tree after name resolution instead
drh [Mon, 9 Feb 2015 13:42:59 +0000 (13:42 +0000)] 
In selecttrace 0x100 mode, show the parse tree after name resolution instead
of before flattening, so that it is always seen even if flattening does not
occur.  Also: add the hex pointer value to the top of each SELECT tree.

FossilOrigin-Name: aa093fef2d2a7e26d987b46654963e4d7e66d444

11 years agoIn selecttrace mode 0x100, show a complete parse-tree both before and after
drh [Mon, 9 Feb 2015 11:54:41 +0000 (11:54 +0000)] 
In selecttrace mode 0x100, show a complete parse-tree both before and after
query flattening.  This is a change to debugging code only.

FossilOrigin-Name: b3c6b8a3c1075d2a87cef68f061d6a0098e6d8d0

11 years agoFix over-length source code lines in resolver.c. No logic changes.
drh [Mon, 9 Feb 2015 10:20:19 +0000 (10:20 +0000)] 
Fix over-length source code lines in resolver.c.  No logic changes.

FossilOrigin-Name: c12edb85076d0832e3a0abbbba4d07f3cb5d7f0e

11 years agoAdd comments to explain the role of the ota vfs.
dan [Sat, 7 Feb 2015 20:20:32 +0000 (20:20 +0000)] 
Add comments to explain the role of the ota vfs.

FossilOrigin-Name: 7bb633639d1e41067903a49653f09a823054e213

11 years agoRemove "PRAGMA pager_ota_mode".
dan [Sat, 7 Feb 2015 19:17:36 +0000 (19:17 +0000)] 
Remove "PRAGMA pager_ota_mode".

FossilOrigin-Name: 8ac58e46782bd6b81c06fdf1cb5b316b8a4e1ddf

11 years agoFix potential 32-bit integer overflow problems on the offset and length
drh [Sat, 7 Feb 2015 15:16:35 +0000 (15:16 +0000)] 
Fix potential 32-bit integer overflow problems on the offset and length
parameters to sqlite3_blob_read() and sqlite3_blob_write().  For
sqlite3_blob_open(), make sure the *ppBlob return parameter is zeroed if
the interface fails with SQLITE_MISUSE.

FossilOrigin-Name: 5df02f50f8348dfde4fc15126abc7b7ef7803e69