]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
15 years agoAdd the write-ahead log viewer/debugger tool to the tools/ folder.
drh [Wed, 7 Jul 2010 20:38:26 +0000 (20:38 +0000)] 
Add the write-ahead log viewer/debugger tool to the tools/ folder.

FossilOrigin-Name: 0e4bd44682a252fb8af0df20f011b2b2364644b5

15 years agoFix issue in mallocI test script where db handle not released.
shaneh [Wed, 7 Jul 2010 20:00:04 +0000 (20:00 +0000)] 
Fix issue in mallocI test script where db handle not released.

FossilOrigin-Name: dd59cea6c860ad11f1794f3689a60ca6dbfffea5

15 years agoAdd further test cases to savepoint.test.
dan [Wed, 7 Jul 2010 18:38:35 +0000 (18:38 +0000)] 
Add further test cases to savepoint.test.

FossilOrigin-Name: f825205dbf3ebbfba0add86aa41f477281a13b0e

15 years agoWhen rolling back a savepoint, reset the changeCountDone flag.
dan [Wed, 7 Jul 2010 17:53:51 +0000 (17:53 +0000)] 
When rolling back a savepoint, reset the changeCountDone flag.

FossilOrigin-Name: fb62f4e3a7ceaa60ff6af2196ccf35b48759307e

15 years agoWhen using MSVC to build test code, suppress the popup dialog when abort is called...
shaneh [Wed, 7 Jul 2010 16:51:36 +0000 (16:51 +0000)] 
When using MSVC to build test code, suppress the popup dialog when abort is called from the sqlite_abort() test function.

FossilOrigin-Name: 55d3d39f1c653627fc4c048e12fdd8c4444b6de7

15 years agoFix some MSVC compiler warnings in the ASYNC extension.
shaneh [Wed, 7 Jul 2010 16:49:46 +0000 (16:49 +0000)] 
Fix some MSVC compiler warnings in the ASYNC extension.

FossilOrigin-Name: b951c8675df3e719c30a1dd94200b7c04252a3ea

15 years agoMerge together another accidental fork.
dan [Wed, 7 Jul 2010 16:23:36 +0000 (16:23 +0000)] 
Merge together another accidental fork.

FossilOrigin-Name: c41f04edb20c0c8fc8c49a53d42cc0b8a0ff7fe3

15 years agoFix test numbering issue in nan.test.
shaneh [Wed, 7 Jul 2010 16:20:38 +0000 (16:20 +0000)] 
Fix test numbering issue in nan.test.

FossilOrigin-Name: 5bb1330fef559d47dc854089dedba45bf05db192

15 years agoDo not make the SQLITE_FCNTL_SIZE_HINT call if an error has already occurred during...
dan [Wed, 7 Jul 2010 16:18:45 +0000 (16:18 +0000)] 
Do not make the SQLITE_FCNTL_SIZE_HINT call if an error has already occurred during transaction commit.

FossilOrigin-Name: e92de834a39be07da5f0848d7ec5f1f6dff902a5

15 years agoClose the file handle before returning. TCL test script issue only.
shaneh [Wed, 7 Jul 2010 15:41:55 +0000 (15:41 +0000)] 
Close the file handle before returning.  TCL test script issue only.

FossilOrigin-Name: f4076d8567243174c023b7aa7ae9ca7f8f73e33b

15 years agoFixed a new error introduced by last check-in of os_win.c. Updated xAccess() to...
shaneh [Wed, 7 Jul 2010 14:45:40 +0000 (14:45 +0000)] 
Fixed a new error introduced by last check-in of os_win.c.  Updated xAccess() to support SimulateIOError().

FossilOrigin-Name: 8eefc287265443ec043bdab629597e79c9d22006

15 years agoRemove two more testcase() macros that require 4GiB WAL files to hit.
drh [Wed, 7 Jul 2010 14:39:59 +0000 (14:39 +0000)] 
Remove two more testcase() macros that require 4GiB WAL files to hit.

FossilOrigin-Name: 16e18f2706e67210eae62edfb748758fd27f23d7

15 years agoRemove a testcase() macro that would require a 4GiB WAL to reach.
drh [Wed, 7 Jul 2010 14:35:58 +0000 (14:35 +0000)] 
Remove a testcase() macro that would require a 4GiB WAL to reach.

FossilOrigin-Name: 15f9c2713bdfd3d6c8d8d4298f101d128e39b99a

15 years agoFix a compiler warning in PRAGMA journal_mode.
drh [Wed, 7 Jul 2010 14:33:09 +0000 (14:33 +0000)] 
Fix a compiler warning in PRAGMA journal_mode.

