]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
9 years agoAdd the "scrub" utility program that simultaneously backs-up a live database
drh [Wed, 18 May 2016 21:03:27 +0000 (21:03 +0000)] 
Add the "scrub" utility program that simultaneously backs-up a live database
and erases all deleted content.

FossilOrigin-Name: c981ab2a4771f8c5e95e2e85e37a02a4bd0e36ee

9 years agoOmit the unnecessary WHERE_REOPEN_IDX flag in the WHERE interface.
drh [Wed, 18 May 2016 21:01:27 +0000 (21:01 +0000)] 
Omit the unnecessary WHERE_REOPEN_IDX flag in the WHERE interface.

FossilOrigin-Name: 915416d15f43c4e1d3afa8121bb6fa09f9f67e30

9 years agoVersion 3.13.0 version-3.13.0
drh [Wed, 18 May 2016 10:57:30 +0000 (10:57 +0000)] 
Version 3.13.0

FossilOrigin-Name: fc49f556e48970561d7ab6a2f24fdd7d9eb81ff2

9 years agoEnhance the scrub utility program so that it does a FULL checkpoint prior to scrub-backup
drh [Tue, 17 May 2016 21:17:51 +0000 (21:17 +0000)] 
Enhance the scrub utility program so that it does a FULL checkpoint prior to
starting the backup, to ensure that the database file content matches what needs
to be backed up without having to look at the WAL file.

FossilOrigin-Name: ab1c5ce50f139070d7a322f43132a93c8af2ed68

9 years agoMerge the latest changes from trunk.
drh [Tue, 17 May 2016 17:11:21 +0000 (17:11 +0000)] 
Merge the latest changes from trunk.

FossilOrigin-Name: 5021dfe1f3f723a5938d547a0308f1d63103702d

9 years agoDo not run snapshot_fault.test as part of the inmemory_journal permutation.
dan [Mon, 16 May 2016 14:35:15 +0000 (14:35 +0000)] 
Do not run snapshot_fault.test as part of the inmemory_journal permutation.

FossilOrigin-Name: 995c084bde44e678facc5f5d95a2335ce61e57b0

9 years agoDisable shell.exe test cases for UTF8 filenames as they do not work on MinGW.
drh [Mon, 16 May 2016 11:55:09 +0000 (11:55 +0000)] 
Disable shell.exe test cases for UTF8 filenames as they do not work on MinGW.

FossilOrigin-Name: 386bcbba8ed733ee84958e6bd6e9d33c150e6c18

9 years agoImprovements to a comment in the pcache.c file. No changes to code.
drh [Fri, 13 May 2016 17:22:33 +0000 (17:22 +0000)] 
Improvements to a comment in the pcache.c file.  No changes to code.

FossilOrigin-Name: b369980f0c4550a9034833caa2c7c85d6030f5ff

