]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
15 years agoChange the names of the log.c and log.h source files to wal.c and wal.h.
drh [Mon, 26 Apr 2010 00:19:45 +0000 (00:19 +0000)] 
Change the names of the log.c and log.h source files to wal.c and wal.h.

FossilOrigin-Name: 56fe5d7624f840417152bcc63efbe21a5f557920

15 years agoBegin moving WAL-specific I/O into the VFS. This checkin contains VFS
drh [Mon, 26 Apr 2010 00:04:55 +0000 (00:04 +0000)] 
Begin moving WAL-specific I/O into the VFS.  This checkin contains VFS
infrastructure but it is untested and is not yet hooked up to the WAL.
The version number is bumped to 3.7.0 because of the VFS extension.

FossilOrigin-Name: f5e615c28c7035a7e6d896790b51cf9bc7371d5f

15 years agoAdd comment explaining checksum mechanism.
dan [Sat, 24 Apr 2010 19:07:29 +0000 (19:07 +0000)] 
Add comment explaining checksum mechanism.

FossilOrigin-Name: 3e9ef5153ebf0543ad0f75a7561f73d22171da53

15 years agoFix bugs in WAL mode rollback.
dan [Sat, 24 Apr 2010 18:44:05 +0000 (18:44 +0000)] 
Fix bugs in WAL mode rollback.

FossilOrigin-Name: 31215969f59be536fe87431bb9fbfa7d13027e35

15 years agoMerge with [0291ed974d].
dan [Sat, 24 Apr 2010 14:33:08 +0000 (14:33 +0000)] 
Merge with [0291ed974d].
Merge with [0291ed974d].
Merge with [0291ed974d].

FossilOrigin-Name: a352f6285e33a806fbe4475e720e763fdc5bb47d

15 years agoWhen commands such as ALTER TABLE and VACUUM use SQL internally, make sure
drh [Sat, 24 Apr 2010 14:02:59 +0000 (14:02 +0000)] 
When commands such as ALTER TABLE and VACUUM use SQL internally, make sure
they use only the built-in functions and not application-defined overrides
for those functions.

FossilOrigin-Name: 0291ed974d5bf1e344e2c38422530cc961b897da

15 years agoMerge with [e79dac3c2f].
dan [Sat, 24 Apr 2010 04:53:15 +0000 (04:53 +0000)] 
Merge with [e79dac3c2f].

FossilOrigin-Name: 1e793d3a6d46ec5d744e077b10362e7cfa118eef

15 years agoReserve some space at the start of the log-summary file to apply locks to.
dan [Sat, 24 Apr 2010 04:49:15 +0000 (04:49 +0000)] 
Reserve some space at the start of the log-summary file to apply locks to.

FossilOrigin-Name: a031aa1fa01f062b087154833738f011f7bc4eb5

15 years agoFixes and tests for backup of a WAL database.
dan [Fri, 23 Apr 2010 19:15:00 +0000 (19:15 +0000)] 
Fixes and tests for backup of a WAL database.

FossilOrigin-Name: 480d12db4c0ebcc37598f7620d39193875eab15b

15 years agoMerge of notify.c changes from experimental.
shaneh [Fri, 23 Apr 2010 14:29:04 +0000 (14:29 +0000)] 
Merge of notify.c changes from experimental.
Reset stored blocking connection when registered unlock_notify callback is cleared.

FossilOrigin-Name: e79dac3c2f723ed7cc62fcef468f53952711f242

15 years agoAdd very simple test cases for backup and VACUUM of WAL databases. More to come.
dan [Fri, 23 Apr 2010 11:44:40 +0000 (11:44 +0000)] 
Add very simple test cases for backup and VACUUM of WAL databases. More to come.

FossilOrigin-Name: 1077d8130b8ed5716ad73f78382270909d347963

15 years agoCreate a version of the log checksummer that works on big-endian platforms. Remove...
dan [Thu, 22 Apr 2010 19:14:13 +0000 (19:14 +0000)] 
Create a version of the log checksummer that works on big-endian platforms. Remove the 512KB size limit on the log-summary.

FossilOrigin-Name: 5d6d4423d1def39bd2424703120aa985085c3f8e

15 years agoFurther tests and changes related to switching between WAL and rollback modes.
dan [Thu, 22 Apr 2010 06:27:04 +0000 (06:27 +0000)] 
Further tests and changes related to switching between WAL and rollback modes.

FossilOrigin-Name: 1236318477787a612f02cc98caf2931bd2e99d94