FossilOrigin-Name: d94269e60dbcb50b8a35f142c64ed013cc0045ac

15 years agoAvoid the need for a NEVER() from pager_write_pagelist() by passing in
drh [Wed, 7 Jul 2010 14:19:13 +0000 (14:19 +0000)] 
Avoid the need for a NEVER() from pager_write_pagelist() by passing in
pPager as an extra parameter.

FossilOrigin-Name: b3179379437dbcb1d8e7f1f8f631a3e7df1a5c9a

15 years agoMerge together the accident fork.
drh [Wed, 7 Jul 2010 14:00:17 +0000 (14:00 +0000)] 
Merge together the accident fork.

FossilOrigin-Name: cdcf08cb18b1e290a4093454bebbd3e7094d6804

15 years agoFix minor issue in xAccess() method for Windows.
shaneh [Wed, 7 Jul 2010 13:58:11 +0000 (13:58 +0000)] 
Fix minor issue in xAccess() method for Windows.

FossilOrigin-Name: 4bfd46f1db41009a1b925d61c6f074b933caa4ec

15 years agoMake sure the schema is loaded before preparing a "PRAGMA journal_mode" command....
dan [Wed, 7 Jul 2010 13:54:28 +0000 (13:54 +0000)] 
Make sure the schema is loaded before preparing a "PRAGMA journal_mode" command. This helps it return meaningful results when it is the first command executed by a new database connection.

FossilOrigin-Name: ef126e775a02d69a9cab53028513e8799e1b6044

15 years agoAdd testcase macros to ensure that large-file cases are tested in WAL.
drh [Wed, 7 Jul 2010 13:43:19 +0000 (13:43 +0000)] 
Add testcase macros to ensure that large-file cases are tested in WAL.

FossilOrigin-Name: 8156b57ac33161ae6dd8a9413127ecce3c9eae83

15 years agoRun some fts3 tests as part of the "wal" permutation.
dan [Wed, 7 Jul 2010 11:42:59 +0000 (11:42 +0000)] 
Run some fts3 tests as part of the "wal" permutation.

FossilOrigin-Name: 8657455a11d20dbf78247559670943a72541a09d

15 years agoChange the async-IO extension to return SQLITE_IOERR_SHORT_READ when appropriate...
dan [Wed, 7 Jul 2010 11:05:21 +0000 (11:05 +0000)] 
Change the async-IO extension to return SQLITE_IOERR_SHORT_READ when appropriate. This prevents a valgrind warning in the test suite.

FossilOrigin-Name: d9e3287900ae4aa7722ad0132bb8d6cd2755d3a6

15 years agoFix a problem with writing to databases larger than 2^32 bytes with WAL mode.
dan [Wed, 7 Jul 2010 09:48:44 +0000 (09:48 +0000)] 
Fix a problem with writing to databases larger than 2^32 bytes with WAL mode.

FossilOrigin-Name: b956ddca75d64ba662fa0b03b643822d836b6501

15 years agoRemote the SQLITE_OMIT_GLOBALRECOVER macro - it is subsumed by
drh [Wed, 7 Jul 2010 01:52:31 +0000 (01:52 +0000)] 
Remote the SQLITE_OMIT_GLOBALRECOVER macro - it is subsumed by
SQLITE_OMIT_DEPRECATED.  Add support to sqlite3_compileoption_used()
for SQLITE_OMIT_WAL.

FossilOrigin-Name: 21a2db908b9eeb7477fc9d8b2b54482db93cd76f

15 years agoMinor changes to Makefile.in to bring it more inline with main.mk.
shaneh [Tue, 6 Jul 2010 20:37:09 +0000 (20:37 +0000)] 
Minor changes to Makefile.in to bring it more inline with main.mk.

FossilOrigin-Name: 5621862b0e2fc945ded51f5926a6b4c9f07d0ab7

15 years agoChanges to pager1.test to support Windows.
shaneh [Tue, 6 Jul 2010 20:34:37 +0000 (20:34 +0000)] 
Changes to pager1.test to support Windows.

FossilOrigin-Name: fce689ebe6165276598539779958407856e2f84f

15 years agoModified the xWrite() method on Windows to differentiate between IO and disk full...
shaneh [Tue, 6 Jul 2010 20:33:47 +0000 (20:33 +0000)] 
Modified the xWrite() method on Windows to differentiate between IO and disk full error returns.

FossilOrigin-Name: ca4b7ffbd44937a02ae62d606f9e1eb767075c22

