]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
18 years agoFix btree.c so that it works with -DSQLITE_THREADSAFE=0 and -DSQLITE_DEBUG=1 (CVS...
drh [Mon, 3 Sep 2007 22:00:39 +0000 (22:00 +0000)] 
Fix btree.c so that it works with -DSQLITE_THREADSAFE=0 and -DSQLITE_DEBUG=1 (CVS 4387)

FossilOrigin-Name: fee2d7c0e6d34dd19ff5f7631c1743879068c8ce

18 years agoDocumentation updates in preparation for the release of version 3.5.0. (CVS 4386)
drh [Mon, 3 Sep 2007 20:32:45 +0000 (20:32 +0000)] 
Documentation updates in preparation for the release of version 3.5.0. (CVS 4386)

FossilOrigin-Name: c6809bf77625f420ac62513635628ff4f1766f83

18 years agoIn sqllimits1.test, set MAX_SQL_LENGTH to a value smaller than MAX_LENGTH. (CVS 4385)
danielk1977 [Mon, 3 Sep 2007 18:01:24 +0000 (18:01 +0000)] 
In sqllimits1.test, set MAX_SQL_LENGTH to a value smaller than MAX_LENGTH. (CVS 4385)

FossilOrigin-Name: 51726a9bb6c7f98c496302745656dc317ad5c094

18 years agoUnix OS interface returns SQLITE_CANTOPEN following a getcwd() failure. (CVS 4384)
drh [Mon, 3 Sep 2007 17:42:17 +0000 (17:42 +0000)] 
Unix OS interface returns SQLITE_CANTOPEN following a getcwd() failure. (CVS 4384)

FossilOrigin-Name: ed15db4610bc6202c624234e48d234e0005825e4

18 years agoRemove an unreachable case from xferOptimization(). Also other minor test coverage...
danielk1977 [Mon, 3 Sep 2007 17:30:06 +0000 (17:30 +0000)] 
Remove an unreachable case from xferOptimization(). Also other minor test coverage improvements. (CVS 4383)

FossilOrigin-Name: 75af7189c0ed1b24a32cff6960af7f17326cbc17

18 years agoFix the open file counter on windows. (CVS 4382)
drh [Mon, 3 Sep 2007 17:09:03 +0000 (17:09 +0000)] 
Fix the open file counter on windows. (CVS 4382)

FossilOrigin-Name: 40cf0c177635c087b7695a8c4c3b37da57f74425

18 years agoGet the io.test tests working on windows. (CVS 4381)
drh [Mon, 3 Sep 2007 17:02:50 +0000 (17:02 +0000)] 
Get the io.test tests working on windows. (CVS 4381)

FossilOrigin-Name: 1be70015e24f715a4276f253d2e0c0eec44650ee

18 years agoFix the incrblob.test on windows. Disable line terminator translation. (CVS 4380)
drh [Mon, 3 Sep 2007 16:45:35 +0000 (16:45 +0000)] 
Fix the incrblob.test on windows.  Disable line terminator translation. (CVS 4380)

FossilOrigin-Name: ccbd2efebaecfd26d7016eb6684ad26c0bcc4e6b

18 years agoEnable threadsafe builds by default in configure. Ticket #2606.
drh [Mon, 3 Sep 2007 16:12:09 +0000 (16:12 +0000)] 
Enable threadsafe builds by default in configure.  Ticket #2606.
Changes to test scripts to do better testing under all configurations. (CVS 4379)

FossilOrigin-Name: d66e08fd4f12407e565dc9fc53a5802216808378

18 years agoTest script fixes to get things running under varying configurations.
drh [Mon, 3 Sep 2007 15:42:47 +0000 (15:42 +0000)] 
Test script fixes to get things running under varying configurations.
No changes to code. (CVS 4378)

FossilOrigin-Name: 340a6d09bcde11065c1887b84bb81805b523ffb6

18 years agoRemove the last traces of SQLITE_ENABLE_REDEF_IO. (CVS 4377)
drh [Mon, 3 Sep 2007 15:26:20 +0000 (15:26 +0000)] 
Remove the last traces of SQLITE_ENABLE_REDEF_IO. (CVS 4377)

FossilOrigin-Name: 38dff76ddf0ec7d2cd0d2e1282f9c36558e5661a

18 years agoHonor the SQLITE_OPEN_ flags passed into sqlite3_open_v2(). Some
drh [Mon, 3 Sep 2007 15:19:34 +0000 (15:19 +0000)] 
Honor the SQLITE_OPEN_ flags passed into sqlite3_open_v2().  Some
test cases added but more are needed.  Ticket #2616. (CVS 4376)

FossilOrigin-Name: 020a2b10d408f51d4ef3211c5f701f5378fd4625

18 years agoFix a problem in hash.c when replacing entries in tables configured with copyKey...
danielk1977 [Mon, 3 Sep 2007 15:03:20 +0000 (15:03 +0000)] 
Fix a problem in hash.c when replacing entries in tables configured with copyKey==0. (CVS 4375)

FossilOrigin-Name: a19d3a73a91f2040ec35d913f11743ff4913ffb7

18 years agoImprovements to the xRandomness() method on the default windows VFS.
drh [Mon, 3 Sep 2007 13:06:11 +0000 (13:06 +0000)] 
Improvements to the xRandomness() method on the default windows VFS.
Ticket #2615. (CVS 4374)

FossilOrigin-Name: 91b50f31e35652a40d51f5d9bf22efce36d515e4

18 years agoDocument the fact that xRandomness is only called once from the default VFS.
drh [Mon, 3 Sep 2007 12:34:57 +0000 (12:34 +0000)] 
Document the fact that xRandomness is only called once from the default VFS.
Ticket #2614. (CVS 4373)

FossilOrigin-Name: e89d4131a1b55da1a7f226d7f7b416f02f5e2c6e

18 years agoAdd a module-destructor to the echo module (test8.c) to improve code coverage. (CVS...
danielk1977 [Mon, 3 Sep 2007 11:51:50 +0000 (11:51 +0000)] 
Add a module-destructor to the echo module (test8.c) to improve code coverage. (CVS 4372)

FossilOrigin-Name: e3dd3651421ee723f9b7550fc333a308a83b276d

18 years agoHandle transient malloc() failures in sqlite3CreateFunc(). (CVS 4371)
danielk1977 [Mon, 3 Sep 2007 11:04:22 +0000 (11:04 +0000)] 
Handle transient malloc() failures in sqlite3CreateFunc(). (CVS 4371)

FossilOrigin-Name: c0ce63196458c81e0859fc8a38f2dd2145a580bc

18 years agoFixes to test code so that the test suite passes without SQLITE_MEMDEBUG defined...
danielk1977 [Mon, 3 Sep 2007 07:31:09 +0000 (07:31 +0000)] 
Fixes to test code so that the test suite passes without SQLITE_MEMDEBUG defined. (CVS 4370)

FossilOrigin-Name: ed2a2e0102c4fd2221096028d55a6f1d54f97274

18 years agoThe sqlite3_vfs_register() interface now calls sqlite3_vfs_find(0) to make
drh [Sun, 2 Sep 2007 17:52:04 +0000 (17:52 +0000)] 
The sqlite3_vfs_register() interface now calls sqlite3_vfs_find(0) to make
sure the VFS subsystem is initialized.  Ticket #2611. (CVS 4369)

FossilOrigin-Name: 4a9999a36d01a8c6490792605a6f7e233cc4402c

18 years agoFix function name typo in mem1.c. This bug managed to make it into
drh [Sun, 2 Sep 2007 17:50:35 +0000 (17:50 +0000)] 
Fix function name typo in mem1.c.  This bug managed to make it into
the tree because the code in mem1.c is only compiled when the
-DSQLITE_MEMDEBUG compile-time option is omitted.  But
pre-checkin tests usually include this option.  Ticket #2612. (CVS 4368)

FossilOrigin-Name: 59e02db2402f9fcadfbeee88ab5778d27ddde634

18 years agoFix a bug in jrnlTruncate(). And other coverage improvements. (CVS 4367)
danielk1977 [Sat, 1 Sep 2007 18:24:55 +0000 (18:24 +0000)] 
Fix a bug in jrnlTruncate(). And other coverage improvements. (CVS 4367)

FossilOrigin-Name: 02b751fb9dbc683b1b77a2ed3cdeb4190f7339e0

18 years agoComment changes in sqlite.h.in in order to generate better capi3ref.html
drh [Sat, 1 Sep 2007 18:17:21 +0000 (18:17 +0000)] 
Comment changes in sqlite.h.in in order to generate better capi3ref.html
documentation. (CVS 4366)

FossilOrigin-Name: 280474595687bb843872f1bbc82cda3b1982085c

18 years agoRemove code for calling the SQL function randstr() with 0 or 1 argument, as it is...
danielk1977 [Sat, 1 Sep 2007 17:00:12 +0000 (17:00 +0000)] 
Remove code for calling the SQL function randstr() with 0 or 1 argument, as it is registered with sqlite as requiring exactly 2. Also test io errors in sqlite3_release_memory(). (CVS 4365)

FossilOrigin-Name: 5842f68c1ba838f24e9ba02c818d308540d591a4

18 years agoRemove the syncOk argument to pager_recycle. Now that sqlite3_memory_release uses...
danielk1977 [Sat, 1 Sep 2007 16:16:15 +0000 (16:16 +0000)] 
Remove the syncOk argument to pager_recycle. Now that sqlite3_memory_release uses a global lru list of page, it is no longer required. (CVS 4364)

FossilOrigin-Name: fb27692ab10b22851b265348bb6b3e1dececd60f

18 years agoTest sqlite3_bind_zeroblob(). Only include sqlite3Utf8To8 in builds if SQLITE_DEBUG...
danielk1977 [Sat, 1 Sep 2007 11:04:26 +0000 (11:04 +0000)] 
Test sqlite3_bind_zeroblob(). Only include sqlite3Utf8To8 in builds if SQLITE_DEBUG is defined. (CVS 4363)

FossilOrigin-Name: fde6142b7bb33198b3d6b65cfbddfad61694b1fb

18 years agoAllow sqlite3GetInt32 to recognize 10-digit decimal numbers as 32-bit. (CVS 4362)
danielk1977 [Sat, 1 Sep 2007 10:01:12 +0000 (10:01 +0000)] 
Allow sqlite3GetInt32 to recognize 10-digit decimal numbers as 32-bit. (CVS 4362)

FossilOrigin-Name: 7571345d2078fb52029f9b9924d833ec36d443e6

18 years agoFix a problem handling a malloc() failure in printf.c. Also some other things to...
danielk1977 [Sat, 1 Sep 2007 09:02:53 +0000 (09:02 +0000)] 
Fix a problem handling a malloc() failure in printf.c. Also some other things to improve test coverage. (CVS 4361)

FossilOrigin-Name: 595bfe72f053bc6ecb58bb9044a4cdc53d30b404

18 years agoFix for registration of non-default vfs objects. (CVS 4360)
danielk1977 [Sat, 1 Sep 2007 06:51:27 +0000 (06:51 +0000)] 
Fix for registration of non-default vfs objects. (CVS 4360)

FossilOrigin-Name: 5f48fb95c26a713b3259ee49fd444108030376dc

18 years agoFix a bug in loadext.test. (CVS 4359)
danielk1977 [Sat, 1 Sep 2007 06:19:05 +0000 (06:19 +0000)] 
Fix a bug in loadext.test. (CVS 4359)

FossilOrigin-Name: 2be8af9d402a5cd8da8c348883188eb38900f6dc

18 years agoCall sqlite3OsDlError to obtain error information after DlOpen or DlSym fail. (CVS...
danielk1977 [Sat, 1 Sep 2007 05:57:49 +0000 (05:57 +0000)] 
Call sqlite3OsDlError to obtain error information after DlOpen or DlSym fail. (CVS 4358)

FossilOrigin-Name: 3d74256c9123e8434c68e6a0c5b61686b34a4328

18 years agoChange the windows tempfile name generator so that it uses 119 bits
drh [Sat, 1 Sep 2007 02:13:10 +0000 (02:13 +0000)] 
Change the windows tempfile name generator so that it uses 119 bits
of randomness and does not bother to check to see if the file already
exists.  Ticket #2608.  (Unable to test from this machine, but the
changes are simple and isolated.  Hope it works.) (CVS 4357)

FossilOrigin-Name: ca6c1e3f44d8b9d9b76a0efe53ea6a6ad5e14d57

18 years agoGet make doc working again. (CVS 4356)
drh [Fri, 31 Aug 2007 18:50:31 +0000 (18:50 +0000)] 
Get make doc working again. (CVS 4356)

FossilOrigin-Name: 8f73ebc6e30467d2c594701e0aa45b53147ef2ef

18 years agoRemove the xLockState method for sqlite3_io_methods. Replace it with
drh [Fri, 31 Aug 2007 18:34:59 +0000 (18:34 +0000)] 
Remove the xLockState method for sqlite3_io_methods.  Replace it with
a defined call to xFileControl().  This simplifies the interface and
also gives us coverage testing of sqlite3_file_control(). (CVS 4355)

FossilOrigin-Name: 306586c412b87c6d12bac796641517afa3f9eb6a

18 years agoAllow sqllimits1.test to be run from a regular build of testfixture. Add the 'amalgam...
danielk1977 [Fri, 31 Aug 2007 17:42:48 +0000 (17:42 +0000)] 
Allow sqllimits1.test to be run from a regular build of testfixture. Add the 'amalgamation-testfixture' target to main.mk - to build testfixture via sqlite3.c. (CVS 4354)

FossilOrigin-Name: d119427314d27f291b605073d34826cdb89746c1

18 years agoInitial implementation of the sqlite3_file_control() interface.
drh [Fri, 31 Aug 2007 16:11:35 +0000 (16:11 +0000)] 
Initial implementation of the sqlite3_file_control() interface.
Compiles and passes all historical tests but the new method is itself
untested. (CVS 4353)

FossilOrigin-Name: d3ab3e3911f10b17d0859a34f4f007c790a0cd82

18 years agoConvert the TCL interface to use sqlite3_open_v2 (CVS 4352)
drh [Fri, 31 Aug 2007 14:31:44 +0000 (14:31 +0000)] 
Convert the TCL interface to use sqlite3_open_v2 (CVS 4352)

FossilOrigin-Name: 3434b7a9213f210498f43cb5094a0f3f5c25b957

18 years agoFix a problem in malloc3.test preventing all.test from completing. No code changes...
danielk1977 [Fri, 31 Aug 2007 05:00:48 +0000 (05:00 +0000)] 
Fix a problem in malloc3.test preventing all.test from completing. No code changes. (CVS 4351)

FossilOrigin-Name: ee9b3e5e38c52f5669009a08aec58678ccad0d87

18 years agoAdd the experimental sqlite3_threadsafe() API. (CVS 4350)
drh [Thu, 30 Aug 2007 20:09:48 +0000 (20:09 +0000)] 
Add the experimental sqlite3_threadsafe() API. (CVS 4350)

FossilOrigin-Name: 1b39a714efbe1f4ccc8daf68a227a8c9b84a388f

18 years agoFix the loadable extension module so that it will compile with
drh [Thu, 30 Aug 2007 20:09:27 +0000 (20:09 +0000)] 
Fix the loadable extension module so that it will compile with
SQLITE_THREADSAFE=0. (CVS 4349)

FossilOrigin-Name: a73a8b50f76f4f948a4080070ac2354d8ea05515

18 years agoFix discrepency in the test pointed out by a user. Was testing fts2 :-). (CVS 4348)
shess [Thu, 30 Aug 2007 20:01:32 +0000 (20:01 +0000)] 
Fix discrepency in the test pointed out by a user.  Was testing fts2 :-). (CVS 4348)

