]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
14 years agoFixes to prior checkins so that they compile and run even if SQLITE_MEMDEBUG malloc-enhancement
drh [Sun, 25 Jul 2010 02:39:06 +0000 (02:39 +0000)] 
Fixes to prior checkins so that they compile and run even if SQLITE_MEMDEBUG
is not defined.

FossilOrigin-Name: 548bf3f7d7b962d3eb0f5c874ecf40a8703d4d5d

14 years agoFurther examples of using automatic deallocation to replace "delete" methods.
drh [Sun, 25 Jul 2010 02:12:51 +0000 (02:12 +0000)] 
Further examples of using automatic deallocation to replace "delete" methods.

FossilOrigin-Name: da2f62c502dfd3b53940b08a971137048732ecea

14 years agoAdditional malloc sanity changes. Use sqlite3MemLink() on Index.zColAff and
drh [Sat, 24 Jul 2010 19:08:13 +0000 (19:08 +0000)] 
Additional malloc sanity changes.  Use sqlite3MemLink() on Index.zColAff and
Table.zColAff as a proof of concept.

FossilOrigin-Name: e5ecb15984e433b102e82eadb127d50ba2dc2ce3

14 years agoAdd infrastructure to support a hierarchy of memory allocations with
drh [Sat, 24 Jul 2010 18:25:20 +0000 (18:25 +0000)] 
Add infrastructure to support a hierarchy of memory allocations with
automatic deallocation of substructure.

FossilOrigin-Name: 48ef221c28ceaeb11427d9fe3049aa16249d466e

14 years agoMake sure all memory from sqlite3DbMalloc() is freed by sqlite3DbFree() and
drh [Sat, 24 Jul 2010 16:34:37 +0000 (16:34 +0000)] 
Make sure all memory from sqlite3DbMalloc() is freed by sqlite3DbFree() and
all memory from sqlite3_malloc() is freed by sqlite3_free().

FossilOrigin-Name: ac1f37a647e9ed1c00a901d26d9956a86c40117a

14 years agoFix a typo in the OS/2 vfs code.
drh [Fri, 23 Jul 2010 22:26:20 +0000 (22:26 +0000)] 
Fix a typo in the OS/2 vfs code.

FossilOrigin-Name: a6bb2108bfb562a7067ef6150e43382736c0c4f5

14 years agoMerge two leaves.
dan [Fri, 23 Jul 2010 17:37:13 +0000 (17:37 +0000)] 
Merge two leaves.

FossilOrigin-Name: 54e5886d841af69c8fa965bbcd637441d4a398ba

14 years agoStrenghten an assert() in malloc.c that helps to ensure that allocated memory
drh [Fri, 23 Jul 2010 17:32:23 +0000 (17:32 +0000)] 
Strenghten an assert() in malloc.c that helps to ensure that allocated memory
is freed by the appropriate routine.

FossilOrigin-Name: 80db61acca034a8edff0fd23a65a0bbc9206a7b3

14 years agoRemove additional traces (mostly in comments) of the Table.dbMem field.
drh [Fri, 23 Jul 2010 17:06:32 +0000 (17:06 +0000)] 
Remove additional traces (mostly in comments) of the Table.dbMem field.

FossilOrigin-Name: 5c58f44aeb224e106497368d9290d75a08807761

14 years agoAdd a test case to shared.test. No changes to production code.
dan [Fri, 23 Jul 2010 15:55:31 +0000 (15:55 +0000)] 
Add a test case to shared.test. No changes to production code.

FossilOrigin-Name: bfb0dd3c2f7e1ffbdf236be4adc3e0d804ed5854

14 years agoRemove the Table.dbMem variable, as it is no longer being used for its original purpose.
dan [Fri, 23 Jul 2010 15:41:47 +0000 (15:41 +0000)] 
Remove the Table.dbMem variable, as it is no longer being used for its original purpose.

FossilOrigin-Name: 6eddc6e601cf8f585c6c2cf79f36fcbfe98a307e

14 years agoRemove the unused Schema.db variable.
dan [Fri, 23 Jul 2010 08:31:35 +0000 (08:31 +0000)] 
Remove the unused Schema.db variable.

FossilOrigin-Name: 430be657be68687c998f2f5f8dcd112bf26106be

14 years agoAdd evidence marks to the where.c source file. Comment only - no code changes.
drh [Thu, 22 Jul 2010 22:40:03 +0000 (22:40 +0000)] 
Add evidence marks to the where.c source file.  Comment only - no code changes.

FossilOrigin-Name: f3f9e8e5bb90cc36e0d63a7289a8acf534c5fa2a

14 years agoMake the sqlite3_db_status() routine threadsafe.
dan [Thu, 22 Jul 2010 17:55:40 +0000 (17:55 +0000)] 
Make the sqlite3_db_status() routine threadsafe.

FossilOrigin-Name: 241f7bd190329fa02ca428651072a4a206132eab

14 years agoEnhance the LIKE/GLOB query optimization so that it works as long as there
drh [Thu, 22 Jul 2010 17:49:52 +0000 (17:49 +0000)] 
Enhance the LIKE/GLOB query optimization so that it works as long as there
is an index with the appropriate collating sequence and even if the default
collating sequence of the column is different.
Ticket [4711020446da7d93d99].

FossilOrigin-Name: 9f932655f9eb9fdab16d7deed98b7cad414e0ca6

14 years agoAdd test/threadtest3.c, containing multi-thread tests implemented in C.
dan [Thu, 22 Jul 2010 15:44:06 +0000 (15:44 +0000)] 
Add test/threadtest3.c, containing multi-thread tests implemented in C.

FossilOrigin-Name: aad88cf54e9e55b757d2ece9e39d436e71dcaa9f

14 years agoTry to optimize LIKE and GLOB operators when RHS contains no wildcard.
drh [Thu, 22 Jul 2010 12:33:57 +0000 (12:33 +0000)] 
Try to optimize LIKE and GLOB operators when RHS contains no wildcard.
Ticket [e090183531fc274747]

FossilOrigin-Name: 613a87d62fd1f8526d53136efae5adae91824bcf

14 years agoTweaks to the virtual table documentation contained in comments of sqlite3.h.
drh [Thu, 22 Jul 2010 11:40:34 +0000 (11:40 +0000)] 
Tweaks to the virtual table documentation contained in comments of sqlite3.h.
No changes to actual code.

FossilOrigin-Name: f5866d4723460e80814b8599e0b84ff4a924da6f

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