15 years agoDo not do the *-closeallfiles test for notify2.test. It uses multiple threads.
dan [Tue, 6 Jul 2010 11:26:15 +0000 (11:26 +0000)] 
Do not do the *-closeallfiles test for notify2.test. It uses multiple threads.

FossilOrigin-Name: fb09152db879211986a7161a96a61da1425f79ef

15 years agoBefore calling Tcl_ExitThread() in a multi-threaded test, call Tcl_DoOneEvent() as...
dan [Tue, 6 Jul 2010 10:55:44 +0000 (10:55 +0000)] 
Before calling Tcl_ExitThread() in a multi-threaded test, call Tcl_DoOneEvent() as many times as necessary to handle any queued events.

FossilOrigin-Name: b3399b40785d13754979203f15d71c95fec50282

15 years agoReorder variable declarations in the previous check-in to avoid putting code
drh [Tue, 6 Jul 2010 09:29:01 +0000 (09:29 +0000)] 
Reorder variable declarations in the previous check-in to avoid putting code
before declarations when not testing.

FossilOrigin-Name: d1fe8ab4a176180053d35300ad0540a27c6cd76d

15 years agoEnsure the correct error code is returned if an attempt to parse a database schema...
dan [Tue, 6 Jul 2010 07:36:18 +0000 (07:36 +0000)] 
Ensure the correct error code is returned if an attempt to parse a database schema made by an ATTACH statement fails.

FossilOrigin-Name: c272196115ab3926e56b6f4183ec127e3f98ef9c

15 years agoModify the VFS xAccess() method on winNT so that it returns false for
drh [Mon, 5 Jul 2010 21:00:43 +0000 (21:00 +0000)] 
Modify the VFS xAccess() method on winNT so that it returns false for
an exists test of a zero-length file.  This makes the windows VFS work
the same as the unix VFS.

FossilOrigin-Name: ec35f25403744f7441ac5ae1486b84d8ebc13e98

15 years agoSimplify the previous commit by removing the pagerCheckForOrDeleteWAL() wrapper.
dan [Mon, 5 Jul 2010 19:13:26 +0000 (19:13 +0000)] 
Simplify the previous commit by removing the pagerCheckForOrDeleteWAL() wrapper.

FossilOrigin-Name: a1324d125e2dd7004eaf8680f5f832ef17285087

15 years agoAllocate a buffer containing the full path-name to the associated WAL file when a...
dan [Mon, 5 Jul 2010 19:03:35 +0000 (19:03 +0000)] 
Allocate a buffer containing the full path-name to the associated WAL file when a pager is created. This saves having to construct a new buffer each time a new read-transaction is opened and SQLite checks for the existance of a WAL file.

FossilOrigin-Name: 3053a4ad15343a56efa430503797b77bb6d1e770

15 years agoWhen rolling back page 1 from a journal, restore the "nReserve" setting
drh [Mon, 5 Jul 2010 17:43:32 +0000 (17:43 +0000)] 
When rolling back page 1 from a journal, restore the "nReserve" setting
in case it has been corrupted by a prior crash.

FossilOrigin-Name: c0d124da88e84e68679c2f3f4b2b35c03aecc916

15 years agoDo not report an error if the open-file-count is not as it should be after running...
dan [Mon, 5 Jul 2010 14:54:48 +0000 (14:54 +0000)] 
Do not report an error if the open-file-count is not as it should be after running a multi-threaded test. The counter instrumentation is not thread-safe.

FossilOrigin-Name: ea80b21c881fabaec1da788588c35c6c9782dcbd

15 years agoCall Tcl_ExitThread() from within threads created using Tcl_CreateThread(). Not doing...
dan [Mon, 5 Jul 2010 12:54:08 +0000 (12:54 +0000)] 
Call Tcl_ExitThread() from within threads created using Tcl_CreateThread(). Not doing so causes notifier related errors on OSX.

FossilOrigin-Name: 684eae6623ef1d0336b7a734b17ed307c720b6f4

15 years agoAdd any files specified as part of the QUICKTEST_INCLUDE environment variable to...
dan [Mon, 5 Jul 2010 05:54:55 +0000 (05:54 +0000)] 
Add any files specified as part of the QUICKTEST_INCLUDE environment variable to the set of test files run as part of "make test". Release testing uses this trick.

FossilOrigin-Name: a40a6e7df191ca10bc3aa504d374b9f5bfa33cbc

15 years agoFix typos in permutations.test.
dan [Mon, 5 Jul 2010 05:31:48 +0000 (05:31 +0000)] 
Fix typos in permutations.test.