15 years agoTests for (and changes to) the code to switch between WAL and rollback modes.
dan [Wed, 21 Apr 2010 18:37:57 +0000 (18:37 +0000)] 
Tests for (and changes to) the code to switch between WAL and rollback modes.

FossilOrigin-Name: 9f4f933f2c6596064fcfc7fb5add87e8c5b57448

15 years agoIf, after obtaining a SHARED lock, there exists a *-wal file in the file-system,...
dan [Wed, 21 Apr 2010 11:43:38 +0000 (11:43 +0000)] 
If, after obtaining a SHARED lock, there exists a *-wal file in the file-system, use WAL mode. This is necessary to recover from a crash that damages the first page of the database file.

FossilOrigin-Name: 33cabf271b8f4dda508a610bf59964273fe2cb84

15 years agoMinor changes to test cases to account for the fact that databases with read/write...
dan [Wed, 21 Apr 2010 06:19:12 +0000 (06:19 +0000)] 
Minor changes to test cases to account for the fact that databases with read/write versions of 2 are now understood.

FossilOrigin-Name: 278ed41e1d4bbff9544cb2cf4cf52dbbcf0c17df

15 years agoUse the read and write version fields of the database header to mark a database as...
dan [Tue, 20 Apr 2010 18:53:15 +0000 (18:53 +0000)] 
Use the read and write version fields of the database header to mark a database as operating in wal-mode.

FossilOrigin-Name: 96bef18c1411c3e0348295886f105e1646c46320

15 years agoAdd the sqlite3_log_hook() interface for scheduling checkpoints.
dan [Mon, 19 Apr 2010 18:03:51 +0000 (18:03 +0000)] 
Add the sqlite3_log_hook() interface for scheduling checkpoints.

FossilOrigin-Name: 9bda601455705475075e33bfa85687bce34b15ff

15 years agoAdd some comments regarding file-locks to log.c.
dan [Sat, 17 Apr 2010 18:50:27 +0000 (18:50 +0000)] 
Add some comments regarding file-locks to log.c.

FossilOrigin-Name: 9d51c3b754f0b94fea5ef3d669ad583b93b2b024

15 years agoDo not sync any files in wal mode if "PRAGMA synchronous=off" is set. If files are...
dan [Sat, 17 Apr 2010 17:34:41 +0000 (17:34 +0000)] 
Do not sync any files in wal mode if "PRAGMA synchronous=off" is set. If files are synced, pass either SQLITE_SYNC_FULL or SQLITE_SYNC_NORMAL to the xSync() callback as configured by "PRAGMA fullfsync".

FossilOrigin-Name: 0ae91b0008b242a47385fc1f295c6b645483ee22

15 years agoIt is possible for sqlite3.pUnlockConnection to be non-NULL when
drh [Sat, 17 Apr 2010 16:10:19 +0000 (16:10 +0000)] 
It is possible for sqlite3.pUnlockConnection to be non-NULL when
sqlite3.pBlockingConnection is NULL, as the notify1.test script
demonstrates.

FossilOrigin-Name: 95ff76ef67d6189f54375973fa485d6eb464b029

15 years agoMerge with trunk commit [3e646e3f4c].
dan [Sat, 17 Apr 2010 15:45:35 +0000 (15:45 +0000)] 
Merge with trunk commit [3e646e3f4c].

FossilOrigin-Name: 43463970f5885fb116588695146f2a56cb22804a

15 years agoIn synchronous=normal mode, do not sync the log after every transaction. In synchrono...
dan [Sat, 17 Apr 2010 15:42:43 +0000 (15:42 +0000)] 
In synchronous=normal mode, do not sync the log after every transaction. In synchronous=full mode, sync the log and add any extra frames required to avoid blast-radius related problems after each transaction.

FossilOrigin-Name: 9bc9b6847303d0324543a9ded8dd0473490122d8

15 years agoChange sqlite3_step() so that it automatically calls sqlite3_reset() instead
drh [Sat, 17 Apr 2010 12:53:19 +0000 (12:53 +0000)] 
Change sqlite3_step() so that it automatically calls sqlite3_reset() instead
of returning SQLITE_MISUSE when invoked on a prepared statement that
previously returned any value other than SQLITE_ROW.

FossilOrigin-Name: 3e646e3f4cd0ca288e444561e951cecfdaee2ab5

15 years agoEnhancements to wal-mode locking scheme.
dan [Sat, 17 Apr 2010 12:31:37 +0000 (12:31 +0000)] 
Enhancements to wal-mode locking scheme.