FossilOrigin-Name: 65c62ed85edd2cb3cf26f01fadf3b342c1e8a20f

18 years agoFix memory leak reported by an fts1 user. Was losing a doclist on a
shess [Thu, 30 Aug 2007 19:56:37 +0000 (19:56 +0000)] 
Fix memory leak reported by an fts1 user.  Was losing a doclist on a
query error. (CVS 4347)

FossilOrigin-Name: eee025024972852990e704253d1443c1cefb376c

18 years agoMake mutex functions available to loadable extensions. Fix the
drh [Thu, 30 Aug 2007 17:15:37 +0000 (17:15 +0000)] 
Make mutex functions available to loadable extensions.  Fix the
amalgamation generator to include the latest source files. (CVS 4346)

FossilOrigin-Name: 293a3f837bd6c6a26f694a9210e59ace23abb6bb

18 years agoFix a memory leak in the win32 OS driver. Ticket #2602. (CVS 4345)
drh [Thu, 30 Aug 2007 16:46:04 +0000 (16:46 +0000)] 
Fix a memory leak in the win32 OS driver.  Ticket #2602. (CVS 4345)

FossilOrigin-Name: 1f80cf5e759af68b854d4de2e97badf546a465ca

18 years agoFix the "test_destructor" test function in utf-16 mode. Fix for test failure in utf16...
danielk1977 [Thu, 30 Aug 2007 16:30:27 +0000 (16:30 +0000)] 
Fix the "test_destructor" test function in utf-16 mode. Fix for test failure in utf16 version of func.test. (CVS 4344)

