]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
17 years agoFix a race condition in sqlite3_initialize(). (CVS 5310)
danielk1977 [Thu, 26 Jun 2008 08:29:34 +0000 (08:29 +0000)] 
Fix a race condition in sqlite3_initialize(). (CVS 5310)

FossilOrigin-Name: 70b2ed2afcf1757d1c58f3a83dad4a5fb226ae63

17 years agoDocumentation updates. No changes to code. (CVS 5309)
drh [Thu, 26 Jun 2008 02:53:02 +0000 (02:53 +0000)] 
Documentation updates.  No changes to code. (CVS 5309)

FossilOrigin-Name: cdc4e75a9f1e3c79ade92344cf32a4225222d44f

17 years agoChange the makefiles so that "make test" now runs the veryquick.test script instead...
danielk1977 [Wed, 25 Jun 2008 17:54:53 +0000 (17:54 +0000)] 
Change the makefiles so that "make test" now runs the veryquick.test script instead of quick.test. Also modify veryquick.test to reuse the code in quick.test. veryquick.test is now the same as quick.test except that it omits all testing related to malloc and IO error simulation. (CVS 5308)

FossilOrigin-Name: 8c65146ea0e77e8e31fffc467806b1edf91fb4db

17 years agoRemove internal function sqlite3OsDefaultVfs(). The built-in VFS layers now register...
danielk1977 [Wed, 25 Jun 2008 17:19:00 +0000 (17:19 +0000)] 
Remove internal function sqlite3OsDefaultVfs(). The built-in VFS layers now register their VFS implementations by calling sqlite3_vfs_register() from within sqlite3_os_init(). (CVS 5307)

FossilOrigin-Name: 8fa33b79d7369ec5777fd9ad3349f0fa31b98fd6

17 years agoHave mem3.c and mem5.c grab a mutex when required. Include them both in the amalgamat...
danielk1977 [Wed, 25 Jun 2008 14:57:53 +0000 (14:57 +0000)] 
Have mem3.c and mem5.c grab a mutex when required. Include them both in the amalgamation again. (CVS 5306)

FossilOrigin-Name: 9e3c95ff4048cd8e4c56acf7a8ebedc49621e9c7

17 years agoTest enhancements, especially to the new compound-SELECT merge logic. (CVS 5305)
drh [Wed, 25 Jun 2008 14:31:53 +0000 (14:31 +0000)] 
Test enhancements, especially to the new compound-SELECT merge logic. (CVS 5305)

FossilOrigin-Name: edf7f518361902924105142a8c67b898ba7d532f

17 years agoFix the allocator in mem5.c so that it can be enabled at run time using the sqlite3_c...
danielk1977 [Wed, 25 Jun 2008 14:26:07 +0000 (14:26 +0000)] 
Fix the allocator in mem5.c so that it can be enabled at run time using the sqlite3_config() function. (CVS 5304)

FossilOrigin-Name: 30ff6bb0b2d1068d28e86ac90bb9f454e4537a2d

17 years agoFix up some details to do with the mem3.c (memsys3) allocator. If the library is...
danielk1977 [Wed, 25 Jun 2008 10:34:34 +0000 (10:34 +0000)] 
Fix up some details to do with the mem3.c (memsys3) allocator. If the library is compiled with SQLITE_ENABLE_MEMSYS3, the memsys3 allocator can be selected at runtime. (CVS 5303)

FossilOrigin-Name: 9c6c8e01b31abfe2bc8e650bbfdb504021dc7e59

17 years agoFixed typo to close #1731. (CVS 5302)
mihailim [Wed, 25 Jun 2008 08:02:44 +0000 (08:02 +0000)] 
Fixed typo to close #1731. (CVS 5302)

FossilOrigin-Name: 9902be8d66453d3f4cfdc7f81a4ebe9bc6729204

17 years agoIf a unique index covers any prefix of the ORDER BY clause then let it
drh [Wed, 25 Jun 2008 02:47:57 +0000 (02:47 +0000)] 
If a unique index covers any prefix of the ORDER BY clause then let it
satisfy the ORDER BY clause. (CVS 5301)

FossilOrigin-Name: e53403b6d742be83c5b130ed6cef4035d081d613

17 years agoAdd new test script for compound select statements. (CVS 5300)
drh [Wed, 25 Jun 2008 02:22:32 +0000 (02:22 +0000)] 
Add new test script for compound select statements. (CVS 5300)

FossilOrigin-Name: a193b1612e7ccd1c8f6136ece8d4768fccfe43fe

17 years agoThe compound-select merge optimization passes quick.test with no errors. (CVS 5299)
drh [Wed, 25 Jun 2008 00:12:41 +0000 (00:12 +0000)] 
The compound-select merge optimization passes quick.test with no errors. (CVS 5299)

FossilOrigin-Name: 8bbfa97837a74ef0514e0c92ea2a6576f02cc361