FossilOrigin-Name: 8549c286497f3d2cd118be1334fce00d6f8a26c4

15 years agoChanges for branch coverage of notify.c. Fixed quirk of
shaneh [Fri, 16 Apr 2010 22:05:31 +0000 (22:05 +0000)] 
Changes for branch coverage of notify.c.   Fixed quirk of
unlock_notify() where it would still think it was blocked
after a callback was cleared (even after the transaction
on the blocking connection was closed).

FossilOrigin-Name: c54e8dad01b0ecaf8d66b10e64e862dcad8a6746

15 years agoChange the log file format to include a small (12 byte) header at the start of the...
dan [Fri, 16 Apr 2010 13:59:31 +0000 (13:59 +0000)] 
Change the log file format to include a small (12 byte) header at the start of the file.

FossilOrigin-Name: 9865d14d6041874bc1239ce7a061d5c75f2d33c9

15 years agoFix bug in log recovery (last frame in log was being ignored). Also remove an incorre...
dan [Fri, 16 Apr 2010 11:30:18 +0000 (11:30 +0000)] 
Fix bug in log recovery (last frame in log was being ignored). Also remove an incorrect assert statement.

FossilOrigin-Name: 67d2a89ec2d593a077eb19a6ea2b06cb1c2e9ba8

15 years agoDisable query flattening when the outer query is a compound SELECT and
drh [Thu, 15 Apr 2010 23:24:29 +0000 (23:24 +0000)] 
Disable query flattening when the outer query is a compound SELECT and
the inner query has a LIMIT clause.  Ticket [02a8e81d44].

FossilOrigin-Name: f96782b389b5b97b488dc5814f7082e0393f64cd

15 years agoAllow writers to write dirty pages to the log mid-transaction in order to free memory.
dan [Thu, 15 Apr 2010 16:45:34 +0000 (16:45 +0000)] 
Allow writers to write dirty pages to the log mid-transaction in order to free memory.

FossilOrigin-Name: ecd828f96909895535d7dc744e5a8530e234e04d

15 years agoMerge two leaves on the WAL branch.
dan [Thu, 15 Apr 2010 13:33:18 +0000 (13:33 +0000)] 
Merge two leaves on the WAL branch.

FossilOrigin-Name: c9ed66cc3994b3b0d67a6c950b552a1a869f2ed2

15 years agoThe query planner fix of check-in [33b1f584ef] should have been on the trunk.
drh [Thu, 15 Apr 2010 13:29:37 +0000 (13:29 +0000)] 
The query planner fix of check-in [33b1f584ef] should have been on the trunk.

FossilOrigin-Name: f538d759beda67e042b66181b65bd432488f7650

15 years agoFix a problem in the result set size estimation logic of the query planner -
drh [Thu, 15 Apr 2010 12:36:06 +0000 (12:36 +0000)] 
Fix a problem in the result set size estimation logic of the query planner -
a problem introduced by the two previous changes.

FossilOrigin-Name: 33b1f584ef712625c4df8e2aefe895fa89f6a795

15 years agoChange the way checksums are calculated.
dan [Thu, 15 Apr 2010 10:58:51 +0000 (10:58 +0000)] 
Change the way checksums are calculated.

FossilOrigin-Name: 84955c2e9ce526c5a3ed479aa09f093a7e37c7d0

15 years agoBring over the recent query planner enhancements from the trunk.
drh [Thu, 15 Apr 2010 02:37:10 +0000 (02:37 +0000)] 
Bring over the recent query planner enhancements from the trunk.

FossilOrigin-Name: 82969f27e5ea843cb379666d8a02e4a3fddc03b2

15 years agoFurther refinements to table order selection on join query planning.
drh [Thu, 15 Apr 2010 01:04:54 +0000 (01:04 +0000)] 
Further refinements to table order selection on join query planning.

FossilOrigin-Name: defaf0d99a807027f8883bf821b6482025f9f54e

15 years agoThe query planner uses non-indexable WHERE clause terms to reduce the
drh [Wed, 14 Apr 2010 19:01:44 +0000 (19:01 +0000)] 
The query planner uses non-indexable WHERE clause terms to reduce the
estimated number of output rows, then uses the estimated number of output
rows as a tie-breaker when choosing table order.

FossilOrigin-Name: b87cb0c2bd9c52a938795a974e101879b81210e3

