]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
14 years agoBackport fix [a6bb2108bfb56] for a typo in the OS/2 interface. branch-3.7.0
drh [Wed, 4 Aug 2010 12:31:10 +0000 (12:31 +0000)] 
Backport fix [a6bb2108bfb56] for a typo in the OS/2 interface.

FossilOrigin-Name: 042a1abb030a0711386add7eb6e10832cc8b0f57

14 years agoUpdate the version number to 3.7.0.1.
drh [Wed, 4 Aug 2010 12:19:24 +0000 (12:19 +0000)] 
Update the version number to 3.7.0.1.

FossilOrigin-Name: 5074b85967df8f55739ba790924347c764288a88

14 years agoBackport fix [267492d3a7eff7b] for the performance regression caused by
drh [Wed, 4 Aug 2010 12:13:35 +0000 (12:13 +0000)] 
Backport fix [267492d3a7eff7b] for the performance regression caused by
automatic indexing and reported by ticket [8011086c85c6c4040].

FossilOrigin-Name: 3f367fe00e2adf87f3cc426466db4e3088e6f175

14 years agoBackport the [65b8636ac6e5] fix for ticket [51ae9cad317a1] to version 3.7.0.
drh [Wed, 4 Aug 2010 11:59:06 +0000 (11:59 +0000)] 
Backport the [65b8636ac6e5] fix for ticket [51ae9cad317a1] to version 3.7.0.

FossilOrigin-Name: dec70c63d052bbe41fc4a065109d2845c67d3f15

14 years agoFix a comment typo. This check-in is 3.7.0 release candidate 2.
drh [Wed, 21 Jul 2010 16:16:28 +0000 (16:16 +0000)] 
Fix a comment typo.  This check-in is 3.7.0 release candidate 2.

FossilOrigin-Name: b36b105eab6fd3195f4bfba6cb5cda0f063b7460

14 years agoAdded fix for race conditions from os_unix.c; added saving of errno in two places.
shaneh [Tue, 20 Jul 2010 20:23:38 +0000 (20:23 +0000)] 
Added fix for race conditions from os_unix.c; added saving of errno in two places.

FossilOrigin-Name: 13ed106c8c279422a6159e28c6887d13a88b7b8b

14 years agoFix a race condition in os_unix.c that may occur when one thread is opening a connect...
dan [Tue, 20 Jul 2010 18:59:00 +0000 (18:59 +0000)] 
Fix a race condition in os_unix.c that may occur when one thread is opening a connection to a shared-memory block and another is either closing or locking the same shared-memory.

FossilOrigin-Name: 3b7330c19a5327322068e9460018fe0152b8ac87

14 years agoUpdate the CLI test scripts for version 3.7.0.
drh [Mon, 19 Jul 2010 15:01:43 +0000 (15:01 +0000)] 
Update the CLI test scripts for version 3.7.0.

FossilOrigin-Name: 92fe70dadde2eb551518d69ac2eaa6a0151d7dfe

14 years agoUse exit(255) instead of abort() in the tcl [sqlite_abort] test command. This stops...
dan [Mon, 19 Jul 2010 12:44:14 +0000 (12:44 +0000)] 
Use exit(255) instead of abort() in the tcl [sqlite_abort] test command. This stops testfixture from creating dozens of core files each time tests are run.

FossilOrigin-Name: aec9e13148671e612d4ba674e74c12116573434f

14 years agoChanges to stat.test so that it works with file-format 4.
dan [Mon, 19 Jul 2010 12:05:33 +0000 (12:05 +0000)] 
Changes to stat.test so that it works with file-format 4.

FossilOrigin-Name: f87bb283615847764d24943695990564f02b939e

14 years agoRe-introduce the prefix-search optimization of [feef1b15d6], which was lost in a...
dan [Mon, 19 Jul 2010 11:16:36 +0000 (11:16 +0000)] 
Re-introduce the prefix-search optimization of [feef1b15d6], which was lost in a reorganization of FTS3 code.

FossilOrigin-Name: d692434b4935e8e7858230af1c126b0be8203077

14 years agoEnable previously failing tests in e_expr.test that pass following [3e5975aa3b].
dan [Mon, 19 Jul 2010 05:27:17 +0000 (05:27 +0000)] 
Enable previously failing tests in e_expr.test that pass following [3e5975aa3b].

FossilOrigin-Name: 3d59c54a39c4c3149bf01063a91c3db35ec84b31

14 years agoFix a parser bug that was causing the relative precedence of LIKE and <
drh [Mon, 19 Jul 2010 02:30:33 +0000 (02:30 +0000)] 
Fix a parser bug that was causing the relative precedence of LIKE and <
operators to be incorrect.