FossilOrigin-Name: b6600ecb4ee8e4d0fe5e8399450ef25b15071a91

15 years agoDo not run the memsubsys1.test script under the memsubsys1 permutation.
dan [Sat, 3 Jul 2010 19:08:19 +0000 (19:08 +0000)] 
Do not run the memsubsys1.test script under the memsubsys1 permutation.

FossilOrigin-Name: 3a1a8c77a5c7b57755f18d84234faed1f16c2103

15 years agoRemove the unused xRename() method from the sqlite3_vfs object.
drh [Sat, 3 Jul 2010 17:13:31 +0000 (17:13 +0000)] 
Remove the unused xRename() method from the sqlite3_vfs object.
Add better documentation on the xCurrentTimeInt64() method.

FossilOrigin-Name: 51ec0e5432dd6849b83a3d969a018482eb3bb083

15 years agoFurther changes to test scripts so that the "inmemory_journal" permutation works.
dan [Sat, 3 Jul 2010 16:37:45 +0000 (16:37 +0000)] 
Further changes to test scripts so that the "inmemory_journal" permutation works.

FossilOrigin-Name: 50f2f7dfd64f610982525fd7a0dd7c1ade67bebb

15 years agoFix a bug in the permutations.test script.
dan [Sat, 3 Jul 2010 13:59:01 +0000 (13:59 +0000)] 
Fix a bug in the permutations.test script.

FossilOrigin-Name: 3b20ad03be55613d922d81aec5313327bf4098b9

15 years agoFix an assert in pager.c. And various test cases that fail with the in-memory journal...
dan [Sat, 3 Jul 2010 13:50:11 +0000 (13:50 +0000)] 
Fix an assert in pager.c. And various test cases that fail with the in-memory journal permutation.

FossilOrigin-Name: 622378dbe3941f06c717c1e272cd1190e4358428

15 years agoFix an assert in pager.c. And various test cases that fail with the in-memory journal...
dan [Sat, 3 Jul 2010 13:45:52 +0000 (13:45 +0000)] 
Fix an assert in pager.c. And various test cases that fail with the in-memory journal permutation.

FossilOrigin-Name: 78fc35ff4b01d4a583009ec8b8bf876738ca7b92

15 years agoCherry-pick the correct changes out of the recent "mistake" branch while
drh [Sat, 3 Jul 2010 12:31:34 +0000 (12:31 +0000)] 
Cherry-pick the correct changes out of the recent "mistake" branch while
omitting the bogus changes.

FossilOrigin-Name: 48bf309391c32e7860c293acd13f3dda14212d39

15 years agoRemove code accidently appended to pager.c.
drh [Sat, 3 Jul 2010 12:26:33 +0000 (12:26 +0000)] 
Remove code accidently appended to pager.c.

FossilOrigin-Name: 7cbe175a69738499f9218ec56f1a39f040aea9dc

15 years agoPrint the SQLite source_id() string when running speed tests.
drh [Sat, 3 Jul 2010 12:00:53 +0000 (12:00 +0000)] 
Print the SQLite source_id() string when running speed tests.

FossilOrigin-Name: 6d7640edcd69a932556f86500aedbf14e75ba7de

15 years agoFix an assert() in pager.c added by the previous commit. And various problems with...
dan [Sat, 3 Jul 2010 10:00:00 +0000 (10:00 +0000)] 
Fix an assert() in pager.c added by the previous commit. And various problems with test scripts in autovacuum and in-memory journal mode.

FossilOrigin-Name: 62a10101776b41236ff7bd08c8aa85765a43df7c

15 years agoDo not attempt to open a WAL file for an in-memory or temporary database. Even if...
dan [Sat, 3 Jul 2010 08:01:24 +0000 (08:01 +0000)] 
Do not attempt to open a WAL file for an in-memory or temporary database. Even if the database header suggests that it is a WAL database.

FossilOrigin-Name: 0fd809243652256d83ddcb58cf4890080654c667

15 years agoChange code in OP_Rewind to avoid a valgrind warning following an error in the btree...
dan [Sat, 3 Jul 2010 05:56:09 +0000 (05:56 +0000)] 
Change code in OP_Rewind to avoid a valgrind warning following an error in the btree layer. This change does not fix any bug, just a warning.

FossilOrigin-Name: 4f62dbcfc96855f69e71d163bfc051d9db08cca9