15 years agoAdd tests and fix bugs in WAL locking mechanism.
dan [Wed, 14 Apr 2010 18:50:08 +0000 (18:50 +0000)] 
Add tests and fix bugs in WAL locking mechanism.

FossilOrigin-Name: c18077f2465fc34830f11c9832e76be5746eaeea

15 years agoAdd tests to check inter-process WAL locking.
dan [Wed, 14 Apr 2010 18:06:50 +0000 (18:06 +0000)] 
Add tests to check inter-process WAL locking.

FossilOrigin-Name: 9435f3135849e0d38fde1669201db508561a6308

15 years agoImprove the logLockRegion() function in log.c.
dan [Wed, 14 Apr 2010 15:49:40 +0000 (15:49 +0000)] 
Improve the logLockRegion() function in log.c.

FossilOrigin-Name: 5e9dd3bd8e829376408925fb4cfcd5bb1eb1105f

15 years agoFixes for locking issues in WAL mode.
dan [Wed, 14 Apr 2010 11:23:30 +0000 (11:23 +0000)] 
Fixes for locking issues in WAL mode.

FossilOrigin-Name: a9617eff39177250e2f118f25fdd4b3acb8b0478

15 years agoAdd experimental locking scheme.
dan [Tue, 13 Apr 2010 19:27:31 +0000 (19:27 +0000)] 
Add experimental locking scheme.

FossilOrigin-Name: 3f958e87c33d667d299b03ffdef58db5dc6363f4

15 years agoFix an uninitialized variable in readDbPage of pager.c.
drh [Tue, 13 Apr 2010 15:30:53 +0000 (15:30 +0000)] 
Fix an uninitialized variable in readDbPage of pager.c.

FossilOrigin-Name: f4e1150fed2c520c7c52612cb1019429d78dc32a

15 years agoRemove old code to interpret an argument (no longer used) to "PRAGMA checkpoint".
dan [Tue, 13 Apr 2010 11:56:03 +0000 (11:56 +0000)] 
Remove old code to interpret an argument (no longer used) to "PRAGMA checkpoint".

FossilOrigin-Name: 27dc5977c19e717afd65d3805557e38dec7bedcb

15 years agoFix other problems in the WAL test scripts.
dan [Tue, 13 Apr 2010 11:45:31 +0000 (11:45 +0000)] 
Fix other problems in the WAL test scripts.

FossilOrigin-Name: dcb31181db246dd3f81ce63b144dd0cf95f06ee3

15 years agoFix test script issues preventing walthread.test from running.
dan [Tue, 13 Apr 2010 11:35:01 +0000 (11:35 +0000)] 
Fix test script issues preventing walthread.test from running.

FossilOrigin-Name: d90b1dde0702ceb0eae2a3da36733a7e5b1a6b3a

15 years agoFix a pager bug introduced by the wal code.
dan [Tue, 13 Apr 2010 11:18:40 +0000 (11:18 +0000)] 
Fix a pager bug introduced by the wal code.

FossilOrigin-Name: 4a0b29dc5e573a5d696ede17db5d7acf8d23aa98

15 years agoSync wal branch with [012cf101bf].
dan [Tue, 13 Apr 2010 06:20:45 +0000 (06:20 +0000)] 
Sync wal branch with [012cf101bf].

FossilOrigin-Name: 9d690f24f634696f76fa38372461cfa69263e91e

15 years agoTest that the rollback-hook is invoked if a commit-hook implementation returns non...
dan [Tue, 13 Apr 2010 06:18:02 +0000 (06:18 +0000)] 
Test that the rollback-hook is invoked if a commit-hook implementation returns non-zero (causing a rollback). Remove documentation comment that says otherwise from sqlite.h.in.

FossilOrigin-Name: 012cf101bf8be9e39c138786ea5a5039b8131e55

15 years agoAdd e_fts3.test to the set of tests excluded from the inmemory_journal
drh [Mon, 12 Apr 2010 20:54:13 +0000 (20:54 +0000)] 
Add e_fts3.test to the set of tests excluded from the inmemory_journal
exclusion list, since it does simulated OOM errors which trigger I/O errors
and SQLite is unable to recover from I/O errors without a persistent journal.

FossilOrigin-Name: e7e7127f0b0db582274338a9fefc30a0c0be07c3

15 years agoRecent changes cause the xSync method of the memory journal implementation
drh [Mon, 12 Apr 2010 19:44:22 +0000 (19:44 +0000)] 
Recent changes cause the xSync method of the memory journal implementation
to be used, so remove the assert(0).