FossilOrigin-Name: 3e5975aa3bb9df9e1f954bcce99384e0f13cb453

14 years agoImprovements to the formatting of parse.out file from Lemon. Add the -r option
drh [Mon, 19 Jul 2010 01:52:07 +0000 (01:52 +0000)] 
Improvements to the formatting of parse.out file from Lemon.  Add the -r option
to Lemon to disable the state sorting, making debugging easier.

FossilOrigin-Name: a2eaf8294f6d3fb39548987d632e934bb5d71cc9

14 years agoAdd the -p option to lemon to cause conflicts resolved by precedence rules
drh [Sun, 18 Jul 2010 11:35:53 +0000 (11:35 +0000)] 
Add the -p option to lemon to cause conflicts resolved by precedence rules
to appear in the parse.out file.

FossilOrigin-Name: fb6a59b0a905ddea071948f9a527483a1b1b219f

14 years agoAdd new test file e_expr.test.
dan [Sat, 17 Jul 2010 18:44:49 +0000 (18:44 +0000)] 
Add new test file e_expr.test.

FossilOrigin-Name: cbcf8abbb2cb3e603cc3da45075f6b076e5cad56

14 years agoDo not run journal3.test with the inmemory_journal permutation.
dan [Sat, 17 Jul 2010 09:27:31 +0000 (09:27 +0000)] 
Do not run journal3.test with the inmemory_journal permutation.

FossilOrigin-Name: e1d228e992fe8da1fc5aef95d9bc8be62c6b46c7

14 years agoFix a problem with wal4.test caused by changes in the previous checkin.
dan [Fri, 16 Jul 2010 11:10:25 +0000 (11:10 +0000)] 
Fix a problem with wal4.test caused by changes in the previous checkin.

FossilOrigin-Name: 1218d3703ad23d01ce0d7cbcabdc9e0d864f8717

14 years agoFix a test script bug uncovered by [a121cd80c5] that was causing shared_err.test...
dan [Fri, 16 Jul 2010 10:39:54 +0000 (10:39 +0000)] 
Fix a test script bug uncovered by [a121cd80c5] that was causing shared_err.test to fail.

FossilOrigin-Name: d7b63a4c9fdd2acdb5829224b6189e7f2f6bedb9

14 years agoPrevious check-in [534aab837e] accidently reverted some
drh [Thu, 15 Jul 2010 18:38:39 +0000 (18:38 +0000)] 
Previous check-in [534aab837e] accidently reverted some
changes from [a121cd80c5].  This check-in restores those changes.

FossilOrigin-Name: abff795f38e33d778c8dd494a601bc029237da9e

14 years agoOptionally support shared-memory in /dev/shm or other tmpfs directory
drh [Thu, 15 Jul 2010 18:32:40 +0000 (18:32 +0000)] 
Optionally support shared-memory in /dev/shm or other tmpfs directory
using an unsupported compile-time option.

FossilOrigin-Name: 534aab837e5a34fd58963ab2b505bfbb9da2e8ee

14 years agoChanges to wal.c so that SQLite can read even if the WAL file is opened read-only...
dan [Thu, 15 Jul 2010 18:20:53 +0000 (18:20 +0000)] 
Changes to wal.c so that SQLite can read even if the WAL file is opened read-only, provided the wal-index (shm file) is opened read/write.

FossilOrigin-Name: 932d19da73c9673cdd4cc01289b17761c23d23cb

14 years agoHandle the case where xShmMap returns SQLITE_BUSY.
dan [Thu, 15 Jul 2010 17:54:14 +0000 (17:54 +0000)] 
Handle the case where xShmMap returns SQLITE_BUSY.

FossilOrigin-Name: 75f5354876c4300a8e53fe551dc837dd383d1e38

14 years agoWhen creating a journal file on unix, attempt to create it with the same permissions...
dan [Thu, 15 Jul 2010 14:59:37 +0000 (14:59 +0000)] 
When creating a journal file on unix, attempt to create it with the same permissions as the associated database file.

FossilOrigin-Name: a121cd80c5ac94e5977bc3164d2500e0ea132fed

14 years agoChange a comment inside a block of code in parse.y from C++ to C style.
dan [Thu, 15 Jul 2010 11:14:21 +0000 (11:14 +0000)] 
Change a comment inside a block of code in parse.y from C++ to C style.

FossilOrigin-Name: dea7d33b2d7d25280a31a2b9c1573f4292b81187

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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