FossilOrigin-Name: c073b78040e5833de038dea464ac87c7358b8b51

18 years agoMake the latest interfaces usable by loadable extensions. (CVS 4343)
drh [Thu, 30 Aug 2007 16:23:19 +0000 (16:23 +0000)] 
Make the latest interfaces usable by loadable extensions. (CVS 4343)

FossilOrigin-Name: e9b2700b8c30b0255c9e33419ff18bdebb78087a

18 years agoPrevent sqlite from opening directories as databases under unix. Fix for test cae...
danielk1977 [Thu, 30 Aug 2007 16:13:33 +0000 (16:13 +0000)] 
Prevent sqlite from opening directories as databases under unix. Fix for test cae in misc7.test. (CVS 4342)

FossilOrigin-Name: e30546504c59c7d92d83a32d9b7e83edc175e247

18 years agoCheck in extra fixes for malloc4.test. (CVS 4341)
danielk1977 [Thu, 30 Aug 2007 15:46:06 +0000 (15:46 +0000)] 
Check in extra fixes for malloc4.test. (CVS 4341)

FossilOrigin-Name: 49ce3a838194f0316c883dbe1596d13c0c0fad1b

18 years agoFixes for malloc4.test. (CVS 4340)
danielk1977 [Thu, 30 Aug 2007 15:16:04 +0000 (15:16 +0000)] 
Fixes for malloc4.test. (CVS 4340)