15 years agoFix a buffer overrun in the where.c. Problem detected by valgrind.
drh [Sat, 3 Jul 2010 01:44:27 +0000 (01:44 +0000)] 
Fix a buffer overrun in the where.c.  Problem detected by valgrind.

FossilOrigin-Name: 15bb62330681a5b2aad95a1d1fc9ab8f6f1bd6b9

15 years agoChanges to os_win.c to have it return same error code as os_unix.c.
shaneh [Fri, 2 Jul 2010 19:49:38 +0000 (19:49 +0000)] 
Changes to os_win.c to have it return same error code as os_unix.c.

FossilOrigin-Name: 33b6f069d8059903312282962181839ff983e5c4

15 years agoOmit the OP_JournalMode opcode from the VDBE when SQLITE_OMIT_PRAGMA is
drh [Fri, 2 Jul 2010 19:36:52 +0000 (19:36 +0000)] 
Omit the OP_JournalMode opcode from the VDBE when SQLITE_OMIT_PRAGMA is
defined.

FossilOrigin-Name: 565ff65c61c85c9b2122b31bd9792692aa1e9cda

15 years agoFix a bug in test_vfs.c causing an assert to fail. Changes to test code only.
dan [Fri, 2 Jul 2010 19:04:59 +0000 (19:04 +0000)] 
Fix a bug in test_vfs.c causing an assert to fail. Changes to test code only.

FossilOrigin-Name: 336ce7d29767f76c4a92aa4bbc46d21e19871667

15 years agoDo not run the tests in notify3.test unless the unlock-notify API is available.
dan [Fri, 2 Jul 2010 18:58:01 +0000 (18:58 +0000)] 
Do not run the tests in notify3.test unless the unlock-notify API is available.

FossilOrigin-Name: 0d7fd6fe9deeddbec8dff1393beed126ae44c0ee

15 years agoTake out the incomplete initializer on the constant "dummy" in
drh [Fri, 2 Jul 2010 18:44:37 +0000 (18:44 +0000)] 
Take out the incomplete initializer on the constant "dummy" in
sqlite3VdbeGetOp().  Add a comment that the MSVC warning there should
be ignored.

FossilOrigin-Name: 452ccaa9080e42657b5f0908bf40dbd834cd39f6

15 years agoFix a couple more compiler warnings under MSVC.
shaneh [Fri, 2 Jul 2010 18:15:31 +0000 (18:15 +0000)] 
Fix a couple more compiler warnings under MSVC.

FossilOrigin-Name: 26bc27e3f4c8a666f3358f73fc21eccdec3508f6

15 years agoFix compiler warnings in the proxy locking code.
drh [Fri, 2 Jul 2010 17:10:40 +0000 (17:10 +0000)] 
Fix compiler warnings in the proxy locking code.

FossilOrigin-Name: 26c7689cfedf03e65bcd51df68d128101ed2c1ec

15 years agoRemove a couple of C++ style comments from pager.c.
drh [Fri, 2 Jul 2010 17:07:42 +0000 (17:07 +0000)] 
Remove a couple of C++ style comments from pager.c.

FossilOrigin-Name: 4f12e8ebdea0451cb32188a4bb812ca702c63275

15 years agoFix some warnings when compiling under MSVC.
shaneh [Fri, 2 Jul 2010 17:05:03 +0000 (17:05 +0000)] 
Fix some warnings when compiling under MSVC.

FossilOrigin-Name: 708338773919fa024abbba55180654beb60e6d84

15 years agoAdd initializers for the xShmXXX() members to an sqlite3_io_methods structure in...
dan [Fri, 2 Jul 2010 16:36:18 +0000 (16:36 +0000)] 
Add initializers for the xShmXXX() members to an sqlite3_io_methods structure in journal.c. This doesn't fix any real problem, just prevents a compiler warning.

FossilOrigin-Name: dafb3577a2d5fbeebb17c8176af837f0aebf6ee5

15 years agoRemove an unused call to sqlite3PageBegin() from pager_write(). Replace it
drh [Fri, 2 Jul 2010 15:35:58 +0000 (15:35 +0000)] 
Remove an unused call to sqlite3PageBegin() from pager_write().  Replace it
with an assert().

FossilOrigin-Name: 01c1278263fdd8454763be15bddd2558e720e6e0

15 years agoRun tkt-9d68c883.test along with the other pager.c coverage tests. Add a test case...
dan [Fri, 2 Jul 2010 13:49:09 +0000 (13:49 +0000)] 
Run tkt-9d68c883.test along with the other pager.c coverage tests. Add a test case to pager1.test.

FossilOrigin-Name: c6714b0dbdc782e721662ec166d9f161bc05c6df