9 years agoRemove the unused PGHDR_NEED_READ flag. Add invariant checking (during
drh [Fri, 13 May 2016 15:22:06 +0000 (15:22 +0000)] 
Remove the unused PGHDR_NEED_READ flag.  Add invariant checking (during
SQLITE_DEBUG builds only) for the PgHdr object.

FossilOrigin-Name: 771c5411e9ebcad00fb4b97556b519488284b87b

9 years agoClarification of the pagerFlushOnCommit() logic.
drh [Fri, 13 May 2016 12:12:38 +0000 (12:12 +0000)] 
Clarification of the pagerFlushOnCommit() logic.

FossilOrigin-Name: 3401d9dcdbec390564574e8d2972c944c204e025

9 years agoFix pager_end_transaction() to ensure that a ROLLBACK does not clobber
drh [Fri, 13 May 2016 11:50:00 +0000 (11:50 +0000)] 
Fix pager_end_transaction() to ensure that a ROLLBACK does not clobber
unwritten pages in a TEMP file pcache.

FossilOrigin-Name: 9495d33879221c1821331dc72c61a6a3d182f526

9 years agoAdditional debugging and tracing logic for pcache.c, turned off by default
drh [Fri, 13 May 2016 04:24:25 +0000 (04:24 +0000)] 
Additional debugging and tracing logic for pcache.c, turned off by default
using an "#if 0".

FossilOrigin-Name: 32a62e3bd46cf58586617d3f8b1a971c91df205e

9 years agoDisable ALWAYS and NEVER when compiled with SQLITE_MUTATION_TEST.
drh [Thu, 12 May 2016 19:17:09 +0000 (19:17 +0000)] 
Disable ALWAYS and NEVER when compiled with SQLITE_MUTATION_TEST.

FossilOrigin-Name: 24d9fbc1d0f99b90577ecd6edcd3bc1abc76633f

9 years agoSimplification of the sqlite3FaultSim() call inside of
drh [Thu, 12 May 2016 19:05:35 +0000 (19:05 +0000)] 
Simplification of the sqlite3FaultSim() call inside of
sqlite3PagerCommitPhaseOne().

FossilOrigin-Name: 1b0f4cc362cda1dc175aa363ae4e612b7d1164c3

9 years agoAdd an assert in pager.c to confirm that pPager->tempFile is always true
drh [Thu, 12 May 2016 18:38:45 +0000 (18:38 +0000)] 
Add an assert in pager.c to confirm that pPager->tempFile is always true
for in-memory databases.

FossilOrigin-Name: 3fd71092063bf1d30e03cf2497ea9c57b3ec82eb

9 years agoAdd extra OPTIMIZATION-IF-FALSE comments where required to pcache.c.
dan [Thu, 12 May 2016 17:06:04 +0000 (17:06 +0000)] 
Add extra OPTIMIZATION-IF-FALSE comments where required to pcache.c.

FossilOrigin-Name: 9d55b8f541de43deb82d460d32005fd62f5430b2

9 years agoFor in-memory databases, it does not matter if pcache entries are marked
drh [Thu, 12 May 2016 12:08:48 +0000 (12:08 +0000)] 
For in-memory databases, it does not matter if pcache entries are marked
"clean" or "writable".

FossilOrigin-Name: 06c1e27ca868f247f8c27b03eb19aac004f28650

9 years agoRemove an unnecessary call to sqlite3PcacheMakeClean() inside of the ROLLBACK
drh [Thu, 12 May 2016 12:01:20 +0000 (12:01 +0000)] 
Remove an unnecessary call to sqlite3PcacheMakeClean() inside of the ROLLBACK
logic.

FossilOrigin-Name: 0dc50d9915cd88916229ca5c3834de82fa16f017

9 years agoAdd a missing OPTIMIZATION-IF-FALSE comment to pcache.c.
dan [Thu, 12 May 2016 09:48:23 +0000 (09:48 +0000)] 
Add a missing OPTIMIZATION-IF-FALSE comment to pcache.c.

FossilOrigin-Name: bc202e5b418d5a57bfc766883c4417c94829d96e

9 years agoFor in-memory databases, it does not matter if pcache entries are marked pager-dev
drh [Wed, 11 May 2016 23:54:14 +0000 (23:54 +0000)] 
For in-memory databases, it does not matter if pcache entries are marked
"clean" or "writable".

FossilOrigin-Name: ad601c7962a60a11699cf31f1faee09b95d5c710

9 years agoRemove a redundant condition from pcache.c. Add an OPTIMIZATION-IF-TRUE comment to...
dan [Wed, 11 May 2016 20:03:23 +0000 (20:03 +0000)] 
Remove a redundant condition from pcache.c. Add an OPTIMIZATION-IF-TRUE comment to another condition that requires it.

FossilOrigin-Name: 3bfd2621d13b4f842f3af6d35519653f4eb8cad7

9 years agoRemove some a small amount of redundant code related to PCache.pSynced from pcache.c.
dan [Wed, 11 May 2016 15:41:15 +0000 (15:41 +0000)] 
Remove some a small amount of redundant code related to PCache.pSynced from pcache.c.

FossilOrigin-Name: 9cc8cad78fdfe044ad6726ebfe6909c1e242fa55

9 years agoDo not reset the page cache when a rollback journal truncate fails, as doing
drh [Wed, 11 May 2016 12:47:46 +0000 (12:47 +0000)] 
Do not reset the page cache when a rollback journal truncate fails, as doing
so can cause loss of information for an in-memory TEMP file.

FossilOrigin-Name: 345ce1c9f64f2a424663b4dfcbe4586d9df7bff6

9 years agoAlways truncate, rather than persist, the rollback journal of a TEMP database.
drh [Wed, 11 May 2016 11:04:17 +0000 (11:04 +0000)] 
Always truncate, rather than persist, the rollback journal of a TEMP database.

FossilOrigin-Name: 42fb6f1e99a6c31889819a0302679d598dc0ab1b

9 years agoAdd pcache tracing macros. Off by default. Requires changing an "#if 0"
drh [Wed, 11 May 2016 10:57:04 +0000 (10:57 +0000)] 
Add pcache tracing macros.  Off by default.  Requires changing an "#if 0"
and recompiling to enable.

FossilOrigin-Name: d9313d19c75a62f558b3df6b15595b15bbfa0b62

9 years agoAdd another test case to temptable3.test.
dan [Tue, 10 May 2016 20:16:43 +0000 (20:16 +0000)] 
Add another test case to temptable3.test.

FossilOrigin-Name: 223640243efc52c14bb2bb540833a2a624eaa41a

9 years agoFix a problem in sqlite3PagerMovepage() when working on a temp table for which
drh [Tue, 10 May 2016 20:03:08 +0000 (20:03 +0000)] 
Fix a problem in sqlite3PagerMovepage() when working on a temp table for which
pages have been spilled.

FossilOrigin-Name: 20cf8811caf705b482be100baecb3ef72aee2d5a

9 years agoFixes to requirements marks. No changes to code.
drh [Mon, 9 May 2016 23:11:47 +0000 (23:11 +0000)] 
Fixes to requirements marks.  No changes to code.

FossilOrigin-Name: 79ecd0ef20c12198e950a730871444a980a0f1b2

9 years agoEnhancements to test/sort5.test so that it works with SEE.
drh [Mon, 9 May 2016 22:35:06 +0000 (22:35 +0000)] 
Enhancements to test/sort5.test so that it works with SEE.

FossilOrigin-Name: 8a39c8ee49e6e80c83613546cf328801c80b7c4d

9 years agoRemove some forgotten debugging lines from test/sort5.test.
drh [Mon, 9 May 2016 22:32:18 +0000 (22:32 +0000)] 
Remove some forgotten debugging lines from test/sort5.test.

FossilOrigin-Name: f5875489810101c13a7917bde86e6a23b088e386

9 years agoOmit the unnecessary WHERE_REOPEN_IDX flag in the WHERE interface. dev
drh [Mon, 9 May 2016 19:58:56 +0000 (19:58 +0000)] 
Omit the unnecessary WHERE_REOPEN_IDX flag in the WHERE interface.

FossilOrigin-Name: da94a6e0ebacad8f235dcd653a25474327f26137

9 years agoUpdate a comment in fts5.h. No changes to code.
dan [Mon, 9 May 2016 19:03:42 +0000 (19:03 +0000)] 
Update a comment in fts5.h. No changes to code.

FossilOrigin-Name: 14e53d0e2f62d82ae1d64a72fd9711548e3bf5ea

9 years agoFix the FTS5 xQueryPhrase() API function so that it recognizes column filters.
dan [Mon, 9 May 2016 18:05:44 +0000 (18:05 +0000)] 
Fix the FTS5 xQueryPhrase() API function so that it recognizes column filters.

FossilOrigin-Name: 48505cde05d74748454dc135d4ec25954ecf020e

9 years agoMake the sqlite3DeleteTable() routine smaller and faster.
drh [Sat, 7 May 2016 12:15:34 +0000 (12:15 +0000)] 
Make the sqlite3DeleteTable() routine smaller and faster.

FossilOrigin-Name: d75140b851a34a5eb66041e294e421628efbc5ba

9 years agoFix typo in the intpkey-17.2 test.
drh [Sat, 7 May 2016 12:15:15 +0000 (12:15 +0000)] 
Fix typo in the intpkey-17.2 test.

FossilOrigin-Name: a45fda657d987f5c923d141584841a6c62dfb504

9 years agoSimplification to the logic used to decide between OP_Seek and OP_NotExists.
drh [Fri, 6 May 2016 20:23:12 +0000 (20:23 +0000)] 
Simplification to the logic used to decide between OP_Seek and OP_NotExists.
Use OP_NotExists for both DELETE and UPDATE.

FossilOrigin-Name: 3a695263183303e3f64eb2320752d0fdef53eaf2

9 years agoCorrections to comments on the whereScanInit() interface.
drh [Fri, 6 May 2016 18:47:23 +0000 (18:47 +0000)] 
Corrections to comments on the whereScanInit() interface.

FossilOrigin-Name: ab7ab415d19524f6c3901e474d3a154f55d28530

9 years agoFor DELETE operations, make sure that seeks on the main table are not
drh [Fri, 6 May 2016 16:49:54 +0000 (16:49 +0000)] 
For DELETE operations, make sure that seeks on the main table are not
deferred, since if they are and none of the indexes reference columns of
the table, the seek might never occur until the OP_Delete opcode, which is
too late.  Fix for ticket [16c9801ceba49].

FossilOrigin-Name: 93a2bace5704f7ecad56541a6b3e06a88f7f393f

9 years agoFix an error in main.mk causing testfixture to use individual fts5 source code files...
dan [Fri, 6 May 2016 16:30:34 +0000 (16:30 +0000)] 
Fix an error in main.mk causing testfixture to use individual fts5 source code files instead of fts5.c.

FossilOrigin-Name: 933a1c818c1d1ccec8680e1ba87f2cbe37cc9f7d

9 years agoIn the WHERE generator, when building code for a DELETE operation, make sure ticket-16c9801ce
drh [Fri, 6 May 2016 16:06:59 +0000 (16:06 +0000)] 
In the WHERE generator, when building code for a DELETE operation, make sure
that seeks to the main table are not deferred.
This is a better fix for the [16c9801ceba49] bug than the previous.

FossilOrigin-Name: 150dd09ebd7b17234a79e1811a0fae8b0a7a40d5

9 years agoFix a bug in sqlite_analyzer causing it report (slightly) incorrect values for the...
dan [Fri, 6 May 2016 15:16:02 +0000 (15:16 +0000)] 
Fix a bug in sqlite_analyzer causing it report (slightly) incorrect values for the number of entries in indexes or WITHOUT ROWID tables.

FossilOrigin-Name: dc37750d4e87d0c529785adceeebd838b8f8591d

9 years agoDo not scan indexes that have the integer primary key as their left-most
drh [Fri, 6 May 2016 11:31:10 +0000 (11:31 +0000)] 
Do not scan indexes that have the integer primary key as their left-most
column.  This fixes the crash of ticket [16c9801ceba] but it seems like
the wrong fix.  More investigation needed.

FossilOrigin-Name: 50312273ffaf1bd4bfdc73865fa0b19166968429

9 years agoAdditional error reporting. Open the source database read/write so that
drh [Thu, 5 May 2016 23:59:22 +0000 (23:59 +0000)] 
Additional error reporting.  Open the source database read/write so that
it can delete the WAL file when done.

FossilOrigin-Name: d2efd3c176f0eba2d78105f0bb3161db38bd4bab

9 years agoWorking when run against sqlite.fossil.
drh [Thu, 5 May 2016 23:39:30 +0000 (23:39 +0000)] 
Working when run against sqlite.fossil.

FossilOrigin-Name: b0bd9dd6255be161ea289ba6caa3fbd568128f62

9 years agoFinished implementation compiles, but untested.
drh [Thu, 5 May 2016 23:09:57 +0000 (23:09 +0000)] 
Finished implementation compiles, but untested.

FossilOrigin-Name: aeb88bdf6fe9e5839b1503ab5740b27bc09d4842

9 years agoInitial check-in of the "scrub.exe" utility program prototype. Not yet
drh [Thu, 5 May 2016 17:15:23 +0000 (17:15 +0000)] 
Initial check-in of the "scrub.exe" utility program prototype.  Not yet
fully functional.  In particular, no scrubbing is done.

FossilOrigin-Name: bdf2ec77d1542d4e9b68218f558710a3efc15823

9 years agoRenumber internal constants in the printf() implemention for a small
drh [Thu, 5 May 2016 11:53:12 +0000 (11:53 +0000)] 
Renumber internal constants in the printf() implemention for a small
performance improvement.

FossilOrigin-Name: 69d11447f4b1a8c536c3b6573d2a3419da870412

9 years agoDisable the session extension API if SQLITE_ENABLE_SESSION is not defined.
drh [Wed, 4 May 2016 21:06:21 +0000 (21:06 +0000)] 
Disable the session extension API if SQLITE_ENABLE_SESSION is not defined.

FossilOrigin-Name: 71af9ac165ac02272f4886f69bd9ab4770fd7bb6

9 years agoFix typo in comment. No changes to code.
mistachkin [Wed, 4 May 2016 19:04:20 +0000 (19:04 +0000)] 
Fix typo in comment.  No changes to code.

FossilOrigin-Name: 6c43ba1c8753a4029e127078652f265c408a01c0

9 years agoOnly disable the one-pass DELETE optimization if the WHERE clause contains
drh [Wed, 4 May 2016 14:45:30 +0000 (14:45 +0000)] 
Only disable the one-pass DELETE optimization if the WHERE clause contains
a correlated subquery.  Uncorrelated subqueries are allowed.  This is a
refinement of check-in [3f221f592a9a1] that is the fix for
ticket [dc6ebeda9396087].

FossilOrigin-Name: aae389692a2ed2cc92151d51fb2cd5a16921c469

9 years agoPortability enhancements to the configure script on the amalgamation tarball.
drh [Wed, 4 May 2016 14:20:15 +0000 (14:20 +0000)] 
Portability enhancements to the configure script on the amalgamation tarball.

FossilOrigin-Name: 7184c4b8869ffc00944abdd8d2c521cb11ea5824

9 years agoDisable the PagerDontWrite() optimization for temp tables. It can cause database...
dan [Wed, 4 May 2016 11:28:03 +0000 (11:28 +0000)] 
Disable the PagerDontWrite() optimization for temp tables. It can cause database corruption if a page passed to PagerDontWrite() is dirty at the start of a transaction that is subsequently rolled back.

FossilOrigin-Name: 6341ab2ffef298ca16b323358afbea4a4c1fb0e1

9 years agoMinor style tweaks in the MSVC makefile.
mistachkin [Tue, 3 May 2016 19:40:54 +0000 (19:40 +0000)] 
Minor style tweaks in the MSVC makefile.

FossilOrigin-Name: 1b43358f8979c4f18519e824e0d5f6ef2250107c

9 years agoThe session extension is disabled by default. To enable it using
drh [Tue, 3 May 2016 14:57:07 +0000 (14:57 +0000)] 
The session extension is disabled by default.  To enable it using
--enable-session on ./configure on unix and add SESSION=1 to the nmake
on Windows.  Or add -DSQLITE_ENABLE_SESSION and
-DSQLITE_ENABLE_PREUPDATE_HOOK to build manually.

FossilOrigin-Name: bcaa650e8796984b275eceba0ed477f360295d01

9 years agoTurn the session extension off by default. Enable using --enable-session on session-make
drh [Tue, 3 May 2016 13:14:18 +0000 (13:14 +0000)] 
Turn the session extension off by default.  Enable using --enable-session on
configure scripts, or using the SESSION=1 argument to nmake on Windows.

FossilOrigin-Name: e462cde2a50c39cc2f8d8624aada19280b8226eb

9 years agoAvoid left-shifts of signed integers.
drh [Tue, 3 May 2016 00:04:55 +0000 (00:04 +0000)] 
Avoid left-shifts of signed integers.

FossilOrigin-Name: 0715ce164333e27671efbec8796f238df98cc287

9 years agoRemove some randomness from test script temptable2.test.
dan [Mon, 2 May 2016 19:05:05 +0000 (19:05 +0000)] 
Remove some randomness from test script temptable2.test.

FossilOrigin-Name: 5830cf72e9e870830d088399f1ccb03ed6522582

9 years agoFix a test case in temptable2.test so that it works on systems that
drh [Mon, 2 May 2016 16:59:49 +0000 (16:59 +0000)] 
Fix a test case in temptable2.test so that it works on systems that
lack a coherient cache (ex: OpenBSD) and thus do not support the
"PRAGMA mmap_size" command.

FossilOrigin-Name: 088cf83872f6477c3b297c58d6f8a5def7025daf

9 years agoFix harmless LLVM compiler warnings in the srcck1.c utility program used
drh [Mon, 2 May 2016 13:57:19 +0000 (13:57 +0000)] 
Fix harmless LLVM compiler warnings in the srcck1.c utility program used
during the build process.

FossilOrigin-Name: e4af967533f290862dfba1d9ef44d4c9ddd8a01b

9 years agoDisable the multi-row one-pass DELETE optimization when the WHERE clause
drh [Mon, 2 May 2016 12:18:56 +0000 (12:18 +0000)] 
Disable the multi-row one-pass DELETE optimization when the WHERE clause
contains a subquery.  Fix for ticket [dc6ebeda9396087].

FossilOrigin-Name: 3f221f592a9a19009076e568566c59801cd3fc32

9 years agoImprovements to the way the LIKE optimization is implemented, resulting in
drh [Mon, 2 May 2016 10:25:42 +0000 (10:25 +0000)] 
Improvements to the way the LIKE optimization is implemented, resulting in
slightly smaller and faster code that is easier to test.

FossilOrigin-Name: 54c63b329288729031f45b7778752552cd90e226

9 years agoChange the way tester.tcl handes $argv so that in "permutations.test <permutation...
dan [Sat, 30 Apr 2016 19:23:10 +0000 (19:23 +0000)] 
Change the way tester.tcl handes $argv so that in "permutations.test <permutation> <filename>" <filename> may be the name of any file in the test/ directory.

FossilOrigin-Name: 820c57bb24ad3d8663ca512e4022268b940bb2ee

9 years agoRemove an unnecessary branch from the OP_String8 opcode.
drh [Sat, 30 Apr 2016 18:10:34 +0000 (18:10 +0000)] 
Remove an unnecessary branch from the OP_String8 opcode.

FossilOrigin-Name: 459a0b456da69112605b37adc9af27d79e35a4d7

9 years agoMore bug fixes to Lemon identified by Kelvin Sherlock. None of these
drh [Sat, 30 Apr 2016 17:19:30 +0000 (17:19 +0000)] 
More bug fixes to Lemon identified by Kelvin Sherlock.  None of these
have any impact on SQLite.

FossilOrigin-Name: 762bdc55f8878ee2ef65af2165a8e7fdbddf0160

9 years agoSimplifications to the OP_Halt opcode implementation.
drh [Sat, 30 Apr 2016 02:59:15 +0000 (02:59 +0000)] 
Simplifications to the OP_Halt opcode implementation.

FossilOrigin-Name: daf4630f96f13133664908045e279da9d5a40bb5

9 years agoFix the temporary directory search algorithm for unix so that it fails
drh [Fri, 29 Apr 2016 20:30:56 +0000 (20:30 +0000)] 
Fix the temporary directory search algorithm for unix so that it fails
gracefully even if all candidate directories are inaccessible.  This fixes
a bug that was introduced by check-in [9b8fec60d8e].

FossilOrigin-Name: 614bb709d34e11488da88861243023cc5de4b409

9 years agoPostpone I/O associated with TEMP files for as long as possible, with the
drh [Fri, 29 Apr 2016 15:39:48 +0000 (15:39 +0000)] 
Postpone I/O associated with TEMP files for as long as possible, with the
hope that the I/O can ultimately be avoided completely.

FossilOrigin-Name: 9d0a5ae00273686ea35b43bc2ffaa8775c176363

9 years agoFix test script temptable2.test so that it works with the "inmemory_journal" and... tempfiles-25
dan [Fri, 29 Apr 2016 14:12:48 +0000 (14:12 +0000)] 
Fix test script temptable2.test so that it works with the "inmemory_journal" and "journaltest" permutations.

FossilOrigin-Name: b7bec7f2d3d08d0c14f77654be2c5cedf1619e58

9 years agoMerge latest trunk changes, including test case fixes, with this branch.
dan [Fri, 29 Apr 2016 11:35:28 +0000 (11:35 +0000)] 
Merge latest trunk changes, including test case fixes, with this branch.

FossilOrigin-Name: 99794aca7b6cb40f08ce4db9889a989fc597eac9

9 years agoModify the permutations.test script so as to set any permutation specific configurati...
dan [Fri, 29 Apr 2016 11:33:58 +0000 (11:33 +0000)] 
Modify the permutations.test script so as to set any permutation specific configuration values before running each individual test script. Fix a mostly harmless buffer overread in the sessions module.

FossilOrigin-Name: 4cbd50245440e714935399a5c285cf32d8bfc424

9 years agoLemon bug fix: Do not merge action routines unless their destructors are
drh [Fri, 29 Apr 2016 11:28:35 +0000 (11:28 +0000)] 
Lemon bug fix:  Do not merge action routines unless their destructors are
also identical.  Problem and suggested fix reported on the mailing list
by Kelvin Sherlock.

FossilOrigin-Name: 4792d6dbba6857f74d27332dcc1468e39c767c71

9 years agoFix an almost entirely harmless buffer overread in the sessions module. permutations-fix
dan [Fri, 29 Apr 2016 10:13:22 +0000 (10:13 +0000)] 
Fix an almost entirely harmless buffer overread in the sessions module.

FossilOrigin-Name: 89b0ee3351381f7bc666cb206f77a56f2e0d4a0e

9 years agoSome optimization comments added to vdbe.c. No functional changes to code.
drh [Fri, 29 Apr 2016 02:55:05 +0000 (02:55 +0000)] 
Some optimization comments added to vdbe.c.  No functional changes to code.

FossilOrigin-Name: e7c22e3bffce63f3b47fa3683be8c00c42b2a7d3

9 years agoFurther simplifications and improved commentting on the rowset.c module,
drh [Thu, 28 Apr 2016 22:29:31 +0000 (22:29 +0000)] 
Further simplifications and improved commentting on the rowset.c module,
including several optimization comments.

FossilOrigin-Name: 9f15a520deb9f1d4ecaa3bfff82bd57ef122aadb

9 years agoComment changes only: Add several optimization marks in rowset.c. Add
drh [Thu, 28 Apr 2016 20:11:12 +0000 (20:11 +0000)] 
Comment changes only:  Add several optimization marks in rowset.c.  Add
a header comment that explains what the various special comments mean.

FossilOrigin-Name: 8cdbe89ac6c22d632f677eb293111b3dbae7d6c1

9 years agoFix typo in comment. No changes to code.
mistachkin [Thu, 28 Apr 2016 19:23:10 +0000 (19:23 +0000)] 
Fix typo in comment.  No changes to code.

FossilOrigin-Name: 9f6f17b5c97c9576c340173d068485fdbfd53253

9 years agoRearrange some code in the RowSet logic for clarity of presentation, while
drh [Thu, 28 Apr 2016 18:53:08 +0000 (18:53 +0000)] 
Rearrange some code in the RowSet logic for clarity of presentation, while
adding an /*OPTIMIZATION-IF-TRUE*/ comment.  It should operate identically.

FossilOrigin-Name: 5748e64376c1c2be5154a632d1527cfebbb9ec74

9 years agoMerge latest changes from trunk with this branch.
dan [Thu, 28 Apr 2016 14:59:05 +0000 (14:59 +0000)] 
Merge latest changes from trunk with this branch.

FossilOrigin-Name: 45467ee49872f495d5276cf830f10c3cf4ac8e3c

9 years agoAvoid running sessionfault.test and sessionfault2.test as part of the "inmemory_journ...
dan [Thu, 28 Apr 2016 14:54:54 +0000 (14:54 +0000)] 
Avoid running sessionfault.test and sessionfault2.test as part of the "inmemory_journal" permutation.

FossilOrigin-Name: 5973d3bf2e5aa979ccc9a4a3a0eb08b67098b499

9 years agoUse comments to mark several branches as optimizations. No changes to code.
drh [Thu, 28 Apr 2016 14:15:12 +0000 (14:15 +0000)] 
Use comments to mark several branches as optimizations.  No changes to code.

FossilOrigin-Name: 33e627472780b872716c504f2d585cc057c390a5

9 years agoEnsure that quota.test deletes the directory named "test.db" that it creates.
dan [Thu, 28 Apr 2016 09:53:14 +0000 (09:53 +0000)] 
Ensure that quota.test deletes the directory named "test.db" that it creates.

FossilOrigin-Name: 045edd4b17c6b76079ac90773c035d8c1f8d525d

9 years agoRemove an unnecessary conditional from the sqlite3DecOrHexToI64() routine.
drh [Thu, 28 Apr 2016 03:52:18 +0000 (03:52 +0000)] 
Remove an unnecessary conditional from the sqlite3DecOrHexToI64() routine.

FossilOrigin-Name: fcf85bfe50b254e825ee63a4cd0aa0b333b06eed

9 years agoChange the sqlite3Atoi64() routine so that it returns failure if not all of
drh [Thu, 28 Apr 2016 00:32:16 +0000 (00:32 +0000)] 
Change the sqlite3Atoi64() routine so that it returns failure if not all of
the input characters are consumed, even if it consumed all characters up to
the first 0x00.  This has no impact on external APIs as far as I can tell.

FossilOrigin-Name: 46d4ffff3bd33d7e901e76cfac1cbde38d4f61d0

9 years agoModify the permutations.test script so as to set any permutation specific configurati...
dan [Wed, 27 Apr 2016 18:54:49 +0000 (18:54 +0000)] 
Modify the permutations.test script so as to set any permutation specific configuration values before running each individual test script.

FossilOrigin-Name: 2662d8fef791f7b8b3b14f9c27dfedec84620dee

9 years agoMore simplification of the sqlite3AtoF() routine. Add special comments
drh [Wed, 27 Apr 2016 15:24:13 +0000 (15:24 +0000)] 
More simplification of the sqlite3AtoF() routine.  Add special comments
to indicate branches that are for optimization purposes only and that give
the correct answer even if always or never taken.

FossilOrigin-Name: 0065fe97cb8e5076acae1bf1560fd2f69dab9014

9 years agoFix a couple of test script problems on this branch. Both related to the fact that...
dan [Wed, 27 Apr 2016 11:24:42 +0000 (11:24 +0000)] 
Fix a couple of test script problems on this branch. Both related to the fact that temp database page sizes can no longer be changed by VACUUM or the backup API after the temp db is populated.

FossilOrigin-Name: 6bb5aa2be2a6c5ca66a98a9387b2845507a6bdd2

9 years agoRemove still more unnecessary branches from sqlite3AtoF().
drh [Wed, 27 Apr 2016 02:35:03 +0000 (02:35 +0000)] 
Remove still more unnecessary branches from sqlite3AtoF().

FossilOrigin-Name: 3adfe9f3e6ce7cc09fcb570d9b65e830a96cac15

9 years agoFurther simplifications to sqlite3AtoF() to remove unneeded branches.
drh [Tue, 26 Apr 2016 23:14:45 +0000 (23:14 +0000)] 
Further simplifications to sqlite3AtoF() to remove unneeded branches.

FossilOrigin-Name: dd69e53cb077873171af5312c633ca185595bf31

9 years agoRemove an unnecessary line from the sqlite3AtoF() routine.
drh [Tue, 26 Apr 2016 21:02:53 +0000 (21:02 +0000)] 
Remove an unnecessary line from the sqlite3AtoF() routine.

FossilOrigin-Name: a9d007494cfe30a26dca5352655dc7702351476e

9 years agoThe pcache and the built-in VFSes should not use mutexes when
drh [Tue, 26 Apr 2016 18:58:54 +0000 (18:58 +0000)] 
The pcache and the built-in VFSes should not use mutexes when
SQLITE_CONFIG_SINGLETHREAD is set.

FossilOrigin-Name: 12418b100196abbfbfb85e0ab4bb6b1cbf335df7

9 years agoFix an issue in temptable2.test preventing it from working with SQLITE_DEFAULT_AUTOVA...
dan [Tue, 26 Apr 2016 17:10:03 +0000 (17:10 +0000)] 
Fix an issue in temptable2.test preventing it from working with SQLITE_DEFAULT_AUTOVACUUM=1 builds.

FossilOrigin-Name: e790aac02e4b427b4891b514a050699d159b03b1

9 years agoMerge the checksymbols fix from trunk into this branch.
dan [Tue, 26 Apr 2016 16:03:58 +0000 (16:03 +0000)] 
Merge the checksymbols fix from trunk into this branch.

FossilOrigin-Name: 04911cee0cd5467ee99744b774d692219e5e1425

9 years agoFix the "checksymbols" target in Makefile.in to be able to deal with the
drh [Tue, 26 Apr 2016 13:13:53 +0000 (13:13 +0000)] 
Fix the "checksymbols" target in Makefile.in to be able to deal with the
sqlite3changegroup family of interfaces.

FossilOrigin-Name: d819bfbd46dc7f065d2a3ab0ef9f8322d8394e11

9 years agoAdd an sqlite3FaultSim() all to make it easier to simulate IO errors in
drh [Mon, 25 Apr 2016 22:39:42 +0000 (22:39 +0000)] 
Add an sqlite3FaultSim() all to make it easier to simulate IO errors in
a VACUUM commit.

FossilOrigin-Name: 8bfde416c51f4e087275aebf652a73985515e810

9 years agoRemove an obsolete comment from the pager. No code changes.
drh [Mon, 25 Apr 2016 19:28:34 +0000 (19:28 +0000)] 
Remove an obsolete comment from the pager.  No code changes.

FossilOrigin-Name: 36f97ca8874a03ac8699f44fe0da95b0be507cc7

9 years agoUpdate the RBU vacuum code so that databases that use custom collation sequences...
dan [Mon, 25 Apr 2016 19:25:12 +0000 (19:25 +0000)] 
Update the RBU vacuum code so that databases that use custom collation sequences can be vacuumed.

FossilOrigin-Name: 7dd48c10790a7b9c4165214399c261a0aa701297

9 years agoFix some unreachable branches in the pager.
drh [Mon, 25 Apr 2016 19:20:56 +0000 (19:20 +0000)] 
Fix some unreachable branches in the pager.

FossilOrigin-Name: 3ae44770fdecc40c8097f1de0b504f36585a2232

9 years agoMerge bug fix from trunk.
drh [Mon, 25 Apr 2016 15:03:49 +0000 (15:03 +0000)] 
Merge bug fix from trunk.

FossilOrigin-Name: a905d5e08de3f3c60b667d840b5995911372647d

9 years agoWhen checking for the WHERE-clause push-down optimization, verify that
drh [Mon, 25 Apr 2016 02:20:10 +0000 (02:20 +0000)] 
When checking for the WHERE-clause push-down optimization, verify that
all terms of the compound inner SELECT are non-aggregate, not just the
last term.  Fix for ticket [f7f8c97e97597].

FossilOrigin-Name: ec215f94ac9748c0acd82af0cc9e7a92249462f9

9 years agoFix a typo in the Makefile.
mistachkin [Mon, 25 Apr 2016 01:43:24 +0000 (01:43 +0000)] 
Fix a typo in the Makefile.

FossilOrigin-Name: d0a579b35105810821bbfec6b50ecfebac7a17ee