FossilOrigin-Name: 23746924db3c005d1f75572c6cbb91db6fc41eb4

18 years agoFix the SQLITE_MIXED_ENDIAN_64BIT_FLOAT option so that it works on
drh [Thu, 30 Aug 2007 15:05:08 +0000 (15:05 +0000)] 
Fix the SQLITE_MIXED_ENDIAN_64BIT_FLOAT option so that it works on
goofy linux kernels that employ CONFIG_FPE_FASTFPE.  Patch from
Frank van Vugt. (CVS 4339)

FossilOrigin-Name: 71ab92e900512ad01047b46f734bd5f65998ecf9

18 years agoFix a ref-count problem in the TCL bindings. Ticket #2597. (CVS 4338)
drh [Thu, 30 Aug 2007 14:58:20 +0000 (14:58 +0000)] 
Fix a ref-count problem in the TCL bindings.  Ticket #2597. (CVS 4338)

FossilOrigin-Name: 18a5babb72102f9a82cb24757612a8b683a3f995

18 years agoRemove the SYNC_BARRIER flag. (CVS 4337)
danielk1977 [Thu, 30 Aug 2007 14:49:58 +0000 (14:49 +0000)] 
Remove the SYNC_BARRIER flag. (CVS 4337)

FossilOrigin-Name: 5a22d8695b49cf7bc2eee382b66a98d29adb9e6e