FossilOrigin-Name: 1f2cb9402838373f6370660dfc885013df079895

15 years agoClear a global variable in e_fts3.test before it is used.
drh [Mon, 12 Apr 2010 19:43:43 +0000 (19:43 +0000)] 
Clear a global variable in e_fts3.test before it is used.

FossilOrigin-Name: ae89dfd26b65fb1a3633a4338f5cb5e54a7d2035

15 years agoRemove duplicate secure_delete pragma implemention.
drh [Mon, 12 Apr 2010 19:31:59 +0000 (19:31 +0000)] 
Remove duplicate secure_delete pragma implemention.

FossilOrigin-Name: c15fda145b621fc86402914aa5b015e53590555a

15 years agoAdd "log.h", which should have been part of the previous commit.
dan [Mon, 12 Apr 2010 19:05:58 +0000 (19:05 +0000)] 
Add "log.h", which should have been part of the previous commit.

FossilOrigin-Name: 8de9f010044fc992b5b45a7bb0da1284b404ecdb

15 years agoImport experimental write-ahead-logging code.
dan [Mon, 12 Apr 2010 19:00:29 +0000 (19:00 +0000)] 
Import experimental write-ahead-logging code.

FossilOrigin-Name: 409d61baeb0a19d1700c973f16c8acef7b8506cd

15 years agoFix a problem where a process in exclusive mode could delete a hot-journal file witho...
dan [Mon, 12 Apr 2010 17:08:44 +0000 (17:08 +0000)] 
Fix a problem where a process in exclusive mode could delete a hot-journal file without rolling it back from within sqlite3_close() or DETACH. This problem was introduced by the previous commit, it is not present in any releases.

FossilOrigin-Name: 51a613950824698687c0db83b7884db33d45f7f5

15 years agoReset the simulated device in the test harness to its default
drh [Mon, 12 Apr 2010 14:51:10 +0000 (14:51 +0000)] 
Reset the simulated device in the test harness to its default
configuration whenever it is restarted.

FossilOrigin-Name: 562d20e662da474ea326165730ecfdfcf9b414ee

15 years agoFix issues and clarify the operation of pager_playback_one_page().
drh [Sat, 10 Apr 2010 17:52:57 +0000 (17:52 +0000)] 
Fix issues and clarify the operation of pager_playback_one_page().
A block comment in pager.c identifies 13 invariants on the pager subsystem.
Ticket [9d68c883132c8].

FossilOrigin-Name: 0906597698b697ab2993a460f257e326cb58e475

15 years agoAdd a test case for the OOM-fault corruption issue.
drh [Fri, 9 Apr 2010 23:05:24 +0000 (23:05 +0000)] 
Add a test case for the OOM-fault corruption issue.
Ticket [9d68c883132c8].

FossilOrigin-Name: 0a64a937b583c32c02c83fc669addf79662efea8

15 years agoCandidate fix for a pager bug associated with sqlite3PagerMovepage().
drh [Fri, 9 Apr 2010 15:34:06 +0000 (15:34 +0000)] 
Candidate fix for a pager bug associated with sqlite3PagerMovepage().

FossilOrigin-Name: 8c046eb6d16682d5e755624deb4f76f57350b9c9

15 years agoAvoid unnecessary calls to sqlite3_step() with null prepared statements
drh [Fri, 9 Apr 2010 09:14:05 +0000 (09:14 +0000)] 
Avoid unnecessary calls to sqlite3_step() with null prepared statements
while parsing the schema.

FossilOrigin-Name: ae04d2d15d3d96f607adb394a631d96cd4cf2c1d

15 years agoFix a typo in a comment. No changes to code.
drh [Thu, 8 Apr 2010 17:35:34 +0000 (17:35 +0000)] 
Fix a typo in a comment.  No changes to code.

FossilOrigin-Name: 332cb55113a621456c6522830585434146c388e7

15 years agoFix code coverage problems in where.c.
drh [Thu, 8 Apr 2010 17:28:00 +0000 (17:28 +0000)] 
Fix code coverage problems in where.c.

FossilOrigin-Name: b04a52824971e8880e4bf0d9862db4eef8b607ab

15 years agoAdditional automatic index tests.
drh [Thu, 8 Apr 2010 16:30:38 +0000 (16:30 +0000)] 
Additional automatic index tests.

FossilOrigin-Name: 99d8e325e9eb8905631b06676206e6412f386d08

