]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
14 years agoDisable the SQLITE_MAX_PAGE_SIZE compile time option (it is now always set to 65536...
dan [Wed, 18 Aug 2010 15:25:17 +0000 (15:25 +0000)] 
Disable the SQLITE_MAX_PAGE_SIZE compile time option (it is now always set to 65536). Fix some other problems in test files.

FossilOrigin-Name: 56cc883d3af5574c9dafecef8aa96d1d05c01b83

14 years agoFix issue with wal.test on Windows.
shaneh [Wed, 18 Aug 2010 14:54:03 +0000 (14:54 +0000)] 
Fix issue with wal.test on Windows.

FossilOrigin-Name: 3497f54ac2f85746c50fe6f94380a22033f2464b

14 years agoFix some compiler warnings in the MSVC build.
shaneh [Wed, 18 Aug 2010 02:28:48 +0000 (02:28 +0000)] 
Fix some compiler warnings in the MSVC build.

FossilOrigin-Name: 1f5662b7db5d623c8d99c45a8d97a0aa4427593f

14 years agoRemove a NEVER() that is actually reachable.
drh [Tue, 17 Aug 2010 19:49:14 +0000 (19:49 +0000)] 
Remove a NEVER() that is actually reachable.

FossilOrigin-Name: acb171d4cfef2fec8833f761019f5c81f0d138a0

14 years agoSuppress harmless compiler warning.
drh [Tue, 17 Aug 2010 19:40:08 +0000 (19:40 +0000)] 
Suppress harmless compiler warning.

FossilOrigin-Name: 3f8c068a41b01f59d7f5d56f3bced78587f4d26c

14 years agoReturn an error when parsing "?NNN" if NNN is so large it cannot be stored as a 32...
dan [Tue, 17 Aug 2010 19:34:13 +0000 (19:34 +0000)] 
Return an error when parsing "?NNN" if NNN is so large it cannot be stored as a 32-bit int.

FossilOrigin-Name: fc9014be0f00d046e7ba830a644f9ce93eca5db8

14 years agoIt is no longer possible to reach pagerStress() while in the error state,
drh [Tue, 17 Aug 2010 18:37:12 +0000 (18:37 +0000)] 
It is no longer possible to reach pagerStress() while in the error state,
so put a NEVER() around the error state test of that routine.

FossilOrigin-Name: d7ed463496c4474cc435d032874a4e55d780e74a

14 years agoIf an SQLITE_FULL error occurs during rollback or journal finalization, treat it...
dan [Tue, 17 Aug 2010 18:15:48 +0000 (18:15 +0000)] 
If an SQLITE_FULL error occurs during rollback or journal finalization, treat it in the same way as SQLITE_IOERR (i.e. require that the pager internals be completely reset before it is next read from or written to).

FossilOrigin-Name: 8ac185236e766becdac7248c1ba3dfa42a9464b1

14 years agoChanges to pager for improved testability.
drh [Tue, 17 Aug 2010 17:25:15 +0000 (17:25 +0000)] 
Changes to pager for improved testability.

FossilOrigin-Name: 61c64b3aeb027fcc9c25591d6b9048ac7850ad3d

14 years agoAdd tests for the BETWEEN operator to e_expr.test.
dan [Tue, 17 Aug 2010 16:06:08 +0000 (16:06 +0000)] 
Add tests for the BETWEEN operator to e_expr.test.

FossilOrigin-Name: ced6a3480fe4a8e2b93160a8419bdc3ab30935e8

14 years agoInvoke sqlite3_log() whenever one or more frames are recovered from a WAL file.
dan [Tue, 17 Aug 2010 14:52:22 +0000 (14:52 +0000)] 
Invoke sqlite3_log() whenever one or more frames are recovered from a WAL file.

FossilOrigin-Name: e05089aaefe02ec59a1923812349471a78075d29

14 years agoFix some non-ANSI C code in test_demovfs.c. Also change the same file so that attempt...
dan [Tue, 17 Aug 2010 05:55:35 +0000 (05:55 +0000)] 
Fix some non-ANSI C code in test_demovfs.c. Also change the same file so that attempting to delete a file that does not exist does not return an error.

FossilOrigin-Name: 07570ce38051a05d6e8a71e39766850f6719ac07

14 years agoRemove an superfluous branch from pager.c.
drh [Mon, 16 Aug 2010 20:02:09 +0000 (20:02 +0000)] 
Remove an superfluous branch from pager.c.

FossilOrigin-Name: 4271a95c8236bda4a4f8c02bf3a3560de1d00402

14 years agoAdd tests for different page sizes to wal.test. Including 64K pages.
dan [Mon, 16 Aug 2010 19:23:02 +0000 (19:23 +0000)] 
Add tests for different page sizes to wal.test. Including 64K pages.

FossilOrigin-Name: d95bcc052910cfd4848afe0d32f717506ad5a789

14 years agoAdd test cases designed to exercise all syntax diagram paths in lang_expr.html
dan [Mon, 16 Aug 2010 18:26:30 +0000 (18:26 +0000)] 
Add test cases designed to exercise all syntax diagram paths in lang_expr.html

FossilOrigin-Name: d4a26bb629bc739a4bca16b5a876199aa9ecda43

14 years agoFix a typo in a comment in wal.c. No code changes.
drh [Mon, 16 Aug 2010 16:31:43 +0000 (16:31 +0000)] 
Fix a typo in a comment in wal.c.  No code changes.

FossilOrigin-Name: d854a3d41c68f785c909c159cd9ca2154c64001a

14 years agoAdd ALWAYS() macros in wal.c to cover branches that are no longer reachable
drh [Mon, 16 Aug 2010 14:17:59 +0000 (14:17 +0000)] 
Add ALWAYS() macros in wal.c to cover branches that are no longer reachable
following the pager refactoring.

FossilOrigin-Name: 24f24c927c77bb3bb4d26a23dd5d94f964db8033

14 years agoAdjustments for better 64K page size handling.
drh [Sat, 14 Aug 2010 21:21:24 +0000 (21:21 +0000)] 
Adjustments for better 64K page size handling.

FossilOrigin-Name: faf1974e2de321bfefb68b81d702ae69771933ef

14 years agoAdd test case to e_expr.test.
dan [Sat, 14 Aug 2010 18:32:23 +0000 (18:32 +0000)] 
Add test case to e_expr.test.

FossilOrigin-Name: db9539f2ceabd3c5a3eb5d4701f80f4e7da9344d

14 years agoChange sqlite3PagerPagecount() to return void, since the return value was
drh [Sat, 14 Aug 2010 17:12:04 +0000 (17:12 +0000)] 
Change sqlite3PagerPagecount() to return void, since the return value was
always SQLITE_OK and was never used.

FossilOrigin-Name: 7dd78eb7974ec7c40af3fcf2b125ca5bc0766b5c

14 years agoMinor simplifications to btree.c in support of full-coverage testing.
drh [Sat, 14 Aug 2010 16:02:52 +0000 (16:02 +0000)] 
Minor simplifications to btree.c in support of full-coverage testing.

FossilOrigin-Name: 364df6c7735447cc2187923918a35bf62d82decc

14 years agoTweaks to comments in pager.c. Fix two compiler warnings.
drh [Sat, 14 Aug 2010 12:42:45 +0000 (12:42 +0000)] 
Tweaks to comments in pager.c.  Fix two compiler warnings.

FossilOrigin-Name: 68a49f7fe382e4d36e1259cdeec956c942906ddb

14 years agoAdd test cases to e_expr.test.
dan [Sat, 14 Aug 2010 12:25:18 +0000 (12:25 +0000)] 
Add test cases to e_expr.test.

FossilOrigin-Name: d8bbab78fa56b076dfafb36daa7d6ef0b07f9a44

14 years agoTest that it is possible to drop a trigger while there are active statements belongin...
dan [Sat, 14 Aug 2010 05:04:47 +0000 (05:04 +0000)] 
Test that it is possible to drop a trigger while there are active statements belonging to the same connection.

FossilOrigin-Name: d4ec61e2547200aa92a26c1f270682ed67edc241

14 years agoAdd tests to test file e_expr.test.
dan [Fri, 13 Aug 2010 18:41:09 +0000 (18:41 +0000)] 
Add tests to test file e_expr.test.

FossilOrigin-Name: 3fd1059e25a8d0cccbb30fc55b03d172bd9eb9b7

14 years agoDo not apply the flattening optimization if the sub-query is DISTINCT. Fix for [e4b8a...
dan [Fri, 13 Aug 2010 16:38:48 +0000 (16:38 +0000)] 
Do not apply the flattening optimization if the sub-query is DISTINCT. Fix for [e4b8a2ba6e].

FossilOrigin-Name: 497aafd8ed6a636a8bd5fa2cad265a20593ee34f

14 years agoIf an error occurs in PagerSetPagesize(), set the output variable to the unmodified...
dan [Thu, 12 Aug 2010 16:36:34 +0000 (16:36 +0000)] 
If an error occurs in PagerSetPagesize(), set the output variable to the unmodified page-size before returning.

FossilOrigin-Name: 02def8f92588b8a45dff3976d1e7f9e3f0359b3b

14 years agoAdd coverage tests for pager.c.
dan [Thu, 12 Aug 2010 11:25:47 +0000 (11:25 +0000)] 
Add coverage tests for pager.c.

FossilOrigin-Name: 228c5b16af80c22e97d9d4deb351e0d3f4523f89

14 years agoIncrease the maximum page size from 32k to 64k.
drh [Thu, 12 Aug 2010 02:41:12 +0000 (02:41 +0000)] 
Increase the maximum page size from 32k to 64k.

FossilOrigin-Name: 45362437d491fbe0f033a67b398f8ba68cbf1b3b

14 years agoImprove coverage of pager.c.
dan [Wed, 11 Aug 2010 18:56:45 +0000 (18:56 +0000)] 
Improve coverage of pager.c.

FossilOrigin-Name: 2fa05d01b6b11788a5b73d203fcac9d4a4ba9fd8

14 years agoUpdate an r-tree extension test case to account for recent changes to the query plann...
dan [Wed, 11 Aug 2010 12:26:46 +0000 (12:26 +0000)] 
Update an r-tree extension test case to account for recent changes to the query planner. Also fix a comment in rtree.c.

FossilOrigin-Name: eaaca669a4afc83906806b22365b010c83bc3db8

14 years agoUse sqlite3DbFree() instead of sqlite3_free() to free any error message reported...
dan [Wed, 11 Aug 2010 11:59:37 +0000 (11:59 +0000)] 
Use sqlite3DbFree() instead of sqlite3_free() to free any error message reported by the parser layer while attempting to parse a CREATE TABLE statement passed to sqlite3_declare_vtab().

FossilOrigin-Name: 7c674aaba52b00a78babc1e1ece7e5b652b65039

14 years agoFixes to tcl test files so that they work in auto-vacuum mode.
dan [Wed, 11 Aug 2010 11:35:50 +0000 (11:35 +0000)] 
Fixes to tcl test files so that they work in auto-vacuum mode.

FossilOrigin-Name: ea9eaf7480f6fbe2a37813508d1b730d45155966

14 years agoFix memory allocation in proxy locking so that it works with SQLITE_MEMDEBUG.
drh [Wed, 11 Aug 2010 06:14:15 +0000 (06:14 +0000)] 
Fix memory allocation in proxy locking so that it works with SQLITE_MEMDEBUG.

FossilOrigin-Name: f854cbe06355dd3455b8af4ad6366949c412434e

14 years agoMerge experimental changes into trunk.
dan [Wed, 11 Aug 2010 06:04:19 +0000 (06:04 +0000)] 
Merge experimental changes into trunk.

FossilOrigin-Name: aa092ac928dc19bd356d25a1dfd3f432dc145ce6

14 years agoFix a bug in pager.c causing it to omit the xSync() call required following a hot...
dan [Tue, 10 Aug 2010 15:46:06 +0000 (15:46 +0000)] 
Fix a bug in pager.c causing it to omit the xSync() call required following a hot-journal rollback.

FossilOrigin-Name: 42ba43ac690dc800fb8b969ae257a79942918342

14 years agoAdd variable pager.dbHintSize, used to limit the number of calls made to the xFileCon...
dan [Tue, 10 Aug 2010 09:58:57 +0000 (09:58 +0000)] 
Add variable pager.dbHintSize, used to limit the number of calls made to the xFileControl(FCNTL_SIZE_HINT) method.

FossilOrigin-Name: eb3ac895bd92c880ac6acca58de8cf9643c2b5e4

14 years agoChanges to debugging code in mutex_unix.c and mutex_w32.c to make an assert() stateme...
dan [Tue, 10 Aug 2010 07:12:26 +0000 (07:12 +0000)] 
Changes to debugging code in mutex_unix.c and mutex_w32.c to make an assert() statement threadsafe.

FossilOrigin-Name: e82e32bd431ccacd276df8241592eb5519d87122

14 years agoModify some comments in pager.c.
dan [Mon, 9 Aug 2010 19:17:29 +0000 (19:17 +0000)] 
Modify some comments in pager.c.

FossilOrigin-Name: 5662da6d4f648e5d07d7cbea6bbd92fa684c02c9

14 years agoMerge latest trunk changes with experimental branch.
dan [Mon, 9 Aug 2010 16:52:12 +0000 (16:52 +0000)] 
Merge latest trunk changes with experimental branch.

FossilOrigin-Name: aecbd890327dc676d6c2366b07f3d2e636a4983e

14 years agoFix a memory leak in test_journal.c causing tests to fail.
dan [Mon, 9 Aug 2010 16:12:51 +0000 (16:12 +0000)] 
Fix a memory leak in test_journal.c causing tests to fail.

FossilOrigin-Name: f229487cccc7514b2663e8e6e04798702c9cfb10

14 years agoFix typos in comments. No functional changes to the code.
drh [Mon, 9 Aug 2010 15:44:21 +0000 (15:44 +0000)] 
Fix typos in comments.  No functional changes to the code.

FossilOrigin-Name: 9cebaf2dca6dc35e489537fe7c55474e1029a98e

14 years agoChange to tcl test infrastructure so that --malloctrace=1 works when sizeof(int)...
dan [Mon, 9 Aug 2010 14:47:50 +0000 (14:47 +0000)] 
Change to tcl test infrastructure so that --malloctrace=1 works when sizeof(int)!=sizeof(void*).

FossilOrigin-Name: c3e771b3cf685f4237a2516ee7111849bf0ffb3f

14 years agoFix two comment typos that were reported on the mailing list.
drh [Mon, 9 Aug 2010 14:26:32 +0000 (14:26 +0000)] 
Fix two comment typos that were reported on the mailing list.

FossilOrigin-Name: 88bf9016277c133dfbf4f4b2be0c35c9fe9fabd6

14 years agoFix a problem causing the return code of an xSync call to be ignored in wal.c.
dan [Mon, 9 Aug 2010 07:51:40 +0000 (07:51 +0000)] 
Fix a problem causing the return code of an xSync call to be ignored in wal.c.

FossilOrigin-Name: f1b2b5f9c3a5561ea6108283ae08404106c3f8bc

14 years agoIn WAL mode, ignore any error returned by an xFileControl(FCNTL_SIZE_HINT) call....
dan [Mon, 9 Aug 2010 07:07:37 +0000 (07:07 +0000)] 
In WAL mode, ignore any error returned by an xFileControl(FCNTL_SIZE_HINT) call. This matches the behaviour in rollback mode.

FossilOrigin-Name: 158a309737bd4cdc033cd504a6d0cc43c15b6e17

14 years agoFix minor problems and update comments in pager.c.
dan [Sat, 7 Aug 2010 16:17:48 +0000 (16:17 +0000)] 
Fix minor problems and update comments in pager.c.

FossilOrigin-Name: 92e456374b052aceff356d10317b5b94fcdeaa5c

14 years agoFix a problem wherein changing the journal-mode immediately after leaving exclusive...
dan [Sat, 7 Aug 2010 09:31:14 +0000 (09:31 +0000)] 
Fix a problem wherein changing the journal-mode immediately after leaving exclusive-locking mode could lead to the database being unlocked without clearing the changeCountDone flag.

FossilOrigin-Name: 531abc808526d607768bf6f503268d4cc66ab169

14 years agoAdd test case 'cgt_pager_1', intended for use with callgrind to detect performance...
dan [Sat, 7 Aug 2010 05:15:22 +0000 (05:15 +0000)] 
Add test case 'cgt_pager_1', intended for use with callgrind to detect performance regression in the pager module, to threadtest3.c.

FossilOrigin-Name: b5d46f1ea08db2b88d2205bc283b9262ad970b55

14 years agoRemove all vestiges of ctype.h from FTS3.
drh [Fri, 6 Aug 2010 19:00:12 +0000 (19:00 +0000)] 
Remove all vestiges of ctype.h from FTS3.

FossilOrigin-Name: b8b465ed2c56b23b50334680a2a940885b1ac530

14 years agoFurther enhancements to comments in pager.c.
dan [Fri, 6 Aug 2010 17:18:00 +0000 (17:18 +0000)] 
Further enhancements to comments in pager.c.

FossilOrigin-Name: 876162c7e036af1cb447409b685afc72c0061a32

14 years agoFix some problems with running test scripts with the inmemory_journal permutation.
dan [Fri, 6 Aug 2010 14:37:13 +0000 (14:37 +0000)] 
Fix some problems with running test scripts with the inmemory_journal permutation.

FossilOrigin-Name: 7bd8ba084e75bcd5c744e1d4a1812df3a4d91887

14 years agoMerge trunk changes into experimental branch.
dan [Fri, 6 Aug 2010 13:53:09 +0000 (13:53 +0000)] 
Merge trunk changes into experimental branch.

FossilOrigin-Name: aef6698c732f3f9e46986f53e63ca2bdf5f7d208

14 years agoDo not run some tests in notify3.test with the inmemory_journal permutation. They...
dan [Fri, 6 Aug 2010 13:50:07 +0000 (13:50 +0000)] 
Do not run some tests in notify3.test with the inmemory_journal permutation. They do not pass as the tests assume that the database schema is not loaded until the first invocation of [db eval]. This is not true with the inmemory_journal permutation.

FossilOrigin-Name: 698fba826e40ce6414cf6c261441d68b174c1637

14 years agoFurther updates to comments in pager.c.
dan [Fri, 6 Aug 2010 12:00:27 +0000 (12:00 +0000)] 
Further updates to comments in pager.c.

FossilOrigin-Name: 5f4c17a33fd442d66c1bf75af9b21954f6906897

14 years agoModify test_journal.c to work with pre-allocated databases.
dan [Fri, 6 Aug 2010 09:43:03 +0000 (09:43 +0000)] 
Modify test_journal.c to work with pre-allocated databases.

FossilOrigin-Name: 4894a5d21044b169f412fef095e689cb8a8575dc

14 years agoFix a bug to do with deleting the journal file when exiting exclusive-locking mode.
dan [Fri, 6 Aug 2010 06:54:47 +0000 (06:54 +0000)] 
Fix a bug to do with deleting the journal file when exiting exclusive-locking mode.

FossilOrigin-Name: 6217b607f0cd60383c6cb4ab0fe9da008f611244

14 years agoChange two automatic array variables into static constant arrays.
drh [Fri, 6 Aug 2010 02:10:00 +0000 (02:10 +0000)] 
Change two automatic array variables into static constant arrays.
Update and reformat some comments for cleaner presentation.

FossilOrigin-Name: a7a15547cccb4aeb719aba19641f31390c316d8c

14 years agoAdd comments describing UNKNOWN_LOCK to pager.c. Improve some other comments i the...
dan [Thu, 5 Aug 2010 18:53:26 +0000 (18:53 +0000)] 
Add comments describing UNKNOWN_LOCK to pager.c. Improve some other comments i the same file.

FossilOrigin-Name: 54eff6de9d8d87f33192c192ca91907c4c090988

14 years agoMerge trunk changes with experimental branch.
dan [Thu, 5 Aug 2010 16:22:49 +0000 (16:22 +0000)] 
Merge trunk changes with experimental branch.

FossilOrigin-Name: acd26b8b746980c344db017a0e96dbd92c89acdf

14 years agoCatch an error code that was not being propagated back to the caller.
dan [Thu, 5 Aug 2010 16:08:26 +0000 (16:08 +0000)] 
Catch an error code that was not being propagated back to the caller.

FossilOrigin-Name: 800f496929fb0d45d16c573c5dca0197ac922e2b

14 years agoFixes for error handling with temp databases. And for errors that occur within OS...
dan [Thu, 5 Aug 2010 15:30:22 +0000 (15:30 +0000)] 
Fixes for error handling with temp databases. And for errors that occur within OS locking primitives.

FossilOrigin-Name: f99a902f9b3d0bf6f607c4ba641b4096fbbef5d5

14 years agoMake the size of a Bitvec object 512 bytes on all platforms, instead of
drh [Thu, 5 Aug 2010 11:56:01 +0000 (11:56 +0000)] 
Make the size of a Bitvec object 512 bytes on all platforms, instead of
having the size depend on the size of a pointer.  This makes testing easier.

FossilOrigin-Name: ca479f3de2927ccc05dc76d10e40c00b8e0c88d1

14 years agoDo not read the database file size on a SAVEPOINT rollback any more since
drh [Thu, 5 Aug 2010 03:21:39 +0000 (03:21 +0000)] 
Do not read the database file size on a SAVEPOINT rollback any more since
after checkin [65b8636ac6e5] the in-header-size field is always valid.

FossilOrigin-Name: fbe70e1106bcc5086ceb9d8f39cc39baf3643092

14 years agoFix the query planner so that when it has a choice of full-scan tables to
drh [Thu, 5 Aug 2010 02:52:32 +0000 (02:52 +0000)] 
Fix the query planner so that when it has a choice of full-scan tables to
move to the outer loop, it chooses the one that is likely to give the fewest
output rows.

FossilOrigin-Name: 309bbedf9648c750d7b8aedbc15d4fd68f846824

14 years agoIf the outer loop of a join must be a full table scan, make sure that an
drh [Wed, 4 Aug 2010 21:17:16 +0000 (21:17 +0000)] 
If the outer loop of a join must be a full table scan, make sure that an
incomplete ANALYZE does not trick the planner into use a table that might
be indexable in an inner loop.  Ticket [13f033c865f878]

FossilOrigin-Name: e7a714b52c45af096af74049826d32c647abfe3f

14 years agoFix some problems with error recovery introduced while reworking pager state.
dan [Wed, 4 Aug 2010 19:14:22 +0000 (19:14 +0000)] 
Fix some problems with error recovery introduced while reworking pager state.

FossilOrigin-Name: 77eaab6f77c53cc4f429b65dfcf287ad6084c2da

14 years agoWhen opening a write-transaction on a database file that has been appended to or...
dan [Wed, 4 Aug 2010 11:34:31 +0000 (11:34 +0000)] 
When opening a write-transaction on a database file that has been appended to or truncated by a pre-3.7.0 client, update the database-size field in the database header. Fix for [51ae9cad31].

FossilOrigin-Name: 65b8636ac6e5d3e4502d4f576ddf9350d5df3022

14 years agoMerge trunk changes into experimental branch.
dan [Tue, 3 Aug 2010 18:29:04 +0000 (18:29 +0000)] 
Merge trunk changes into experimental branch.

FossilOrigin-Name: 15368a9f8523d5fb611cd576080daed2cf2f1500

14 years agoSet the Pager.eState variable to PAGER_ERROR whenever the pager enters the error...
dan [Tue, 3 Aug 2010 18:18:41 +0000 (18:18 +0000)] 
Set the Pager.eState variable to PAGER_ERROR whenever the pager enters the error state.

FossilOrigin-Name: 4d384761d27425b71555f4f3262778277a955835

14 years agoFix disabled implementation-mark comments in func.c.
drh [Tue, 3 Aug 2010 18:06:25 +0000 (18:06 +0000)] 
Fix disabled implementation-mark comments in func.c.

FossilOrigin-Name: 57c0960038b8ce97f9d6665f15e7f6ec310c681f

14 years agoAdd comments to clarify the purpose of the pager "error state".
dan [Tue, 3 Aug 2010 15:57:09 +0000 (15:57 +0000)] 
Add comments to clarify the purpose of the pager "error state".

FossilOrigin-Name: fde4c59782e98366792e1552fd122e7d80a277ff

14 years agoFix the REPLACE conflict resolution so that it falls back to ABORT when
drh [Tue, 3 Aug 2010 13:08:54 +0000 (13:08 +0000)] 
Fix the REPLACE conflict resolution so that it falls back to ABORT when
a CHECK constraint fails.  Ticket [c38baa3d969eab794].

FossilOrigin-Name: 4e157b774764b8bafc9fabb88decf54f178b5ff5

14 years agoAdd state diagram to comments in experimental version of pager.c.
dan [Tue, 3 Aug 2010 12:48:45 +0000 (12:48 +0000)] 
Add state diagram to comments in experimental version of pager.c.

FossilOrigin-Name: 16dcf5a6d3ebff9a734705693b5ac740f4ff2cc1

14 years agoIncremental checkin on pager state refactoring.
dan [Tue, 3 Aug 2010 06:42:39 +0000 (06:42 +0000)] 
Incremental checkin on pager state refactoring.

FossilOrigin-Name: 0a636798bdb6961a47327091715b254f79add823

14 years agoExperimental refactoring of the Pager object state.
dan [Mon, 2 Aug 2010 14:32:52 +0000 (14:32 +0000)] 
Experimental refactoring of the Pager object state.

FossilOrigin-Name: 03a240514aa07a22db787d221641253f23933e88

14 years agoModify wal2.test to disable tests requiring TCL 8.5 if the test harness is
drh [Mon, 2 Aug 2010 10:59:13 +0000 (10:59 +0000)] 
Modify wal2.test to disable tests requiring TCL 8.5 if the test harness is
compiled using TCL 8.4.

FossilOrigin-Name: 016486c7d544dcf9b7422cb0fb9804aa1c418f68

14 years agoIn shared-cache mode, do not allow one connection to checkpoint a database while...
dan [Mon, 2 Aug 2010 10:47:05 +0000 (10:47 +0000)] 
In shared-cache mode, do not allow one connection to checkpoint a database while a second connection is reading or writing the same shared-cache.

FossilOrigin-Name: e75b52d156905ce16bedb94f65c01a4640bdfa75

14 years agoFix a typo in an error message of the TCL interface.
drh [Sun, 1 Aug 2010 22:41:32 +0000 (22:41 +0000)] 
Fix a typo in an error message of the TCL interface.

FossilOrigin-Name: 8eadd7b87bfe8786e0352ca14b29d1451998c02c

14 years agoIf a database becomes corrupted such that an index is out of sync with its
drh [Fri, 30 Jul 2010 18:40:55 +0000 (18:40 +0000)] 
If a database becomes corrupted such that an index is out of sync with its
table, make sure the corruption is detected and reported back.  Do not assume
that indices always contain rowids for valid table rows.

FossilOrigin-Name: 83395a3d24f18170fc068d9e644291678694c3f0

14 years agoFix typos in comments. No code or logic changes.
drh [Fri, 30 Jul 2010 16:54:25 +0000 (16:54 +0000)] 
Fix typos in comments.  No code or logic changes.

FossilOrigin-Name: 15c294ca051ed8b5078e7ac9a969b0f9358d9184

14 years agoRemove a test from sqlite3PagerCommitPhaseOne which is now always true
drh [Fri, 30 Jul 2010 16:44:29 +0000 (16:44 +0000)] 
Remove a test from sqlite3PagerCommitPhaseOne which is now always true
after the multi-file transaction fix.

FossilOrigin-Name: 6758f6a8ec97941e09847b309812b3194eb57f19

14 years agoRemove variable Pager.needSync, which was almost completely unused.
dan [Fri, 30 Jul 2010 15:43:13 +0000 (15:43 +0000)] 
Remove variable Pager.needSync, which was almost completely unused.

FossilOrigin-Name: 347f22a5b777af92873590a5b9af5a6498bef918

14 years agoMerge trunk changes into experimental again.
dan [Fri, 30 Jul 2010 14:39:13 +0000 (14:39 +0000)] 
Merge trunk changes into experimental again.

FossilOrigin-Name: 87e0f4e184284bf775c2fc7c4e9a334f4f237c59

14 years agoChanges to the comments describing the Pager.setMaster variable in pager.c. Add an...
dan [Fri, 30 Jul 2010 11:31:12 +0000 (11:31 +0000)] 
Changes to the comments describing the Pager.setMaster variable in pager.c. Add an assert() statement to verify that two master journal pointers are not written to a single journal file.

FossilOrigin-Name: ad78ccacb00e2f8a5ca93e2c9006266d9477fe48

14 years agoCherry-pick the multi-file transaction fix for ticket [f3e5abed55] out of
drh [Fri, 30 Jul 2010 11:20:35 +0000 (11:20 +0000)] 
Cherry-pick the multi-file transaction fix for ticket [f3e5abed55] out of
the experimental branch.

FossilOrigin-Name: 40f7f0a583e6bba66cd006253a0ef4623ea74f17

14 years agoAdd the test cases for bug [f3e5abed55].
dan [Fri, 30 Jul 2010 10:09:12 +0000 (10:09 +0000)] 
Add the test cases for bug [f3e5abed55].

FossilOrigin-Name: cbbaf8e67a23dc332ce935bc7234246eacba60bf

14 years agoMake sure a connection has an exclusive lock on all database files involved in a...
dan [Fri, 30 Jul 2010 10:02:24 +0000 (10:02 +0000)] 
Make sure a connection has an exclusive lock on all database files involved in a multi-file transaction before writing the master-journal pointer into any journal files. Fix for [f3e5abed55].

FossilOrigin-Name: 50c0f2202d21bbf6b593d75fd20f13c0fac23eff

14 years agoMerge further trunk changes into experimental branch.
dan [Fri, 30 Jul 2010 07:26:51 +0000 (07:26 +0000)] 
Merge further trunk changes into experimental branch.

FossilOrigin-Name: fb847d70407b0f0e548919b7554f62bc1dab8a6c

14 years agoAdd tests to check that the ICU regexp() function can only be called with exactly...
dan [Fri, 30 Jul 2010 05:06:05 +0000 (05:06 +0000)] 
Add tests to check that the ICU regexp() function can only be called with exactly two arguments.

FossilOrigin-Name: 451d965742cc219db709939b4ba1da2f2343dbce

14 years agoUpdates to the README.txt file for ICU.
drh [Fri, 30 Jul 2010 00:31:08 +0000 (00:31 +0000)] 
Updates to the README.txt file for ICU.

FossilOrigin-Name: d37443d33388b402e610a00c362a1e2e79548801

14 years agoUnconditionally include the pTmpSpace size in the estimate of the pager
drh [Thu, 29 Jul 2010 10:13:25 +0000 (10:13 +0000)] 
Unconditionally include the pTmpSpace size in the estimate of the pager
memory used.

FossilOrigin-Name: 4b97f8640e9167cd355a24836fe74e4224cf12b9

14 years agoChange the profile timer units back to nanoseconds and update the
drh [Thu, 29 Jul 2010 10:07:21 +0000 (10:07 +0000)] 
Change the profile timer units back to nanoseconds and update the
sqlite3_profile() documentation.
Ticket [c43940c49b74c70a69]

FossilOrigin-Name: 7783b98a938b77d6b8e4e85b32b05452c47fbe4b

14 years agoCorrect handling of compound foreign key constraints that include the
drh [Thu, 29 Jul 2010 01:50:38 +0000 (01:50 +0000)] 
Correct handling of compound foreign key constraints that include the
integer primary key as one of the columns.
Ticket [ce7c133ea6cc9ccdc1]

FossilOrigin-Name: 53902f7d4a46aa70ecc5bf180a01ff888d52686a

14 years agoGet SQLITE_OMIT_VIRTUALTABLE working again after being broken by recent
drh [Wed, 28 Jul 2010 19:17:51 +0000 (19:17 +0000)] 
Get SQLITE_OMIT_VIRTUALTABLE working again after being broken by recent
changes.

FossilOrigin-Name: 33b1e862ffa7109480cf4a77ceae8aebe98d3eee

14 years agoFix the dbstatus.test script so that it works correctly on 64-bit machines.
drh [Wed, 28 Jul 2010 18:51:26 +0000 (18:51 +0000)] 
Fix the dbstatus.test script so that it works correctly on 64-bit machines.

FossilOrigin-Name: a3401d9ee540828f3efd26d89f6b771e0ecb2777

14 years agoMerge trunk changes into experimental branch.
dan [Wed, 28 Jul 2010 18:35:50 +0000 (18:35 +0000)] 
Merge trunk changes into experimental branch.

FossilOrigin-Name: aa81900153a2762cb2ad41e6710c1f1e7dc8b41e

14 years agoImprove the accuracy of the Pager heap usage estimate.
drh [Wed, 28 Jul 2010 17:36:11 +0000 (17:36 +0000)] 
Improve the accuracy of the Pager heap usage estimate.

FossilOrigin-Name: ae89777e7f8bae2cdd3407395ea84c1b39577c4b

14 years agoAdjust the shell test script "shell4.test" to account for changes in the
drh [Wed, 28 Jul 2010 17:16:41 +0000 (17:16 +0000)] 
Adjust the shell test script "shell4.test" to account for changes in the
".stat on" display format from the previous checkin.

FossilOrigin-Name: 2f2fa7dd809ae2a67048643da8c01a4664848ba7

14 years agoRecord the pcache allocation size statistics even for pcache overflow
drh [Wed, 28 Jul 2010 17:01:24 +0000 (17:01 +0000)] 
Record the pcache allocation size statistics even for pcache overflow
allocations.  Adjust the wording on one of the stat output lines in
the shell.

FossilOrigin-Name: f9adf66ad575abbb63736caef27bd3c619e516a6