18 years agoFixes to malloc3.test so that it can run in transient or persistent failure mode...
danielk1977 [Thu, 30 Aug 2007 14:41:34 +0000 (14:41 +0000)] 
Fixes to malloc3.test so that it can run in transient or persistent failure mode. (CVS 4336)

FossilOrigin-Name: e14e3688eb64577a2a7070e4e47e715a5d7d5089

18 years agoBug fixes in the mutex header file. Tickets #2599 and #2600. (CVS 4335)
drh [Thu, 30 Aug 2007 14:10:30 +0000 (14:10 +0000)] 
Bug fixes in the mutex header file.  Tickets #2599 and #2600. (CVS 4335)

FossilOrigin-Name: 4bdfe1419c536fec5b3c0a7fbe3d0ff52f183f43

18 years agoFixes for failures in fuzz_malloc.test. (CVS 4334)
danielk1977 [Thu, 30 Aug 2007 11:48:31 +0000 (11:48 +0000)] 
Fixes for failures in fuzz_malloc.test. (CVS 4334)

FossilOrigin-Name: d3e502263808c1fe0487fda02f16adcbb1279183

18 years agoFix some problems in async2.test. No code changes. (CVS 4333)
danielk1977 [Thu, 30 Aug 2007 10:49:54 +0000 (10:49 +0000)] 
Fix some problems in async2.test. No code changes. (CVS 4333)

FossilOrigin-Name: d80d87c239df06ef2182bc2b78e6d4c1852d28c9

18 years agoBetter handle a malloc() failure in sqlite3PagerSetPagesize(). (CVS 4332)
danielk1977 [Thu, 30 Aug 2007 10:07:38 +0000 (10:07 +0000)] 
Better handle a malloc() failure in sqlite3PagerSetPagesize(). (CVS 4332)

FossilOrigin-Name: 41550d87c9395ab2fec5993655865e29235130a3

18 years agoFix a bug in a test file causing malloc5.test to crash. (CVS 4331)
danielk1977 [Thu, 30 Aug 2007 08:27:39 +0000 (08:27 +0000)] 
Fix a bug in a test file causing malloc5.test to crash. (CVS 4331)

FossilOrigin-Name: ab09967bd2dd291030850d44c0862fbb7d0d8118

18 years agoAdd tests for malloc() failure when the atomic-write optimization is being used....
danielk1977 [Thu, 30 Aug 2007 08:08:17 +0000 (08:08 +0000)] 
Add tests for malloc() failure when the atomic-write optimization is being used. Also fix things so that rollback can occur without a malloc(), even if there is a master journal file. (CVS 4330)

FossilOrigin-Name: 481fd3a89e50e329596d96565170e3d9977aae29

18 years agoTest case fixes for fulltest. (CVS 4329)
drh [Thu, 30 Aug 2007 02:26:53 +0000 (02:26 +0000)] 
Test case fixes for fulltest. (CVS 4329)

FossilOrigin-Name: cddce4950569ac49c1a5224b200b00dcd83a2ba4

18 years agoFix for the sqlite3AbortOtherActiveVdbes() problem. (CVS 4328)
drh [Thu, 30 Aug 2007 01:19:59 +0000 (01:19 +0000)] 
Fix for the sqlite3AbortOtherActiveVdbes() problem. (CVS 4328)

FossilOrigin-Name: e40d40a5d41c491bef852a92e5846b273b206909

18 years agoFix minor problems on various tests. This is a snapshot prior to possible
drh [Wed, 29 Aug 2007 19:15:08 +0000 (19:15 +0000)] 
Fix minor problems on various tests.  This is a snapshot prior to possible
major changes in order to fix the sqlite3AbortOtherActiveVdbes problem. (CVS 4327)

FossilOrigin-Name: 35cb63ecfd9d8ca7304aae1b150ee5d1c3498bde

18 years agoFix a bug in test_server.c that resulted from the change in semantics
drh [Wed, 29 Aug 2007 18:20:16 +0000 (18:20 +0000)] 
Fix a bug in test_server.c that resulted from the change in semantics
of sqlite3_enable_shared_cache().  All quick tests now pass. (CVS 4326)