15 years agoNew test cases for automatic indices. New testcase() macros associated
drh [Thu, 8 Apr 2010 15:01:44 +0000 (15:01 +0000)] 
New test cases for automatic indices.  New testcase() macros associated
with column-used bitmasks.

FossilOrigin-Name: e1aa48ace7e43c3805278120b8228ee597e2cee7

15 years agoFix the computation of the number of rows in a table during automatic
drh [Thu, 8 Apr 2010 15:00:59 +0000 (15:00 +0000)] 
Fix the computation of the number of rows in a table during automatic
index generation.

FossilOrigin-Name: edeab06a5010c82491a6cc9393cf2a35a7622ac5

15 years agoFix an integer overflow bug in the automatic index logic. The bug was
drh [Thu, 8 Apr 2010 14:38:51 +0000 (14:38 +0000)] 
Fix an integer overflow bug in the automatic index logic.  The bug was
detected by the testcase() macros added in the previous check-in.  Also
add some more testcase() macros, since this issue points up their importance.

FossilOrigin-Name: af97b4881a8f010055cde672634141d7ed6898fc

15 years agoAdd testcase() macros to the automatic index logic to insure that boundary
drh [Thu, 8 Apr 2010 14:15:56 +0000 (14:15 +0000)] 
Add testcase() macros to the automatic index logic to insure that boundary
cases are tested.

FossilOrigin-Name: 7286547847721b8f5f64bc2e7dc236652b1ae985

15 years agoMake sure F_OK, R_OK, and W_OK are defined in test_demovfs.c. Define them manually
drh [Thu, 8 Apr 2010 11:35:18 +0000 (11:35 +0000)] 
Make sure F_OK, R_OK, and W_OK are defined in test_demovfs.c.  Define them manually
if they are not.  This is necessary to get the module to compile on some systems.

FossilOrigin-Name: 7c8afc3272fa91e2b5685b009eb674dbc1b5920d

15 years agoMerge automatic index changes into the trunk.
drh [Thu, 8 Apr 2010 01:16:19 +0000 (01:16 +0000)] 
Merge automatic index changes into the trunk.

FossilOrigin-Name: bf7b8d863665870a38f0b2335cc71de856a515b4

15 years agoWhen constructing automatic indices do not include the same column more than
drh [Thu, 8 Apr 2010 00:40:15 +0000 (00:40 +0000)] 
When constructing automatic indices do not include the same column more than
once.

FossilOrigin-Name: d067d9f7a9138e026c1018361127e34385928657

15 years agoPull over the latest changes from the trunk.
drh [Wed, 7 Apr 2010 20:32:18 +0000 (20:32 +0000)] 
Pull over the latest changes from the trunk.

FossilOrigin-Name: e388fe8be878c80ef0bfd1699a7268cdb22cb3c6

15 years agoWhen rolling back a savepoint to the beginning of the transaction, make sure
drh [Wed, 7 Apr 2010 20:29:56 +0000 (20:29 +0000)] 
When rolling back a savepoint to the beginning of the transaction, make sure
to initialize the database size in the btree layer correctly even if the
database size field of the header is zeroed.

FossilOrigin-Name: a3540c6acf2bb6bdd44c101b63f17ca85e6b68ed

15 years agoAdd an interface to the SQLITE_STMTSTATUS_AUTOINDEX status information
drh [Wed, 7 Apr 2010 19:31:59 +0000 (19:31 +0000)] 
Add an interface to the SQLITE_STMTSTATUS_AUTOINDEX status information
to the TCL bindings.  Add some simple automatic index test cases.

FossilOrigin-Name: 1f40441204d9a912b1d6b67ff6ff9e17146c7abd

15 years agoWrap all automatic index changes inside SQLITE_OMIT_AUTOMATIC_INDEX. Add
drh [Wed, 7 Apr 2010 16:54:58 +0000 (16:54 +0000)] 
Wrap all automatic index changes inside SQLITE_OMIT_AUTOMATIC_INDEX.  Add
the automatic_index PRAGMA to turn it on and off.

FossilOrigin-Name: a811a47fbe4f757a7ab575ae5a0f65177a3f07c0

15 years agoMake sure that all automatic indices are covering indices. Otherwise, the
drh [Wed, 7 Apr 2010 14:59:45 +0000 (14:59 +0000)] 
Make sure that all automatic indices are covering indices.  Otherwise, the
table and index might be used together in a query but the table could get
out of sync with the automatic index through out-of-band changes.

FossilOrigin-Name: 2364313142668b3d0ad144447b4862709be929cd