17 years agoOS/2 fixes for pre-C99 compilers and a return code correction in os2Access(). (CVS...
pweilbacher [Tue, 24 Jun 2008 22:50:06 +0000 (22:50 +0000)] 
OS/2 fixes for pre-C99 compilers and a return code correction in os2Access(). (CVS 5298)

FossilOrigin-Name: 3241a3bdd08f6abf3f1655152e296cc7ebe73bca

17 years agoModify the memory allocation system in mem3.c so to fit in with the new sqlite3_mem_m...
danielk1977 [Tue, 24 Jun 2008 19:02:55 +0000 (19:02 +0000)] 
Modify the memory allocation system in mem3.c so to fit in with the new sqlite3_mem_methods scheme. At this point it only "mostly" works. (CVS 5297)

FossilOrigin-Name: 3febef548fb1c314336fe4bc359d72a4fe84e84e

17 years agoAdd a few extra tests to select9.test. (CVS 5296)
danielk1977 [Tue, 24 Jun 2008 15:39:43 +0000 (15:39 +0000)] 
Add a few extra tests to select9.test. (CVS 5296)

FossilOrigin-Name: 37b084fd7d7ad7f13fc9454fc25ca5aed48d4a31

17 years agoFix a problem in sqlite3ExprIsInteger() causing failures on select1-4.9.2.
drh [Tue, 24 Jun 2008 12:46:30 +0000 (12:46 +0000)] 
Fix a problem in sqlite3ExprIsInteger() causing failures on select1-4.9.2.
Other bug fixes in compound-merge.  The compound-merge is still disabled
in this check-in using "#if 0" due to additional bugs. (CVS 5295)

FossilOrigin-Name: 95037e6dbf4ed0ffd38790f3270dcaa4c1ae64ed

17 years agoRemove a surplus "breakpoint" from select4.test. (CVS 5294)
drh [Tue, 24 Jun 2008 12:28:03 +0000 (12:28 +0000)] 
Remove a surplus "breakpoint" from select4.test. (CVS 5294)

FossilOrigin-Name: 3117238ce9cbfc36e2de929592decef86220e2a2

17 years agoAdd start of new test file "select9.test". To test LIMIT, OFFSET and ORDER BY on...
danielk1977 [Tue, 24 Jun 2008 11:21:20 +0000 (11:21 +0000)] 
Add start of new test file "select9.test". To test LIMIT, OFFSET and ORDER BY on compound SELECT statements. (CVS 5293)

FossilOrigin-Name: 3a13e943d8fb4060fc1f0f827a156a730ee64be0

17 years agoFix a typo in the documentation for the sqlite3_bind_XXX() APIs. (CVS 5292)
danielk1977 [Tue, 24 Jun 2008 09:52:39 +0000 (09:52 +0000)] 
Fix a typo in the documentation for the sqlite3_bind_XXX() APIs. (CVS 5292)

FossilOrigin-Name: 839457f128c91a20aeae7ba570b4840792d41239

17 years agoThe compound-select merge optimization is mostly working with this check-in.
drh [Tue, 24 Jun 2008 00:32:35 +0000 (00:32 +0000)] 
The compound-select merge optimization is mostly working with this check-in.
But there are still a few problems and so the optimization is disabled by
and "#if 0".  This check-in is to synchronize with the other changes happening
in parallel. (CVS 5291)

FossilOrigin-Name: e2ba324cbcac0ba35bbde50048677e085abb092b

17 years agoUpdate OS/2 mutex implementation: make methods static and don't use them by the old...
pweilbacher [Mon, 23 Jun 2008 22:13:27 +0000 (22:13 +0000)] 
Update OS/2 mutex implementation: make methods static and don't use them by the old names any more. Held/Notheld should be debug only. (CVS 5290)

FossilOrigin-Name: d92418ca502f5f58dc968668e11c42955a7b1e52

17 years agoReverted previous checkin (on second thought, changing case could break badly written...
mihailim [Mon, 23 Jun 2008 21:26:05 +0000 (21:26 +0000)] 
Reverted previous checkin (on second thought, changing case could break badly written homegrown parsers such as sometimes encountered in embedded firmware.) (CVS 5289)

FossilOrigin-Name: bf2e283d6fd40cabe55864b06b502524eb8a3b07

17 years agoChanged HTML mode output to use lowercase tags making good on the XHTML output promis...
mihailim [Mon, 23 Jun 2008 21:18:10 +0000 (21:18 +0000)] 
Changed HTML mode output to use lowercase tags making good on the XHTML output promise (the DTDs indeed mandate lowercase) and closing #450. (CVS 5288)

FossilOrigin-Name: e07ed82caf5e4706ef564271830112d31e8cff7c

17 years agoAdded ldconfig invocations for postinstall and postuninstall. Updated package URL...
mihailim [Mon, 23 Jun 2008 20:55:20 +0000 (20:55 +0000)] 
Added ldconfig invocations for postinstall and postuninstall. Updated package URL and description to match the current website. (CVS 5287)

FossilOrigin-Name: 66529ae3a21ea8c57d3f50cdf6e1e8929fd7e437

17 years agoFix a bug in handling queries on the sqlite_master table with an empty (0 bytes in...
danielk1977 [Mon, 23 Jun 2008 18:49:43 +0000 (18:49 +0000)] 
Fix a bug in handling queries on the sqlite_master table with an empty (0 bytes in size) database file. (CVS 5286)

FossilOrigin-Name: f8238770bf41e17014c6de05363b759304fc80de

17 years agoAdditional tests added to capi3.test. (CVS 5285)
drh [Mon, 23 Jun 2008 17:56:47 +0000 (17:56 +0000)] 
Additional tests added to capi3.test. (CVS 5285)

FossilOrigin-Name: 1fdab2c65b966f74bdf130c640ae56a0e811fb71

17 years agoFix a failure to report a failed malloc() within sqlite3_create_module(). (CVS 5284)
danielk1977 [Mon, 23 Jun 2008 17:44:18 +0000 (17:44 +0000)] 
Fix a failure to report a failed malloc() within sqlite3_create_module(). (CVS 5284)

FossilOrigin-Name: 3ca7dab88e030cc945e0d358d7f53ddca35bc221

17 years agoFix a bug causing the pager-cache size to be reset to its default value whenever...
danielk1977 [Mon, 23 Jun 2008 16:53:46 +0000 (16:53 +0000)] 
Fix a bug causing the pager-cache size to be reset to its default value whenever the database schema was reloaded. (CVS 5283)

FossilOrigin-Name: 6dbe67da5cb0141e011b4fdcc3964a20f68be843

17 years agoRun (a subset of) the rtree tests from quick.test. (CVS 5282)
danielk1977 [Mon, 23 Jun 2008 15:55:52 +0000 (15:55 +0000)] 
Run (a subset of) the rtree tests from quick.test. (CVS 5282)

FossilOrigin-Name: e872c78c72eb5976e72123485692a76409bd857f

17 years agoHandle a real system malloc() failure in mem1.c. (CVS 5281)
danielk1977 [Mon, 23 Jun 2008 15:10:24 +0000 (15:10 +0000)] 
Handle a real system malloc() failure in mem1.c. (CVS 5281)

FossilOrigin-Name: 006fd69bf56f05448fd9aa82d3b1cdcc175369ad

17 years agoRemove a non-ansi construct from mem1.c - an assert() statement before the variable...
danielk1977 [Mon, 23 Jun 2008 14:40:18 +0000 (14:40 +0000)] 
Remove a non-ansi construct from mem1.c - an assert() statement before the variable declarations in a function. (CVS 5280)

FossilOrigin-Name: 1de98da6b4c2039e5dc594cc9bfc7d49ae36697c

17 years agoAvoid passing "void(*)(void)" as an argument to va_arg(). Codewarrior doesn't like...
danielk1977 [Mon, 23 Jun 2008 14:15:52 +0000 (14:15 +0000)] 
Avoid passing "void(*)(void)" as an argument to va_arg(). Codewarrior doesn't like it. (CVS 5279)

FossilOrigin-Name: edae76d6ff5918007c0a802a34e65412f8f0ebb6

17 years agoFix some codewarrior compilation problems. (CVS 5278)
danielk1977 [Mon, 23 Jun 2008 14:03:45 +0000 (14:03 +0000)] 
Fix some codewarrior compilation problems. (CVS 5278)

FossilOrigin-Name: e6ea8f87c102bd36ab0f2fbc8360fde49f4e3422

17 years agoFix a compilation problem with SQLITE_OMIT_VIRTUAL_TABLE is defined. (CVS 5277)
danielk1977 [Mon, 23 Jun 2008 13:57:21 +0000 (13:57 +0000)] 
Fix a compilation problem with SQLITE_OMIT_VIRTUAL_TABLE is defined. (CVS 5277)

FossilOrigin-Name: 0421c09967a191fb62338eb8b1bd766be42f61cc

17 years agoFixed wrong type in sqlite3_create_collation16 declaration and definition (UTF-16...
mihailim [Mon, 23 Jun 2008 11:23:14 +0000 (11:23 +0000)] 
Fixed wrong type in sqlite3_create_collation16 declaration and definition (UTF-16 string had been passed as const char* instead of const void*) (CVS 5276)

FossilOrigin-Name: 4215e3e5ae3376bd46e5e12eec14b8209c164830

17 years agoCorrect comments above sqlite3_release_memory() and sqlite3_soft_heap_limit(). Ticket...
danielk1977 [Mon, 23 Jun 2008 11:11:35 +0000 (11:11 +0000)] 
Correct comments above sqlite3_release_memory() and sqlite3_soft_heap_limit(). Ticket #3138. (CVS 5275)

FossilOrigin-Name: 3240446853a11f5a1e379d4841d0268873aad64d

17 years agoFix a bug whereby opening a connection to an existing shared-cache caused the cache...
danielk1977 [Mon, 23 Jun 2008 09:50:50 +0000 (09:50 +0000)] 
Fix a bug whereby opening a connection to an existing shared-cache caused the cache-size (the value configured by "PRAGMA cache_size") to revert to its default value. (CVS 5274)

FossilOrigin-Name: 0492aa8ed3c35dd2cdfc69c9cb87e43ef0460826

17 years agoRemoved INVARIANTS sections in the experimental extension loading API that I should...
mihailim [Sun, 22 Jun 2008 16:35:48 +0000 (16:35 +0000)] 
Removed INVARIANTS sections in the experimental extension loading API that I should not have added in the first place. No changes to code. (CVS 5273)

FossilOrigin-Name: e7610890b4df78af5bb8f3e8f8d05ef5cf36e186

17 years agoFix a bug in the KEYINFO handling within select.c. Change the OP_Move
drh [Sun, 22 Jun 2008 12:37:57 +0000 (12:37 +0000)] 
Fix a bug in the KEYINFO handling within select.c.  Change the OP_Move
opcode to take a count and to move multiple registers.  Initial code for
the compound-select merge optimization is added but is incomplete
and is commented out. (CVS 5272)

FossilOrigin-Name: 663a590e3086145a57af7569d8f798b6b6a8b76c

17 years agoReadded erroneously deleted {END} tag and doublechecked {(F,U,X)*}-{END} tag balancin...
mihailim [Sun, 22 Jun 2008 10:21:27 +0000 (10:21 +0000)] 
Readded erroneously deleted {END} tag and doublechecked {(F,U,X)*}-{END} tag balancing. Minor documentation cleanup. No changes to code. (CVS 5271)

FossilOrigin-Name: b55590501b5b5ada4e22d790e1a36b532de7deb7

17 years agoMore documentation spellcheck and cleanup. No changes to code. (CVS 5270)
mihailim [Sun, 22 Jun 2008 09:55:14 +0000 (09:55 +0000)] 
More documentation spellcheck and cleanup. No changes to code. (CVS 5270)

FossilOrigin-Name: 3a88e3ded9c54c319b6c5b6c3d521752cb6dac6d

17 years agoMore documentation spellcheck and cleanup. No changes to code. (CVS 5269)
mihailim [Sun, 22 Jun 2008 08:58:50 +0000 (08:58 +0000)] 
More documentation spellcheck and cleanup. No changes to code. (CVS 5269)

FossilOrigin-Name: d96b9bcd10c3fe27a449e6ad3ab77c2187a06578

17 years agoMore documentation spellcheck and cleanup. No changes to code. (CVS 5268)
mihailim [Sat, 21 Jun 2008 20:11:17 +0000 (20:11 +0000)] 
More documentation spellcheck and cleanup. No changes to code. (CVS 5268)

FossilOrigin-Name: 65edead166aafa8ca18b3aaa9eda89816239066a

17 years agoPrevent veryquick.test and all.test from running permutations.test directly. (CVS...
danielk1977 [Sat, 21 Jun 2008 19:20:13 +0000 (19:20 +0000)] 
Prevent veryquick.test and all.test from running permutations.test directly. (CVS 5267)

FossilOrigin-Name: ae9e4c0e4d5639ff11f3fa23775a1118b39688c8

17 years agoFix a bug in permutations.test causing the utf-16 tests to fail. (CVS 5266)
danielk1977 [Sat, 21 Jun 2008 19:10:27 +0000 (19:10 +0000)] 
Fix a bug in permutations.test causing the utf-16 tests to fail. (CVS 5266)

FossilOrigin-Name: 710621f373398748f31942f2ac9d1c857492538a

17 years agoAdd test file permutations.test, which runs various other test files with sqlite...
danielk1977 [Sat, 21 Jun 2008 18:07:37 +0000 (18:07 +0000)] 
Add test file permutations.test, which runs various other test files with sqlite configured in various ways. This adds a few new tests and replaces test files autovacuum_crash.test, autovacuum_ioerr.test, exclusive3.test, jrnlmode2.test, jrnlmode3.test, jrnlmode4.test, mutex2 and onefile.test. (CVS 5265)

FossilOrigin-Name: 0e9df3507bd30d320b7ccfeaf3e06e10938022e1

17 years agoMore documentation spellcheck and cleanup. No changes to code. (CVS 5264)
mihailim [Sat, 21 Jun 2008 18:02:16 +0000 (18:02 +0000)] 
More documentation spellcheck and cleanup. No changes to code. (CVS 5264)

FossilOrigin-Name: 9ae03f5629fb47006ae2d8108dfab3956833d943

17 years agoMore documentation spellcheck and cleanup. No changes to code. (CVS 5263)
mihailim [Sat, 21 Jun 2008 16:47:09 +0000 (16:47 +0000)] 
More documentation spellcheck and cleanup. No changes to code. (CVS 5263)

FossilOrigin-Name: 3edfc64f27ba50ba43b79435b3f5d273e3c29aff

17 years agoMore documentation spellcheck and cleanup. No changes to code. (CVS 5262)
mihailim [Sat, 21 Jun 2008 13:35:56 +0000 (13:35 +0000)] 
More documentation spellcheck and cleanup. No changes to code. (CVS 5262)

FossilOrigin-Name: 47b7b05e55d35450a14250a00468dfbcf4bf49bb

17 years agoRemove mutex2.test. It will be replaced later today by permutations.test. (CVS 5261)
danielk1977 [Sat, 21 Jun 2008 12:15:04 +0000 (12:15 +0000)] 
Remove mutex2.test. It will be replaced later today by permutations.test. (CVS 5261)

FossilOrigin-Name: 98a6a0a30f16cbc60c655663b5895429a34da0ba

17 years agoMore documentation spellcheck and cleanup. No changes to code. (CVS 5260)
mihailim [Sat, 21 Jun 2008 11:20:48 +0000 (11:20 +0000)] 
More documentation spellcheck and cleanup. No changes to code. (CVS 5260)

FossilOrigin-Name: 8c457fb08b93aa1aa9f62d0ec31755d74416e16b

17 years agoFix a problem in the test suite that could cause a crash if using a pre-allocated...
danielk1977 [Sat, 21 Jun 2008 08:12:15 +0000 (08:12 +0000)] 
Fix a problem in the test suite that could cause a crash if using a pre-allocated block of memory for pages (the problem was that sqlite3_shutdown() was being called while there were still open database connections). (CVS 5259)

FossilOrigin-Name: 3d413e9b466a871650597407016131df4d07b3d2

17 years agoDocumentation spellcheck and cleanup. No changes to code. (CVS 5258)
mihailim [Sat, 21 Jun 2008 06:16:42 +0000 (06:16 +0000)] 
Documentation spellcheck and cleanup. No changes to code. (CVS 5258)

FossilOrigin-Name: 2904d26ba43b0ded5b43f696ba2d8cd19d4244de

17 years agoAdd new Compare and Jump codes to the virtual machine. Use them in the
drh [Fri, 20 Jun 2008 18:13:25 +0000 (18:13 +0000)] 
Add new Compare and Jump codes to the virtual machine.  Use them in the
implementation of aggregate queries. (CVS 5257)

FossilOrigin-Name: 083113652ff8f69b18cf1611710fdbbe5fbd9fef

17 years agoAdd a test to check that opening a second connection to a shared cache does not reset...
danielk1977 [Fri, 20 Jun 2008 17:51:16 +0000 (17:51 +0000)] 
Add a test to check that opening a second connection to a shared cache does not reset the cache size to its default value. (CVS 5256)

FossilOrigin-Name: 3546e245aaf5d75b9f52ffb3268da9bc26946396

17 years agoChange the SRT_Subroutine mode into SRT_Coroutine. Use co-routines in
drh [Fri, 20 Jun 2008 15:24:01 +0000 (15:24 +0000)] 
Change the SRT_Subroutine mode into SRT_Coroutine.  Use co-routines in
the INSERT processing logic. (CVS 5255)

FossilOrigin-Name: 6b9d92fc3f265ef75c9182e537812490bb818950

17 years agoAdd a mode to the sqlite3_test_control() interface to register hooks called at the...
danielk1977 [Fri, 20 Jun 2008 14:59:51 +0000 (14:59 +0000)] 
Add a mode to the sqlite3_test_control() interface to register hooks called at the beginning and end of "benign malloc failure" blocks. This allows malloc() failure testing to be done using public APIs only. (CVS 5254)

FossilOrigin-Name: 56c8af1452dfdc8da858a2411bd6f3663a8a9326

17 years agoMove (almost all) malloc failure test logic from fault.c to test_malloc.c. (CVS 5253)
danielk1977 [Fri, 20 Jun 2008 11:05:37 +0000 (11:05 +0000)] 
Move (almost all) malloc failure test logic from fault.c to test_malloc.c. (CVS 5253)

FossilOrigin-Name: 4ae21e3419ad7e69dd735ca45fdc5a2de93d1840

17 years agoPatch to memsubsys1.test in order to avoid a segfault in tableapi.test. (CVS 5252)
drh [Fri, 20 Jun 2008 00:03:21 +0000 (00:03 +0000)] 
Patch to memsubsys1.test in order to avoid a segfault in tableapi.test. (CVS 5252)

FossilOrigin-Name: 62411a6e605ec50d8d61233d753cd2ad65c2218d

17 years agoUnset global TCL variables in the func.test script prior to use to avoid
drh [Thu, 19 Jun 2008 18:39:11 +0000 (18:39 +0000)] 
Unset global TCL variables in the func.test script prior to use to avoid
conflicts from other scripts. (CVS 5251)

FossilOrigin-Name: 9b04e10f6c00c36652444206d1d8868a560eb56e

17 years agoMove the malloc() failure simulation out of malloc.c and into a separate sqlite3_mem_...
danielk1977 [Thu, 19 Jun 2008 18:17:49 +0000 (18:17 +0000)] 
Move the malloc() failure simulation out of malloc.c and into a separate sqlite3_mem_methods interface. Still some related changes to come. (CVS 5250)

FossilOrigin-Name: d22cd2a59f472f4eaf80aa9f55fbff2514ca428d

17 years agoDocumentation and test-script updates. (CVS 5249)
drh [Thu, 19 Jun 2008 17:54:33 +0000 (17:54 +0000)] 
Documentation and test-script updates. (CVS 5249)

FossilOrigin-Name: 68d4f7954108f5bf586c4706c8664d8333fb2230

17 years agoFix some minor compile problems. (CVS 5248)
drh [Thu, 19 Jun 2008 16:07:07 +0000 (16:07 +0000)] 
Fix some minor compile problems. (CVS 5248)

FossilOrigin-Name: 7d38da3eea9ce93f32e90fce0af5101e2cf12462

17 years agoAdditional test cases for loadable extensions. (CVS 5247)
drh [Thu, 19 Jun 2008 15:44:00 +0000 (15:44 +0000)] 
Additional test cases for loadable extensions. (CVS 5247)

FossilOrigin-Name: 9d73a68c305db673d393db118b6a41241683a670

17 years agoAdd recent API additions to the loadable extension interface. (CVS 5246)
drh [Thu, 19 Jun 2008 15:06:24 +0000 (15:06 +0000)] 
Add recent API additions to the loadable extension interface. (CVS 5246)

FossilOrigin-Name: 12ba27d94e3fb448f88b5efb43b35242fd893297

17 years agoCheck in the missing status.c source file. (CVS 5245)
drh [Thu, 19 Jun 2008 13:20:01 +0000 (13:20 +0000)] 
Check in the missing status.c source file. (CVS 5245)

FossilOrigin-Name: 298113d4a707ecf59d5dfd8bca45bfe734fb9fbb

17 years agoShuffle some of the mutex related documentation in sqlite.h.in to match the new sqlit...
danielk1977 [Thu, 19 Jun 2008 08:51:23 +0000 (08:51 +0000)] 
Shuffle some of the mutex related documentation in sqlite.h.in to match the new sqlite3_mutex_methods based API. (CVS 5244)

FossilOrigin-Name: 9cd7f8669a59c6096331229df2e2ad87e628abab

17 years agoAdd the sqlite3_next_stmt() interface, including test cases. (CVS 5243)
drh [Thu, 19 Jun 2008 02:52:25 +0000 (02:52 +0000)] 
Add the sqlite3_next_stmt() interface, including test cases. (CVS 5243)

FossilOrigin-Name: 565a530896b40790287eeaad709edd51980fbddf

17 years agoFix a bug in the noop-mutex implementation. (CVS 5242)
drh [Thu, 19 Jun 2008 01:50:09 +0000 (01:50 +0000)] 
Fix a bug in the noop-mutex implementation. (CVS 5242)

FossilOrigin-Name: eec9a54dc3554a00ea69fc8e26d205f30a3bcabd

17 years agoBug fixes: Plug a memory leak introduced by the previous check-in. Get
drh [Thu, 19 Jun 2008 01:03:17 +0000 (01:03 +0000)] 
Bug fixes:  Plug a memory leak introduced by the previous check-in.  Get
the amalgamation to the point where it will compile. (CVS 5241)

FossilOrigin-Name: 005f8eaef5ae05cef5c76f3afe299eaa2cf8af2f

17 years agoAdd some test logic to the new memory allocation subsystem. (Lots more needed.)
drh [Thu, 19 Jun 2008 00:16:08 +0000 (00:16 +0000)] 
Add some test logic to the new memory allocation subsystem.  (Lots more needed.)
The test suite is currently indicating memory leaks, though it is unclear if
this is a true code problem or just an instrumentation problem. (CVS 5240)

FossilOrigin-Name: cb1f11cd9764cf0275e88e1f6342e366e5536bfd

17 years agofix OS/2 files to compile again (looking at Windows equivalents for guidance) (CVS...
pweilbacher [Wed, 18 Jun 2008 21:08:16 +0000 (21:08 +0000)] 
fix OS/2 files to compile again (looking at Windows equivalents for guidance) (CVS 5239)

FossilOrigin-Name: 8b14a220f261b354e7d2d16dc3fe30c5d3d34143

17 years agoRemove public APIs sqlite3_mutex_init() and sqlite3_mutex_end(). This commit only...
danielk1977 [Wed, 18 Jun 2008 18:57:42 +0000 (18:57 +0000)] 
Remove public APIs sqlite3_mutex_init() and sqlite3_mutex_end(). This commit only changes the code, documentation is not updated yet. (CVS 5238)

FossilOrigin-Name: 42a2a8f49324e2e07b81fd08e24f636a2d98a961

17 years agoAdded support for scratch-memory lookaside allocations. Largely untested.
drh [Wed, 18 Jun 2008 18:12:04 +0000 (18:12 +0000)] 
Added support for scratch-memory lookaside allocations.  Largely untested.
Added calls to sqlite3_initialize() within malloc APIs. (CVS 5237)

FossilOrigin-Name: 383a78601c70cd832c171344857038e345b9ae5c

17 years agoAdd a call to sqlite3_initialize() to sqlite3_mutex_alloc() (CVS 5236)
danielk1977 [Wed, 18 Jun 2008 18:08:39 +0000 (18:08 +0000)] 
Add a call to sqlite3_initialize() to sqlite3_mutex_alloc() (CVS 5236)

FossilOrigin-Name: 8b23b719440aca9fca7e8f409729c3318ff3f80c

17 years agoFix a test case in mutex1.test that was failing when sqlite was compiled with SQLITE_...
danielk1977 [Wed, 18 Jun 2008 17:59:03 +0000 (17:59 +0000)] 
Fix a test case in mutex1.test that was failing when sqlite was compiled with SQLITE_THREADSAFE=0. (CVS 5235)

FossilOrigin-Name: d1a87c3bcc9a32918f1cf743f85cd1a71557220e

17 years agoImplement the 'CONFIG_SINGLETHREAD' and 'CONFIG_MULTITHREAD' configuration modes...
danielk1977 [Wed, 18 Jun 2008 17:09:10 +0000 (17:09 +0000)] 
Implement the 'CONFIG_SINGLETHREAD' and 'CONFIG_MULTITHREAD' configuration modes. (CVS 5234)

FossilOrigin-Name: 5059644c4bc5f6679afd939e0bc26080f42a9918

17 years agoMake sure aggregate functions can take any number of arguments up to the
drh [Wed, 18 Jun 2008 15:34:09 +0000 (15:34 +0000)] 
Make sure aggregate functions can take any number of arguments up to the
limit imposed by SQLITE_LIMIT_FUNCTION_ARGS.  Ticket #3179.  Modify
the group_concat() function to take an unlimited number of arguments in
order to facilitate testing this behavior. (CVS 5233)

FossilOrigin-Name: 70c6739f4e84b3433e14960346b54d0e9e0bb9c6

17 years agoAdd documentation on the sqlite3_mutex_methods object. (CVS 5232)
drh [Wed, 18 Jun 2008 13:47:03 +0000 (13:47 +0000)] 
Add documentation on the sqlite3_mutex_methods object. (CVS 5232)

FossilOrigin-Name: c3c7bfc9db6774824be14a1394e1842716dce8ec

17 years agoAdded new configuration options to query the low-level malloc interface
drh [Wed, 18 Jun 2008 13:27:46 +0000 (13:27 +0000)] 
Added new configuration options to query the low-level malloc interface
and to provide memory buffers for scratch, page-cache, and heap memory
allocators. (CVS 5231)

FossilOrigin-Name: e36201a352f832c97c5c0fcb872c1f094cac03d2

17 years agoAdd some test infrastructure and cases for the new mutex api. (CVS 5230)
danielk1977 [Wed, 18 Jun 2008 09:45:56 +0000 (09:45 +0000)] 
Add some test infrastructure and cases for the new mutex api. (CVS 5230)

FossilOrigin-Name: 262baee9952b28afe5dc77eb7365ebb11a480906

17 years agoRemove mem3.c and mem5.c from the amalgamation for the time being, since
drh [Wed, 18 Jun 2008 02:01:07 +0000 (02:01 +0000)] 
Remove mem3.c and mem5.c from the amalgamation for the time being, since
they do not currently work.  We will add them back later once they are fixed. (CVS 5229)

FossilOrigin-Name: 39b4e1ff4e3db3278c35eff10bbabdf4d87793a4

17 years agoAdd the SQLITE_CONFIG_MUTEX symbol for use with sqlite3_config(). (CVS 5228)
danielk1977 [Tue, 17 Jun 2008 18:57:49 +0000 (18:57 +0000)] 
Add the SQLITE_CONFIG_MUTEX symbol for use with sqlite3_config(). (CVS 5228)

FossilOrigin-Name: af1835bb5f5e3fb78d782c7c287e20db169e883f

17 years agoChange the mutex interface to be pluggable. This is an incremental checkin, there...
danielk1977 [Tue, 17 Jun 2008 17:21:18 +0000 (17:21 +0000)] 
Change the mutex interface to be pluggable. This is an incremental checkin, there are still changes to come. (CVS 5227)

FossilOrigin-Name: 597283637bcdc2398bf249b2bbc6ded47ad2de22

17 years agoAdd internal interfaces: PageMalloc/PageFree and ScratchMalloc/ScratchFree. (CVS...
drh [Tue, 17 Jun 2008 15:12:00 +0000 (15:12 +0000)] 
Add internal interfaces:  PageMalloc/PageFree and ScratchMalloc/ScratchFree. (CVS 5226)

FossilOrigin-Name: 3e797d0ffe1af6f7512b3fb7b387418ac05671e0

17 years agoDo not allow a VACUUM to try to change the page_size on an encrypted database. (CVS...
drh [Tue, 17 Jun 2008 01:03:25 +0000 (01:03 +0000)] 
Do not allow a VACUUM to try to change the page_size on an encrypted database. (CVS 5225)

FossilOrigin-Name: d49e5020019093a5b8a4fbe09caeb84ecb538629

17 years agoClean up obfuscated code in sqlite3_table_column_meta_data().
drh [Mon, 16 Jun 2008 20:51:15 +0000 (20:51 +0000)] 
Clean up obfuscated code in sqlite3_table_column_meta_data().
Be sure to invoke sqlite3_initialize() within sqlite3_mprintf(). (CVS 5224)

FossilOrigin-Name: bb4edb53964559fc1cd69700beb72ecc29b58f37

17 years agoFix a recently introduced resource leak in test file incrblob2.test (forgot to close...
danielk1977 [Mon, 16 Jun 2008 14:36:01 +0000 (14:36 +0000)] 
Fix a recently introduced resource leak in test file incrblob2.test (forgot to close a blob handle). (CVS 5223)

FossilOrigin-Name: 88e1c6092e48c860950d3437f264785243bb67ed

17 years agoFix a problem with the incremental blob API. sqlite3_blob_open() was always reading...
danielk1977 [Mon, 16 Jun 2008 14:19:57 +0000 (14:19 +0000)] 
Fix a problem with the incremental blob API. sqlite3_blob_open() was always reading the data for the leftmost column of the row that the opened blob was stored in. If this column happened to contain a (the) large blob, sqlite would make a large memory allocation to read the data into. Which defeats the purpose of using incremental blobs. (CVS 5222)

FossilOrigin-Name: 1b9478da2f421c1270e76297324fff8037d2f231

17 years agoAdd a test to verify that IN(...) WHERE clause terms are not handled by virtual table...
danielk1977 [Mon, 16 Jun 2008 06:31:34 +0000 (06:31 +0000)] 
Add a test to verify that IN(...) WHERE clause terms are not handled by virtual table implemetations. (CVS 5221)

FossilOrigin-Name: 85483c8fb3b45281ce07e84349841fc80e560b1f

17 years agoContinuing work on the new memory allocation subsystem.
drh [Sun, 15 Jun 2008 02:51:47 +0000 (02:51 +0000)] 
Continuing work on the new memory allocation subsystem.
Added routines for temporary memory allocation.  Right the btree
balance mechanism to only do one temporary allocation at a time. (CVS 5220)

FossilOrigin-Name: 65fe7b62cfe7d11cd667681a64c96fe7b2fe5685

17 years agoContinuing progress on the new memory allocation subsystem. Added the
drh [Sat, 14 Jun 2008 16:56:21 +0000 (16:56 +0000)] 
Continuing progress on the new memory allocation subsystem.  Added the
sqlite3_mem_methods structure for defining new memory allocators at
run-time. (CVS 5219)

FossilOrigin-Name: f00305f4cd2f487f660f34a21c1c24a0b37c7275

17 years agoProgress toward implementation of sqlite3_config() and a rework of the
drh [Fri, 13 Jun 2008 18:24:27 +0000 (18:24 +0000)] 
Progress toward implementation of sqlite3_config() and a rework of the
mutex and memory allocation subsystems.  This is an incremental check-in. (CVS 5218)

FossilOrigin-Name: a03c5af115889f477e17187a198a7d2d40bc76bf

17 years agoEnhance zeroblob tests to use the sqlite3_memory_highwater in order to
drh [Thu, 12 Jun 2008 18:17:40 +0000 (18:17 +0000)] 
Enhance zeroblob tests to use the sqlite3_memory_highwater in order to
double-check that no large allocations are occurring. (CVS 5217)

FossilOrigin-Name: e93079be83a9df7328d9b910fcbdb762be7ec815

17 years agoFix a typo in the date/time function tests. Add additional cases to
drh [Thu, 12 Jun 2008 18:05:40 +0000 (18:05 +0000)] 
Fix a typo in the date/time function tests.  Add additional cases to
the zeroblob tests to make sure sqlite3_bind_zeroblob() does not use
excess memory. (CVS 5216)

FossilOrigin-Name: c1006fb1c817bc0b7fada873edb772abbf972012

17 years agoConvert the date/time functions to work with milliseconds since the
drh [Thu, 12 Jun 2008 16:35:38 +0000 (16:35 +0000)] 
Convert the date/time functions to work with milliseconds since the
julian epoch internally (instead of days since the epoch) in order to avoid
problems with floating-point roundoff error.  The interface is unchanged. (CVS 5215)

FossilOrigin-Name: ed35f8a98323dadb64b423615287fb24ea262ffb

17 years agoAdd another test to incrblob2.test. This test failed to reveal any new bugs. (CVS...
danielk1977 [Thu, 12 Jun 2008 14:42:06 +0000 (14:42 +0000)] 
Add another test to incrblob2.test. This test failed to reveal any new bugs. (CVS 5214)

FossilOrigin-Name: 20d8ea45afcddf22632c3de984147826d0616d3f

17 years agoAvoid unnecessary float->text->float conversions in date/time processing.
drh [Thu, 12 Jun 2008 13:50:00 +0000 (13:50 +0000)] 
Avoid unnecessary float->text->float conversions in date/time processing.
This change necessary to reproduce the problem reported by BareFoot. (CVS 5213)

FossilOrigin-Name: 6ec4d7653b1e67ba0951e909ee23fe774762d646

17 years agoAdd the ability to disable the "localtime" modifier in the date/time
drh [Thu, 12 Jun 2008 12:51:37 +0000 (12:51 +0000)] 
Add the ability to disable the "localtime" modifier in the date/time
functions.  This might be necessary for systems that do not support
localtime_r() or localtime_s(). (CVS 5212)

FossilOrigin-Name: 12f3ba11e72b2310abf51d040d5344c81fe5ebd3

17 years agoRemove obsolete code from the test_osinst.c module. (CVS 5211)
drh [Thu, 12 Jun 2008 12:40:13 +0000 (12:40 +0000)] 
Remove obsolete code from the test_osinst.c module. (CVS 5211)

FossilOrigin-Name: 699cec66cdae6818844612d69eb89aa8b93c3f1a