FossilOrigin-Name: 5201fa4f8310ffc8b6881d96b152581d74e2df6b

18 years agoDisable tests that require SQLITE_ENABLE_ATOMIC_WRITE if that feature is
drh [Wed, 29 Aug 2007 17:59:42 +0000 (17:59 +0000)] 
Disable tests that require SQLITE_ENABLE_ATOMIC_WRITE if that feature is
not enabled. (CVS 4325)

FossilOrigin-Name: 4874499377e8f89a25d8cc2cf7982e6811d53f1b

18 years agoImprovements to mutex asserts. The quick test runs to completion without
drh [Wed, 29 Aug 2007 17:43:19 +0000 (17:43 +0000)] 
Improvements to mutex asserts.  The quick test runs to completion without
assertion faults. (CVS 4324)

FossilOrigin-Name: 2732af0ec77dbc90c0439b6a61d893d9ea3b5697

18 years agoUse the DbMalloc() and DbRealloc() functions more consistently. (CVS 4323)
danielk1977 [Wed, 29 Aug 2007 14:06:22 +0000 (14:06 +0000)] 
Use the DbMalloc() and DbRealloc() functions more consistently. (CVS 4323)

FossilOrigin-Name: c790c234c369c6b7610e67dcaaa9eee347df729c

18 years agoBe careful to verify the schema cookie when running the xfer optimization
drh [Wed, 29 Aug 2007 13:45:58 +0000 (13:45 +0000)] 
Be careful to verify the schema cookie when running the xfer optimization
on INSERT statements. (CVS 4322)

FossilOrigin-Name: d8ef7024172fffee049cfda6707220af2577e9a1

18 years agoModifications to the malloc failure tests to test transient and persistent failures...
danielk1977 [Wed, 29 Aug 2007 12:31:25 +0000 (12:31 +0000)] 
Modifications to the malloc failure tests to test transient and persistent failures. (CVS 4321)

FossilOrigin-Name: e38ef81b85feb5bff2ad8448f3438ff0ab36571e

18 years agoBetter asserts(). But now some of the tests are busted again. (CVS 4320)
drh [Wed, 29 Aug 2007 04:00:57 +0000 (04:00 +0000)] 
Better asserts().  But now some of the tests are busted again. (CVS 4320)

FossilOrigin-Name: e8060f85e7871572e2a38dc96f03e6e1f34cc8fd

18 years agoMore locking fixes. Now makes it all the way through quick.test. There
drh [Wed, 29 Aug 2007 00:33:07 +0000 (00:33 +0000)] 
More locking fixes.  Now makes it all the way through quick.test.  There
are errors but no assertion faults.  Progress. (CVS 4319)

FossilOrigin-Name: 844d40b8379d3374130e2d94f6e32c2cda34e0ca

18 years agoThe shared_err test runs with no errors. But a potential deadlock has been
drh [Tue, 28 Aug 2007 23:28:07 +0000 (23:28 +0000)] 
The shared_err test runs with no errors.  But a potential deadlock has been
discovered and is still unfixed. (CVS 4318)

FossilOrigin-Name: f093a0d7b29a819605e0527bf23a047e16c32688

18 years agoThe shared_err test runs with no errors. But a potential deadlock has been
drh [Tue, 28 Aug 2007 23:28:07 +0000 (23:28 +0000)] 
The shared_err test runs with no errors.  But a potential deadlock has been
discovered and is still unfixed. (CVS 4317)

FossilOrigin-Name: f84550be0a0c9e5859b852863b9a8f8ed3fd6919

18 years agoClean up the locking in the btree logic. (CVS 4316)
drh [Tue, 28 Aug 2007 22:24:34 +0000 (22:24 +0000)] 
Clean up the locking in the btree logic. (CVS 4316)

FossilOrigin-Name: 967ab229af462a8ae663090ea36b4cc10e351653

18 years agoFix memory leak of InteriorReader.term. Comes up when doing queries
shess [Tue, 28 Aug 2007 20:36:53 +0000 (20:36 +0000)] 
Fix memory leak of InteriorReader.term.  Comes up when doing queries
against large segments. (CVS 4315)

FossilOrigin-Name: 6c617bd89fc57881a2a308a6360e8ebb42835d46

18 years agoremove unused os_os2.h (CVS 4314)
pweilbacher [Tue, 28 Aug 2007 19:21:21 +0000 (19:21 +0000)] 
remove unused os_os2.h (CVS 4314)

FossilOrigin-Name: dd43a2de3ed1659d70361370d07a184dd8ece45f

18 years agoFix locking bug in btshared.c. (CVS 4313)
drh [Tue, 28 Aug 2007 16:44:20 +0000 (16:44 +0000)] 
Fix locking bug in btshared.c. (CVS 4313)

FossilOrigin-Name: af24e7d01a7fab5e33080a0f786e0bc6f610a6f3

