]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
15 years agoFix a typo in a comment in os_unix.c.
drh [Wed, 14 Jul 2010 20:51:34 +0000 (20:51 +0000)] 
Fix a typo in a comment in os_unix.c.

FossilOrigin-Name: e1e7312580a8b19825b0c52fa8af6c9382f99f22

15 years agoThe expression list on the RHS of an IN operator can no longer be empty
drh [Wed, 14 Jul 2010 20:23:52 +0000 (20:23 +0000)] 
The expression list on the RHS of an IN operator can no longer be empty
because an empty expression list is now optimized out by changes in
check-in [c288ac644d0bf].  Therefore add ALWAYS() macros around tests
for the expression list being non-empty.

FossilOrigin-Name: fd130ae56c0e23f2d5b4a82f1a09e89ed7ae1e85

15 years agoAdditional test cases and evidence marks for the empty RHS bug on the IN
drh [Wed, 14 Jul 2010 19:31:07 +0000 (19:31 +0000)] 
Additional test cases and evidence marks for the empty RHS bug on the IN
operator - ticket [80e031a00f45dca877]

FossilOrigin-Name: 6851c517ac7f80538aa5f3a1994fa1921c0ec3f4

15 years agoMake the result of an IN or NOT IN expression with an empty set on the
drh [Wed, 14 Jul 2010 18:24:06 +0000 (18:24 +0000)] 
Make the result of an IN or NOT IN expression with an empty set on the
right-hand side always either false or true, respectively, even if the
left-hand side is NULL.  Ticket [80e031a00f45dc]

FossilOrigin-Name: c288ac644d0bfda2b9bc204dc86df8e74d4f6843

15 years agoFix an assert() failure in wal2.test caused by messing with the contents of shared...
dan [Wed, 14 Jul 2010 18:10:02 +0000 (18:10 +0000)] 
Fix an assert() failure in wal2.test caused by messing with the contents of shared memory.

FossilOrigin-Name: 9f452514d96ab8d424eadc55c283c53fe831476d

15 years agoTest the libaries response to read-only or unreadable database, WAL and wal-index...
dan [Wed, 14 Jul 2010 16:37:17 +0000 (16:37 +0000)] 
Test the libaries response to read-only or unreadable database, WAL and wal-index files. If a WAL file cannot be opened in read/write mode, return SQLITE_CANTOPEN to the caller.

FossilOrigin-Name: 45bb84c6283d803fc29077fdc2d06fa50ec06a59

15 years agoOn unix, try to create the *-wal and *-shm files with the same permissions as the...
dan [Wed, 14 Jul 2010 14:48:58 +0000 (14:48 +0000)] 
On unix, try to create the *-wal and *-shm files with the same permissions as the associated database file.

FossilOrigin-Name: e5d180eed245437b61bfb257ee01e2571c93afe7

15 years agoAdd tests to pagerfault.test.
dan [Wed, 14 Jul 2010 08:20:35 +0000 (08:20 +0000)] 
Add tests to pagerfault.test.

FossilOrigin-Name: b092f2a74bdc77c1f90ad3b4448cb68a891ecf63

15 years agoTest that a corrupted WAL hash-table does not put the library into an infinite loop.
dan [Wed, 14 Jul 2010 07:06:47 +0000 (07:06 +0000)] 
Test that a corrupted WAL hash-table does not put the library into an infinite loop.

FossilOrigin-Name: c73886ed7497c0daf798c3b02ca6f5a1c2addde3

15 years agoFix a typo in the IS_BIG_INT macro used by coverage test instrumentation.
dan [Wed, 14 Jul 2010 06:20:26 +0000 (06:20 +0000)] 
Fix a typo in the IS_BIG_INT macro used by coverage test instrumentation.

FossilOrigin-Name: 5314ca3928dab1c76fa4ec5dbe110e3212c95e9f

15 years agoFix the unix driver to return an I/O error if unlink fails for any reason
drh [Wed, 14 Jul 2010 01:45:22 +0000 (01:45 +0000)] 
Fix the unix driver to return an I/O error if unlink fails for any reason
other than the file not existing in the first place.

FossilOrigin-Name: 90d73c66bfa880cdeb688b3016c8b1c58bfcf35f

15 years agoRemove the xShmOpen method from the VFS. Shared-memory is opened automatically
drh [Wed, 14 Jul 2010 00:22:36 +0000 (00:22 +0000)] 
Remove the xShmOpen method from the VFS.  Shared-memory is opened automatically
by a call to xShmMap.  Rename the xShmClose method to xShmUnmap.

FossilOrigin-Name: 2b68e50268412599576c86ae70b830d0388cb35c

15 years agoChange the name of the xShmClose VFS method to xShmUnmap, everywhere.
drh [Wed, 14 Jul 2010 00:14:30 +0000 (00:14 +0000)] 
Change the name of the xShmClose VFS method to xShmUnmap, everywhere.

FossilOrigin-Name: c2d27cf51d33e6f38bab37008d39074051f75274