15 years agoEnhance comments on the SrcList object definition to better explain the
drh [Wed, 7 Apr 2010 14:33:07 +0000 (14:33 +0000)] 
Enhance comments on the SrcList object definition to better explain the
operation of the SrcList.a[].colUsed field.  No changes to code.

FossilOrigin-Name: c0f67ea131c3e237e46311b1a3dcb3febf2ea036

15 years agoFix the trace output of the OP_Function opcode to show the correct
drh [Wed, 7 Apr 2010 14:32:11 +0000 (14:32 +0000)] 
Fix the trace output of the OP_Function opcode to show the correct
register numbers.

FossilOrigin-Name: 064c283eee82c5053e84058a0e1908e468da6ce3

15 years agoAdd file test_demovfs.c, containing a simple VFS implementation that demonstrates...
dan [Wed, 7 Apr 2010 07:57:38 +0000 (07:57 +0000)] 
Add file test_demovfs.c, containing a simple VFS implementation that demonstrates how writes to the journal file may be safely buffered by the VFS layer to improve performance on some embedded systems.

FossilOrigin-Name: af3b72d94a1b6513f02402af3ada5fb5dd390151

15 years agoVeryquick.test is now working. The SQLITE_STMTSTATUS_AUTOINDEX counter
drh [Tue, 6 Apr 2010 22:33:55 +0000 (22:33 +0000)] 
Veryquick.test is now working.  The SQLITE_STMTSTATUS_AUTOINDEX counter
added.

FossilOrigin-Name: abbf16e5e7895971710fb3a8fd9c782fc1218a77

15 years agoRuns quicktest without hitting an assert now. Some tests get unexpected
drh [Tue, 6 Apr 2010 18:51:42 +0000 (18:51 +0000)] 
Runs quicktest without hitting an assert now.  Some tests get unexpected
results still and there is a memory leak.

FossilOrigin-Name: a8224448cc305258a59a9023e6604783dda73e45

15 years agoProgress toward getting automatic indices to work. Still failing in corner
drh [Tue, 6 Apr 2010 18:28:20 +0000 (18:28 +0000)] 
Progress toward getting automatic indices to work.  Still failing in corner
cases.

FossilOrigin-Name: ac6d0fba78eb9dcd69372e128d4a039aaff4b417

15 years agoAutomatically generate transient indices for tables in joins that would
drh [Tue, 6 Apr 2010 15:57:05 +0000 (15:57 +0000)] 
Automatically generate transient indices for tables in joins that would
otherwise have to use a full table scan.

FossilOrigin-Name: 1b2a04125f964e14f3fb90171c5ab86a0641d1c9

15 years agoMinor comment changes to the OP_OpenEphemeral header. No changes to code.
drh [Mon, 5 Apr 2010 15:11:08 +0000 (15:11 +0000)] 
Minor comment changes to the OP_OpenEphemeral header.  No changes to code.

FossilOrigin-Name: 8e1d7ef47f643503aa823d9986a931a83c63648b

15 years agoSilently abandon a rollback if the journal has been truncated.
drh [Sat, 3 Apr 2010 13:08:09 +0000 (13:08 +0000)] 
Silently abandon a rollback if the journal has been truncated.

FossilOrigin-Name: 7626f6c9ea04d1a5690dd11bb13e8c3c04e3b0f5

15 years agoCheck for a failure in the call to sqlite3PagerPagecount() from within
drh [Fri, 2 Apr 2010 13:25:22 +0000 (13:25 +0000)] 
Check for a failure in the call to sqlite3PagerPagecount() from within
sqlite3PagerWrite().  (Error discovered by valgrind.)

FossilOrigin-Name: d64d181c79aee3501be6f7eb8c11ab2cc9a8d63c

15 years agoTake care to avoid a buffer over-read when adding a KEYINFO structure
drh [Fri, 2 Apr 2010 12:55:38 +0000 (12:55 +0000)] 
Take care to avoid a buffer over-read when adding a KEYINFO structure
to the P4 parameter of an opcode.

FossilOrigin-Name: 937b931a7cdad6874638158ed6a9ab6356b0bd0c

15 years agoIf the size of the database according to the header is larger than the
drh [Fri, 2 Apr 2010 12:46:45 +0000 (12:46 +0000)] 
If the size of the database according to the header is larger than the
actual database file size, report that the database is corrupt.

FossilOrigin-Name: 8eb1f2443f2712920452b7ed3fb835c7f3221191