18 years agoBreak up the mutex implementation into separate source files, one
drh [Tue, 28 Aug 2007 16:34:42 +0000 (16:34 +0000)] 
Break up the mutex implementation into separate source files, one
each for unix, w32, and os2. (CVS 4312)

FossilOrigin-Name: fc5cd71aef5ac194f51d73350d773d532020967e

18 years agoUpdates to the sqlite3_open() documentation. Method the magic
drh [Tue, 28 Aug 2007 15:47:44 +0000 (15:47 +0000)] 
Updates to the sqlite3_open() documentation.  Method the magic
:memory: filename.  Ticket #2591. (CVS 4311)

FossilOrigin-Name: 5f55b2fc4ecdfc1bb68f479751b8642926fd8833

18 years agoUpdate the sqlite3_vfs_register() documentation to make
drh [Tue, 28 Aug 2007 15:21:45 +0000 (15:21 +0000)] 
Update the sqlite3_vfs_register() documentation to make
the behavior undefined for VFSes with a NULL or empty string
as the name or with duplicate names. (CVS 4310)

FossilOrigin-Name: e7a98b48384ea581d98dad5118ee33468d526c62

18 years agoUse "affected" instead of "effected". Ticket #2589. No code changes. (CVS 4309)
danielk1977 [Tue, 28 Aug 2007 08:19:49 +0000 (08:19 +0000)] 
Use "affected" instead of "effected". Ticket #2589. No code changes. (CVS 4309)

FossilOrigin-Name: 4c5631ce347a25dd6df90e7e4395a55cd750c1c9