15 years agoTweaks to the new shared-memory interface design - mostly comment changes.
drh [Tue, 13 Jul 2010 23:41:40 +0000 (23:41 +0000)] 
Tweaks to the new shared-memory interface design - mostly comment changes.

FossilOrigin-Name: 6336de7aa96a6e1e68cc123e5d5f485d790d95a2

15 years agoFix a typo in a comment in sqlite.h.in.
dan [Tue, 13 Jul 2010 18:45:10 +0000 (18:45 +0000)] 
Fix a typo in a comment in sqlite.h.in.

FossilOrigin-Name: 4a6c4b6605ddce59e586ab17024de5269191a823

15 years agoChanges so that the xShmOpen VFS method is no longer required. Its job can be done...
dan [Tue, 13 Jul 2010 18:44:03 +0000 (18:44 +0000)] 
Changes so that the xShmOpen VFS method is no longer required. Its job can be done by the first call to xShmMap. Rename xShmClose to xShmUnmap.

FossilOrigin-Name: f4780bde62c6c19146d2723c101540b8db898d38

15 years agoImproved documentation for the SQLITE_ACCESS_* constants that are used
drh [Tue, 13 Jul 2010 14:48:27 +0000 (14:48 +0000)] 
Improved documentation for the SQLITE_ACCESS_* constants that are used
with the xAccess() method of the VFS.

FossilOrigin-Name: 3d4bb65f10ed0297f38e732ce57e5440cba8deef

15 years agoAdd proposed interface change to sqlite.h.in. This commit breaks the build.
dan [Tue, 13 Jul 2010 14:33:48 +0000 (14:33 +0000)] 
Add proposed interface change to sqlite.h.in. This commit breaks the build.

FossilOrigin-Name: 52577bb5e723d8de4fc609286666b581f8d9c746

15 years agoFixes to the pcache10 and pcache90 permutations.
dan [Tue, 13 Jul 2010 14:22:39 +0000 (14:22 +0000)] 
Fixes to the pcache10 and pcache90 permutations.

FossilOrigin-Name: 597d40fa529073123a50ae6afc762c59404f8f5f

15 years agoFix problems with running the async.test script.
dan [Tue, 13 Jul 2010 07:38:51 +0000 (07:38 +0000)] 
Fix problems with running the async.test script.

FossilOrigin-Name: 05ac2548652f3c9aa358289700b0b4c7fc22486d

15 years agoUpdates to comments and code organization to reflect changes in os_unix.c;
shaneh [Mon, 12 Jul 2010 20:46:33 +0000 (20:46 +0000)] 
Updates to comments and code organization to reflect changes in os_unix.c;
Updated winShmLock() with logic changes from unixShmLock();
Modified IO error returns in winShmMap() to match those in unixShmMap();

FossilOrigin-Name: b73fe2754b68af4c76a1788aa18b93359720d1f1

15 years agoFix test_stat.c so that it does not cause compilation errors if SQLITE_OMIT_VIRTUALTA...
dan [Mon, 12 Jul 2010 18:12:41 +0000 (18:12 +0000)] 
Fix test_stat.c so that it does not cause compilation errors if SQLITE_OMIT_VIRTUALTABLE is defined.

FossilOrigin-Name: bf4fc0888705108aab997e1cb491fc7f9c64c443

15 years agoFix makefiles so that they build sqlite3_analyzer again. Tweaks to comments
drh [Mon, 12 Jul 2010 16:47:48 +0000 (16:47 +0000)] 
Fix makefiles so that they build sqlite3_analyzer again.  Tweaks to comments
in test_stat.c.  Fix tclsqlite.c to build the sqlite3_analyzer again.

FossilOrigin-Name: e6cd15451d8c47bfc86d07565655920134b494fe

15 years agoIn the async-IO module, do not increment the open file-counter until after an "open...
dan [Mon, 12 Jul 2010 12:22:29 +0000 (12:22 +0000)] 
In the async-IO module, do not increment the open file-counter until after an "open file" event has been added to the event queue. Otherwise, an OOM may cause the system to increment the counter even though no file was successfully opened.

FossilOrigin-Name: 15a190dc5769beb53b89254543e744a964cd86ed

15 years agoChanges so that the space-analyzer script works with 3.7.0.
dan [Mon, 12 Jul 2010 08:39:37 +0000 (08:39 +0000)] 
Changes so that the space-analyzer script works with 3.7.0.

FossilOrigin-Name: 86159cb3f00a380dc55be3affb01c433618f0683

15 years agoExclude a few more FTS modules from the "in memory" permutation test suite.
shaneh [Fri, 9 Jul 2010 19:32:28 +0000 (19:32 +0000)] 
Exclude a few more FTS modules from the "in memory" permutation test suite.

FossilOrigin-Name: 4e9d69cd5ac3cc4d12ccea3028cba73e3c3f2965

15 years agoExclude fts3cov.test from the "in memory" permutation test suite to avoid a false...
shaneh [Fri, 9 Jul 2010 18:43:40 +0000 (18:43 +0000)] 
Exclude fts3cov.test from the "in memory" permutation test suite to avoid a false positive.