15 years agoPager changes for code coverage testing.
drh [Fri, 2 Apr 2010 03:38:59 +0000 (03:38 +0000)] 
Pager changes for code coverage testing.

FossilOrigin-Name: b04a45ea9714e7a35372b5d6a58868b307d10502

15 years agoDisable the corruptE.test script when ENABLE_OVERSIZE_CELL_CHECK is on.
drh [Thu, 1 Apr 2010 18:33:14 +0000 (18:33 +0000)] 
Disable the corruptE.test script when ENABLE_OVERSIZE_CELL_CHECK is on.

FossilOrigin-Name: 1dc4f9fe9b83467ba014e759b93f6caa2925e4d2

15 years agoZero the filesize-in-header word for bigfile.tcl. Remove bigfile.tcl from
drh [Thu, 1 Apr 2010 16:15:56 +0000 (16:15 +0000)] 
Zero the filesize-in-header word for bigfile.tcl.  Remove bigfile.tcl from
the journaltest permutation.

FossilOrigin-Name: 63610c71ca629de5e81950bc3c2ee6014e67853b

15 years agoDo not journal the content of freelist leaf pages. This restores an
drh [Thu, 1 Apr 2010 13:41:10 +0000 (13:41 +0000)] 
Do not journal the content of freelist leaf pages.  This restores an
optimization that was accidently undone by check-in [12f7346c13] on
[2009-01-20].

FossilOrigin-Name: b1e7a1a677e1c2a6c2ab83a67070605465a3e495

15 years agoRemove a NEVER in sqlite3PagerPagecount() that can in fact be true.
drh [Thu, 1 Apr 2010 02:47:01 +0000 (02:47 +0000)] 
Remove a NEVER in sqlite3PagerPagecount() that can in fact be true.

FossilOrigin-Name: 8f00533782a0eae5613caaf86608384cb702fc51

15 years agoRestore the size information in the BtShared structure when a transaction
drh [Thu, 1 Apr 2010 02:22:19 +0000 (02:22 +0000)] 
Restore the size information in the BtShared structure when a transaction
rolls back.

FossilOrigin-Name: 802aeb30c9baf4059fa84f4693f290f80d3a4085

15 years agoMake sure an OOM error on sqlite3PagerPagecount() is detected and reported
drh [Wed, 31 Mar 2010 23:20:04 +0000 (23:20 +0000)] 
Make sure an OOM error on sqlite3PagerPagecount() is detected and reported
out to the interface.

FossilOrigin-Name: 8aecf302a5aac66e43a8cc6c4e0d917f74e9e0de

15 years agoReport corruption if a database contains a reference that is out of range
drh [Wed, 31 Mar 2010 20:29:06 +0000 (20:29 +0000)] 
Report corruption if a database contains a reference that is out of range
according to the filesize-in-header database size.

FossilOrigin-Name: a91db0b1cd0b0fbadc5c8fe2eb8863629b411d87

15 years agoClarification of the implementation of SQLITE_STMTSTATUS_FULLSCAN_STEP.
drh [Wed, 31 Mar 2010 17:47:44 +0000 (17:47 +0000)] 
Clarification of the implementation of SQLITE_STMTSTATUS_FULLSCAN_STEP.
No logical code changes - just commenting and layout changes to improve
readability.

FossilOrigin-Name: 06b9ca32255572a699dc51f46f848d0bf01255e1

15 years agoClear the column cache before populating aggregate accumulator registers. Fix fo
dan [Wed, 31 Mar 2010 15:02:56 +0000 (15:02 +0000)] 
Clear the column cache before populating aggregate accumulator registers. Fix fo
r [883034dcb5].

FossilOrigin-Name: ffc23409c7fb45dc5a8722fad26e26d207bb3213

15 years agoDocumentation enhancements for the sqlite3_log() interface. No functional
drh [Wed, 31 Mar 2010 13:57:56 +0000 (13:57 +0000)] 
Documentation enhancements for the sqlite3_log() interface.  No functional
changes to code.

FossilOrigin-Name: ba13a11108d7852c61f959cc8a5fc39c25202cae

15 years agoInclude shell.c and sqlite3.def in the amalgamation ZIP archive.
drh [Wed, 31 Mar 2010 11:52:57 +0000 (11:52 +0000)] 
Include shell.c and sqlite3.def in the amalgamation ZIP archive.
Ticket [e063139eb3f8]

FossilOrigin-Name: 0077ed5cf4e56eb81cfa850fc98e6b033708fc03