18 years agoAdd some comments and test-cases for the global lru page list (used by sqlite3_releas...
danielk1977 [Tue, 28 Aug 2007 08:00:17 +0000 (08:00 +0000)] 
Add some comments and test-cases for the global lru page list (used by sqlite3_release_memory()). (CVS 4308)

FossilOrigin-Name: 0b80168895993af5774369f839f284712d006f0a

18 years agoWork toward correct btree locking in a multithreaded environment. (CVS 4307)
drh [Tue, 28 Aug 2007 02:27:51 +0000 (02:27 +0000)] 
Work toward correct btree locking in a multithreaded environment. (CVS 4307)

FossilOrigin-Name: b8cc493b47e618648f645ab73eb0253739e03fcd

18 years agoDisable tests that debug on SQLITE_MEMDEBUG when that macro is not defined. (CVS...
drh [Mon, 27 Aug 2007 23:48:23 +0000 (23:48 +0000)] 
Disable tests that debug on SQLITE_MEMDEBUG when that macro is not defined. (CVS 4306)

FossilOrigin-Name: 741d6fb096dcb232871d3a8468c386022afcf554

18 years agoFix the autoconf makefile with all the latest changes. (CVS 4305)
drh [Mon, 27 Aug 2007 23:38:43 +0000 (23:38 +0000)] 
Fix the autoconf makefile with all the latest changes. (CVS 4305)

FossilOrigin-Name: bc6d73d015327a9cf6b687aaf4b3f0d07e0fd484

18 years agoWork around problem with forward declarations of constants in MSVC
drh [Mon, 27 Aug 2007 23:26:59 +0000 (23:26 +0000)] 
Work around problem with forward declarations of constants in MSVC
in the amalgamation.  Ticket #2574. (CVS 4304)

FossilOrigin-Name: dc80b2e1f4e1d31479aad9f39e651e62f2601fb8

18 years agoBring the amalgamation builder up to date with the latest changes.
drh [Mon, 27 Aug 2007 21:49:34 +0000 (21:49 +0000)] 
Bring the amalgamation builder up to date with the latest changes.
Remove some vestigial code. (CVS 4303)

FossilOrigin-Name: 0ae30e5c76d9094307ea086a9993a953631ab9da

18 years agoAdded the 34to35.html document describing the changes between 3.4.2 and
drh [Mon, 27 Aug 2007 21:10:36 +0000 (21:10 +0000)] 
Added the 34to35.html document describing the changes between 3.4.2 and
3.5.0.  Minor interface cleanups. (CVS 4302)

FossilOrigin-Name: 0791f917bb18d7305b805b9cbcb308bdd7b3a1f5

18 years agoModify sqlite3_release_memory() to use a global LRU list of pages. Untested. (CVS...
danielk1977 [Mon, 27 Aug 2007 17:27:49 +0000 (17:27 +0000)] 
Modify sqlite3_release_memory() to use a global LRU list of pages. Untested. (CVS 4301)

FossilOrigin-Name: 5626ce0b5e249d48b56fdc4561ef663941eb23dc

18 years agoCreate a fresh pthread_mutexattr_t every time a recursive mutex is
drh [Sat, 25 Aug 2007 16:31:29 +0000 (16:31 +0000)] 
Create a fresh pthread_mutexattr_t every time a recursive mutex is
allocated.  Ticket #2588. (CVS 4300)

FossilOrigin-Name: 3d746343add3feb9d208302a00b419d71d6ba246

18 years agoDocumentation and comment updates in sqlite.h.in and mutex.c. (CVS 4299)
drh [Sat, 25 Aug 2007 16:21:29 +0000 (16:21 +0000)] 
Documentation and comment updates in sqlite.h.in and mutex.c. (CVS 4299)

FossilOrigin-Name: 7289079d6b4a7a160063e34c0f5e43637ef7476f

18 years agoClarification in the documentation of the sqlite3_mutex_held() and
drh [Sat, 25 Aug 2007 14:49:36 +0000 (14:49 +0000)] 
Clarification in the documentation of the sqlite3_mutex_held() and
sqlite3_mutex_notheld() interfaces.  Make it clear that these routines
are only for use inside assert(). (CVS 4298)

FossilOrigin-Name: a6bbf6eaf6ccc471b4efe02cd8a3971112d909ab

18 years agoUse recursive mutexes in pthreads. If the pthreads implementation does not
drh [Sat, 25 Aug 2007 14:39:45 +0000 (14:39 +0000)] 
Use recursive mutexes in pthreads.  If the pthreads implementation does not
support recursive mutexes, then you cannot compile SQLite with
SQLITE_THREADSAFE=1.  Ticket #2588. (CVS 4297)

FossilOrigin-Name: 1668284d151e78d16b0d83bf55dfd9d349a452a7

18 years agoUpdate the rest of the malloc failure test scripts to use the new interface. (CVS...
danielk1977 [Sat, 25 Aug 2007 13:37:48 +0000 (13:37 +0000)] 
Update the rest of the malloc failure test scripts to use the new interface. (CVS 4296)

FossilOrigin-Name: b076e1655d6bae5ae10e6ceee646f502435da66a

18 years agoFix bugs in the altermalloc.test and incrblob_err.test scripts. (CVS 4295)
danielk1977 [Sat, 25 Aug 2007 13:09:26 +0000 (13:09 +0000)] 
Fix bugs in the altermalloc.test and incrblob_err.test scripts. (CVS 4295)

FossilOrigin-Name: e5ec17071720a973bbd213a8b23038d3aff25315

18 years agoUpdate the async2.test test script to use the new malloc() failure simulation interfa...
danielk1977 [Sat, 25 Aug 2007 12:39:28 +0000 (12:39 +0000)] 
Update the async2.test test script to use the new malloc() failure simulation interface. (CVS 4294)

FossilOrigin-Name: 686fcfeda407c29cdb51fe814da616f1ccac5414

18 years agoMake the test_async backend work again. (CVS 4293)
danielk1977 [Sat, 25 Aug 2007 12:29:30 +0000 (12:29 +0000)] 
Make the test_async backend work again. (CVS 4293)

FossilOrigin-Name: 04167483aad42d319393e8caf470d8de11e468d8

18 years agoBug fix in the implementation of recursive mutexes using non-recursive
drh [Sat, 25 Aug 2007 03:59:08 +0000 (03:59 +0000)] 
Bug fix in the implementation of recursive mutexes using non-recursive
pthreads mutexes.  Ticket #2588. (CVS 4292)

FossilOrigin-Name: 7d24c3a5a7641df2bbb8c91a0bc5aa75c96a73fe

18 years agoNew mutex implementation for both Unix and windows. (CVS 4291)
drh [Fri, 24 Aug 2007 20:46:59 +0000 (20:46 +0000)] 
New mutex implementation for both Unix and windows. (CVS 4291)

FossilOrigin-Name: e144b81f699ca991cc4fa12a487156391db0b367

18 years agofix cleanup by removing sqlite3.pc (generated by 'configure') on 'make distclean...
rse [Fri, 24 Aug 2007 18:32:58 +0000 (18:32 +0000)] 
fix cleanup by removing sqlite3.pc (generated by 'configure') on 'make distclean', too (CVS 4290)

FossilOrigin-Name: 3c908648353a575c3ff57be5dd9454a946d23b9f

18 years agoRework the win32 OS driver to use malloc()/free() directly rather than
drh [Fri, 24 Aug 2007 17:52:21 +0000 (17:52 +0000)] 
Rework the win32 OS driver to use malloc()/free() directly rather than
going through the SQLite memory allocation layer.  With this change, the
complete quick.test script now runs on windows.  There are a few errors,
but no segfaults.  Progress. (CVS 4289)

FossilOrigin-Name: 75aad316981690d7a93ea6ac1c187f7d98f6d715

18 years agoFix bugs in temp database handling introduced by the prevous check-in. (CVS 4288)
drh [Fri, 24 Aug 2007 16:29:23 +0000 (16:29 +0000)] 
Fix bugs in temp database handling introduced by the prevous check-in. (CVS 4288)

FossilOrigin-Name: 300038be9368556a29efce7cf3657fabfe54d8f9