15 years agoAdditional test cases to cover branches in pager.c.
dan [Fri, 2 Jul 2010 11:27:43 +0000 (11:27 +0000)] 
Additional test cases to cover branches in pager.c.

FossilOrigin-Name: eddfb2b4062f8a8b907f0c7bc08a05c16692e900

15 years agoAdd a NEVER to sqlite3PagerCommitPhaseTwo() because it is now no longer
drh [Fri, 2 Jul 2010 01:18:12 +0000 (01:18 +0000)] 
Add a NEVER to sqlite3PagerCommitPhaseTwo() because it is now no longer
possible to invoke that function without holding a RESERVED lock.

FossilOrigin-Name: 6ae7617298c70f8e03dd0ed73b8153d4871fb023

15 years agoIf you delete a database file but not its *-wal file, then open the database
drh [Thu, 1 Jul 2010 19:45:34 +0000 (19:45 +0000)] 
If you delete a database file but not its *-wal file, then open the database
(thus creating a new empty database file) the *-wal file is automatically
deleted.

FossilOrigin-Name: 95c69dfbddaf4367cd699dfe8fcf8e06030c1f53

15 years agoAdd tests to pager1.test and pagerfault.test.
dan [Thu, 1 Jul 2010 19:01:56 +0000 (19:01 +0000)] 
Add tests to pager1.test and pagerfault.test.

FossilOrigin-Name: c6e75950928954fbb1590f952e3cdbcb0753b745

15 years agoAdd pager test cases. Change a condition in pager.c to NEVER().
dan [Thu, 1 Jul 2010 15:09:47 +0000 (15:09 +0000)] 
Add pager test cases. Change a condition in pager.c to NEVER().

FossilOrigin-Name: a8f6341d3b12d64ef56ed05226e3b4f183b8957d

15 years agoAdd further test cases. Fix an assert() in pager.c.
dan [Wed, 30 Jun 2010 10:36:18 +0000 (10:36 +0000)] 
Add further test cases. Fix an assert() in pager.c.

FossilOrigin-Name: 8e65c0e3dac400f6a0ec3b7494fba62c14ed6182

15 years agoDo not call pager_open_journal() from within PagerBegin() if the connection is in...
dan [Wed, 30 Jun 2010 04:36:03 +0000 (04:36 +0000)] 
Do not call pager_open_journal() from within PagerBegin() if the connection is in exclusive-access mode. It will be called from within PagerWrite() just as it is for non-exclusive mode anyway.

FossilOrigin-Name: cdf2c5c2dd2e4404ffb85a680d31307afea266eb

15 years agoAdd coverage test cases. Have sqlite3_backup_step() transform SQLITE_IOERR_NOMEM...
dan [Wed, 30 Jun 2010 04:29:03 +0000 (04:29 +0000)] 
Add coverage test cases. Have sqlite3_backup_step() transform SQLITE_IOERR_NOMEM to SQLITE_NOMEM before returning.

FossilOrigin-Name: 5e19bc360e098ec06a72f4a86254d8e62e93ea57

15 years agoAdd tests to pager1.test and pagerfault.test.
dan [Tue, 29 Jun 2010 10:30:23 +0000 (10:30 +0000)] 
Add tests to pager1.test and pagerfault.test.

FossilOrigin-Name: 008513ee6115f8d6f4b4e1428c1c638282b971a3

15 years agoAdd extra pager tests.
dan [Mon, 28 Jun 2010 19:04:02 +0000 (19:04 +0000)] 
Add extra pager tests.

FossilOrigin-Name: 6b7e419ddc241f457dd69878f09f5c51c70aa379

15 years agoFix some errors when compiling with SQLITE_OMIT_WAL.
dan [Mon, 28 Jun 2010 11:23:09 +0000 (11:23 +0000)] 
Fix some errors when compiling with SQLITE_OMIT_WAL.

FossilOrigin-Name: 3b68cb9c656db8c5c481199919a98f5764f7ebfa

15 years agoRemove debugging code from test script.
dan [Mon, 28 Jun 2010 11:06:53 +0000 (11:06 +0000)] 
Remove debugging code from test script.

FossilOrigin-Name: a85ae33246226801f88c1e377725c192711797cc

15 years agoCurrently, if SQLite cannot find a table or index referred to by a query, it reloads...
dan [Mon, 28 Jun 2010 10:15:19 +0000 (10:15 +0000)] 
Currently, if SQLite cannot find a table or index referred to by a query, it reloads the database schema from disk to see if the table or index has been added since the schema was cached in memory. Extend this behaviour to columns (which may have been added using ALTER TABLE) and fix some obscure cases related to tables and indexes (INDEXED BY, DROP TABLE etc.).