FossilOrigin-Name: 6af6794cac5516f8cbc425cb8c73468ca371a1ad

15 years agoFix warning under MSVC.
shaneh [Fri, 9 Jul 2010 12:57:53 +0000 (12:57 +0000)] 
Fix warning under MSVC.

FossilOrigin-Name: 0c32c4bbdd74297767dcf4ec4295f9cc72875af0

15 years agoReformat WAL code for clearer presentation. Update comments for correctness.
drh [Fri, 9 Jul 2010 03:19:07 +0000 (03:19 +0000)] 
Reformat WAL code for clearer presentation.  Update comments for correctness.
Add checks to ensure that corruption in shared-memory does not result in
an infinite loop.

FossilOrigin-Name: 40eaada7ec45e70bdf64d060051f24c5c5e3faf3

15 years agoAdd a test case to cover code that was left untested by the journal_mode
drh [Thu, 8 Jul 2010 19:19:51 +0000 (19:19 +0000)] 
Add a test case to cover code that was left untested by the journal_mode
simplification.

FossilOrigin-Name: bcdddba4f011cf008d29918bcac59131007a8138

15 years agoFix test case numbering in backup_malloc.test and issue when running under Windows.
shaneh [Thu, 8 Jul 2010 18:32:18 +0000 (18:32 +0000)] 
Fix test case numbering in backup_malloc.test and issue when running under Windows.

FossilOrigin-Name: aef26438523bccf1ea2c19205cd05799e4c69a1f

15 years agoChange the journal_mode pragma to remove the "default journal mode" concept.
drh [Thu, 8 Jul 2010 17:40:37 +0000 (17:40 +0000)] 
Change the journal_mode pragma to remove the "default journal mode" concept.
The journal_mode pragma only effects currently attached databases and does
not change the behavior of future attachments.

FossilOrigin-Name: e396184cd3bdb96e29ac33af5d1f631cac553341

15 years agoMerged experimental crashsql() into trunk.
shaneh [Thu, 8 Jul 2010 16:50:08 +0000 (16:50 +0000)] 
Merged experimental crashsql() into trunk.

FossilOrigin-Name: 01b575ff1aa512f34be78f9d67b6caaf825e5820

15 years agoChanges to get crashsql() working on Windows.
shaneh [Thu, 8 Jul 2010 16:30:44 +0000 (16:30 +0000)] 
Changes to get crashsql() working on Windows.

FossilOrigin-Name: 8a5811ea80e8415f9ba6b1d9390ed723840402c3

15 years agoFix warning in test fixture code.
shaneh [Thu, 8 Jul 2010 16:22:51 +0000 (16:22 +0000)] 
Fix warning in test fixture code.

FossilOrigin-Name: 0bfcf3bcd77acab48344dde87cecb01e877f1a19

15 years agoFix test case number issue in walcrash.test.
shaneh [Thu, 8 Jul 2010 16:22:05 +0000 (16:22 +0000)] 
Fix test case number issue in walcrash.test.

FossilOrigin-Name: 6a46e64168705a31d86d29a60025f138a42c5b79

15 years agoFix to lock5.test so that it runs with the inmemory_journal permutation on osx.
dan [Thu, 8 Jul 2010 14:59:01 +0000 (14:59 +0000)] 
Fix to lock5.test so that it runs with the inmemory_journal permutation on osx.

FossilOrigin-Name: 948bb54568b5eb26644db78e8cd62381bdc22bac

15 years agoFixed a few tests in pagerfault.test so they work correctly on Windows.
shaneh [Thu, 8 Jul 2010 13:33:47 +0000 (13:33 +0000)] 
Fixed a few tests in pagerfault.test so they work correctly on Windows.

FossilOrigin-Name: ffbdd954a05c003a213069e39ad0655e77983666

15 years agoChanges to test scripts so that the "inmemory_journal" permutation works with [ef126e...
dan [Thu, 8 Jul 2010 09:44:42 +0000 (09:44 +0000)] 
Changes to test scripts so that the "inmemory_journal" permutation works with [ef126e775a].

FossilOrigin-Name: f553c8ed04b4b2df8ff4929e0754e3ffd1d01ba4

15 years agoAdd tests to walmode.test.
dan [Thu, 8 Jul 2010 06:22:25 +0000 (06:22 +0000)] 
Add tests to walmode.test.

FossilOrigin-Name: 5aa2bdb502d70ccbc249a6b38b8a07b91c4ccd26

15 years agoChanges to os_win.c to have it simulate IO errors like os_unix.c.
shaneh [Thu, 8 Jul 2010 03:13:33 +0000 (03:13 +0000)] 
Changes to os_win.c to have it simulate IO errors like os_unix.c.

FossilOrigin-Name: 0d53da9451fe016adc57c7c077fdbbbdb1c8d6ee

15 years agoMake the initial salt values in the WAL header random values, not zero.
drh [Wed, 7 Jul 2010 21:06:48 +0000 (21:06 +0000)] 
Make the initial salt values in the WAL header random values, not zero.

FossilOrigin-Name: baa5eddd0539342945c14a2793c2579efb7e3b26

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