FossilOrigin-Name: 4932f22848b3d15a2b6dc5fa2cd69ce19182e2a4

15 years agoMake walIndexTryHdr() a private function. Fix an issue with SQLITE_MUTEX_NOOP.
drh [Sat, 26 Jun 2010 22:16:02 +0000 (22:16 +0000)] 
Make walIndexTryHdr() a private function.  Fix an issue with SQLITE_MUTEX_NOOP.

FossilOrigin-Name: ec65bbd06bdd3bf16a742c5bb1fab0dce756c01a

15 years agoSuppress various compiler warnings.
drh [Sat, 26 Jun 2010 21:34:06 +0000 (21:34 +0000)] 
Suppress various compiler warnings.

FossilOrigin-Name: e82d008eaffb5522080cad6c69c1b194b78eadbd

15 years agoFix two asserts on the scratch allocator to allow for up to two outstanding
drh [Sat, 26 Jun 2010 20:25:30 +0000 (20:25 +0000)] 
Fix two asserts on the scratch allocator to allow for up to two outstanding
scratch allocations per thread.

FossilOrigin-Name: f149b498b6ada3fc9f71ee104c351554c80c7f8a

15 years agoSuppress a couple uninitialized variable warnings.
drh [Sat, 26 Jun 2010 20:00:54 +0000 (20:00 +0000)] 
Suppress a couple uninitialized variable warnings.

FossilOrigin-Name: 29571e228cc85f7768c3ad57d0c7af96b5a54983

15 years agoAdd test file tkt-d11f09d36e.test.
dan [Sat, 26 Jun 2010 19:03:30 +0000 (19:03 +0000)] 
Add test file tkt-d11f09d36e.test.

FossilOrigin-Name: 6e469b63fab3cd63b23110aaceccfed0587c6a87

15 years agoRemove a NEVER() in pager that can in fact be reached in obscure failure
drh [Sat, 26 Jun 2010 19:02:33 +0000 (19:02 +0000)] 
Remove a NEVER() in pager that can in fact be reached in obscure failure
cases.

FossilOrigin-Name: 42b8bd1c70d8dbbc4a59e2fdee8654c4fe84f979

15 years agoFix a case where the doNotSyncSpill flag may remain permanently set following aIO...
dan [Sat, 26 Jun 2010 17:15:07 +0000 (17:15 +0000)] 
Fix a case where the doNotSyncSpill flag may remain permanently set following aIO error.

FossilOrigin-Name: 56c7d111bf7013be95a4c2a657a4861eee91db91

15 years agoWhen synchronous=NORMAL, use the same journal file format as with synchronous=FULL...
dan [Sat, 26 Jun 2010 15:42:33 +0000 (15:42 +0000)] 
When synchronous=NORMAL, use the same journal file format as with synchronous=FULL (i.e. multiple journal headers within the one journal). Fix for [d11f09d36e].

FossilOrigin-Name: 2eaf5ee0d9338de8a77fb3e06ad2f2b0daa6fcbe

15 years agoFurther test cases for pager1.test and pagerfault.test.
dan [Fri, 25 Jun 2010 19:09:48 +0000 (19:09 +0000)] 
Further test cases for pager1.test and pagerfault.test.

FossilOrigin-Name: bfd563c4714d86805fa09ce9f4f807e5d502a99b

15 years agoReduce the average (but not maximum) size of the allocations made as part of a checkp...
dan [Fri, 25 Jun 2010 16:34:32 +0000 (16:34 +0000)] 
Reduce the average (but not maximum) size of the allocations made as part of a checkpoint.

FossilOrigin-Name: 4a7fd91b7ab2c5d21fbac7f6f123820c8f4ec7f6

15 years agoReduce the size of the large allocation (approx 8KB for every 4000 frames in the...
dan [Fri, 25 Jun 2010 15:16:25 +0000 (15:16 +0000)] 
Reduce the size of the large allocation (approx 8KB for every 4000 frames in the log) that occurs during checkpoint. Use the 'scratch' memory for this allocation instead of the general purpose allocation.

FossilOrigin-Name: 29887487ed549f97c3c9b37f852bae179b6ea9a9

15 years agoFix up a branch in sqlite3ValueFromExpr() so that we can achieve full
drh [Fri, 25 Jun 2010 14:17:58 +0000 (14:17 +0000)] 
Fix up a branch in sqlite3ValueFromExpr() so that we can achieve full
branch test coverage regardless of whether or not SQLITE_ENABLE_STAT2 is
used.

FossilOrigin-Name: af471ed79f539ff495f6d4cb3b69188c8af7ae3d

15 years agoChange the name of the shared-memory file on windows from *-wal-index to
drh [Fri, 25 Jun 2010 12:52:47 +0000 (12:52 +0000)] 
Change the name of the shared-memory file on windows from *-wal-index to
*-shm, for consistency with unix.

FossilOrigin-Name: 5995cb15080cfb707ddda501f975673f658106f7

15 years agoModify the merge-sort in wal.c so that it does not use recursion.
dan [Fri, 25 Jun 2010 11:35:52 +0000 (11:35 +0000)] 
Modify the merge-sort in wal.c so that it does not use recursion.

FossilOrigin-Name: daea6c054cee3564d8460d876b78a325ebc382dd

15 years agoAdd test cases to pager1.test and pagerfault.test.
dan [Thu, 24 Jun 2010 19:16:06 +0000 (19:16 +0000)] 
Add test cases to pager1.test and pagerfault.test.

FossilOrigin-Name: 4941e437d2638f36ac8510d4a5b4c780afc798bb

15 years agoRevert to allowing a cache spill during writes of multiple pages within a
drh [Thu, 24 Jun 2010 18:36:33 +0000 (18:36 +0000)] 
Revert to allowing a cache spill during writes of multiple pages within a
single sector as long as the spill does not require a journal sync and a
new journal header.

FossilOrigin-Name: 7d83fbae9802a56b2121d0775de54fccd743d971

15 years agoModify ctime.test to work with SQLITE_THREADSAFE=2.
dan [Thu, 24 Jun 2010 17:37:57 +0000 (17:37 +0000)] 
Modify ctime.test to work with SQLITE_THREADSAFE=2.

FossilOrigin-Name: c6db3b303182202a8b03512e448607bce71de914

15 years agoDisable memory-pressure induced cache spill during savepoint rollback.
drh [Thu, 24 Jun 2010 14:52:25 +0000 (14:52 +0000)] 
Disable memory-pressure induced cache spill during savepoint rollback.

FossilOrigin-Name: a55eb4c3e9fa4ea43b8f8182eb9e39138df03f52

15 years agoAdd a coverage test to pagerfault.test.
dan [Thu, 24 Jun 2010 13:24:26 +0000 (13:24 +0000)] 
Add a coverage test to pagerfault.test.

FossilOrigin-Name: b58db67e972b5660e62a9b7daa2c1e87c3cf0a68

15 years agoAdd coverage tests. Remove a NEVER macro from pager.c, as the condition can now be...
dan [Thu, 24 Jun 2010 10:50:17 +0000 (10:50 +0000)] 
Add coverage tests. Remove a NEVER macro from pager.c, as the condition can now be true in wal mode.

FossilOrigin-Name: 7aac9ad6dd14b1c56eb8e4750ac769c6197c30bd

15 years agoMake sure the wal-index reader detects an incorrect version number even if
drh [Thu, 24 Jun 2010 02:46:48 +0000 (02:46 +0000)] 
Make sure the wal-index reader detects an incorrect version number even if
it had to hold a lock in order to read the wal-index.  Also, expand and enhance
various comments in wal.c.

FossilOrigin-Name: 2e6a462cebc05bfd4648d26dd5ae70b68844aa5f

15 years agoFix and/or improve comments in wal.c. No code changes.
drh [Wed, 23 Jun 2010 22:00:35 +0000 (22:00 +0000)] 
Fix and/or improve comments in wal.c.  No code changes.

FossilOrigin-Name: ee9991be082202c6637adb47affc777e7917be04

15 years agoAdd test case for SQLITE_FULL errors to pagerfault.test. Remove a NEVER macro in...
dan [Wed, 23 Jun 2010 19:27:36 +0000 (19:27 +0000)] 
Add test case for SQLITE_FULL errors to pagerfault.test. Remove a NEVER macro in pager.c that this hits.

FossilOrigin-Name: 3e9680c4c18140d083b24e05a21ea6792aef2487

15 years agoInclude the SOURCE_ID value in the log messages output for corruption, misuse,
drh [Wed, 23 Jun 2010 17:59:51 +0000 (17:59 +0000)] 
Include the SOURCE_ID value in the log messages output for corruption, misuse,
and CANTOPEN errors.

FossilOrigin-Name: 1727a81fed65bebfea43e0bda271584096d82785