]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
18 years agoRemove nRef and vfsMutex from the sqlite3_vfs structure. Omit the
drh [Fri, 24 Aug 2007 16:08:29 +0000 (16:08 +0000)] 
Remove nRef and vfsMutex from the sqlite3_vfs structure.  Omit the
sqlite3_vfs_release() interface.  Less memory allocated for a pager
in the common case where the size of the pathname is less than MAX_PATH. (CVS 4287)

FossilOrigin-Name: b8451da378179d43f25d9a014480c0f13dd1dc37

18 years agoSelect the default page size for new databases based on the sector-size and IOCAP...
danielk1977 [Fri, 24 Aug 2007 11:52:28 +0000 (11:52 +0000)] 
Select the default page size for new databases based on the sector-size and IOCAP flags. (CVS 4286)

FossilOrigin-Name: 13dda2e8e879835c21e539ba3ff8f96face1af4c

18 years agoRemove unnecessary sqlite3MallocDisallow() that was preventing win32 from
drh [Fri, 24 Aug 2007 11:43:36 +0000 (11:43 +0000)] 
Remove unnecessary sqlite3MallocDisallow() that was preventing win32 from
running. (CVS 4285)

FossilOrigin-Name: eb6c98fc1097b327453d7e8ec8877101ea8187c3

18 years agoAdd tests to simulate power-failure on devices that support IOCAP_SEQUENTIAL or IOCAP...
danielk1977 [Fri, 24 Aug 2007 08:15:53 +0000 (08:15 +0000)] 
Add tests to simulate power-failure on devices that support IOCAP_SEQUENTIAL or IOCAP_SAFE_APPEND. (CVS 4284)

FossilOrigin-Name: bdf5cb8d25d93d48220ce46acad2ccf967a87843

18 years agoBug fix in the memory leak trace output. (CVS 4283)
drh [Fri, 24 Aug 2007 04:15:00 +0000 (04:15 +0000)] 
Bug fix in the memory leak trace output. (CVS 4283)

FossilOrigin-Name: a1b495c28a092c7eb79ffeeb6a217749acb4c12c

18 years agoThe win32 driver compiles but does not yet work well. Many bugs
drh [Fri, 24 Aug 2007 03:51:33 +0000 (03:51 +0000)] 
The win32 driver compiles but does not yet work well.  Many bugs
fixed. (CVS 4282)

FossilOrigin-Name: 3a68fcddfa9184e4b310ce0a21312c54b9462ec8

18 years agoMake comments and variable naming more consistent WRT rowid versus
shess [Thu, 23 Aug 2007 20:28:49 +0000 (20:28 +0000)] 
Make comments and variable naming more consistent WRT rowid versus
docid/blockid.  This should have no code impact. (CVS 4281)

FossilOrigin-Name: 76f1e18ebc25d692f122784e87d202992c4cfed2

18 years agoFix fts3 to not have the VACUUM bug from fts2. %_content.docid is an
shess [Thu, 23 Aug 2007 20:23:37 +0000 (20:23 +0000)] 
Fix fts3 to not have the VACUUM bug from fts2.  %_content.docid is an
alias to fix the rowid for documents, %_segments.blockid is an alias
to fix the rowid for segment blocks.  Unit test for the problem. (CVS 4280)

FossilOrigin-Name: 6eb2d74a8cfce322930f05c97d4ec255f3711efb

18 years agoAdd some warm-body tests for rollback journal i/o enhancements. (CVS 4279)
danielk1977 [Thu, 23 Aug 2007 16:27:21 +0000 (16:27 +0000)] 
Add some warm-body tests for rollback journal i/o enhancements. (CVS 4279)

FossilOrigin-Name: ff3770f855c1dd75025b1f2496f8c75e9f17ee44

18 years agoAdd code to reduce rollback journal i/o based on IOCAP flags. As yet untested. (CVS...
danielk1977 [Thu, 23 Aug 2007 14:48:23 +0000 (14:48 +0000)] 
Add code to reduce rollback journal i/o based on IOCAP flags. As yet untested. (CVS 4278)

FossilOrigin-Name: 595568492e63822caed5b6970542dcee4615dc4d

18 years agoEnsure temporary files are deleted when they are closed. (CVS 4277)
danielk1977 [Thu, 23 Aug 2007 11:47:59 +0000 (11:47 +0000)] 
Ensure temporary files are deleted when they are closed. (CVS 4277)

FossilOrigin-Name: cf4e3c158aa71afc91f263a314c2e750d191fb41

18 years agoAdd some further tests and a bugfix for the atomic-write optimization. (CVS 4276)
danielk1977 [Thu, 23 Aug 2007 11:07:10 +0000 (11:07 +0000)] 
Add some further tests and a bugfix for the atomic-write optimization. (CVS 4276)

FossilOrigin-Name: 5f0fb894f44069c4aa9b8dba62b4d8a262c991de

18 years agoAdd some tests for the atomic-write optimization. (CVS 4275)
danielk1977 [Thu, 23 Aug 2007 08:06:44 +0000 (08:06 +0000)] 
Add some tests for the atomic-write optimization. (CVS 4275)

FossilOrigin-Name: e2cc7b4a3476a733b2701546f6b4ec9abc18152b

18 years agoChange names of constants in lemon.c to work around name conflicts
drh [Thu, 23 Aug 2007 02:50:56 +0000 (02:50 +0000)] 
Change names of constants in lemon.c to work around name conflicts
on Solaris.  Ticket #2583. (CVS 4274)

FossilOrigin-Name: e4e74cd0f9343448ea38e57f08bb4f0616825f31

18 years agoImprovements to memory leak detection. The --backtrace=NNN option is now
drh [Thu, 23 Aug 2007 02:47:53 +0000 (02:47 +0000)] 
Improvements to memory leak detection.  The --backtrace=NNN option is now
recognized by tester.tcl.  Memory leak summaries are automatically written
to the file ./memleak.txt and each leak is tagged with the test in which
it occurred.  The quick.test script runs on Linux with no errors and
no leaks. (CVS 4273)

FossilOrigin-Name: 21f6b31097692171c6493e6ca6de6acbd62dc595

18 years agoAll of the malloc test cases run. Still seeing failures in malloc4.test. (CVS 4272)
drh [Wed, 22 Aug 2007 22:04:37 +0000 (22:04 +0000)] 
All of the malloc test cases run.  Still seeing failures in malloc4.test. (CVS 4272)

FossilOrigin-Name: 205d0b881d541db65837ce6cf44d58d607635bc2

18 years agoThe malloc.test script now passes all tests with no errors. (CVS 4271)
drh [Wed, 22 Aug 2007 20:18:21 +0000 (20:18 +0000)] 
The malloc.test script now passes all tests with no errors. (CVS 4271)

FossilOrigin-Name: db818430e9ea4ef4a4af575784009d5acae785a3

18 years agoFix a bug in the logic for journaling pages when the device sector-size is greater...
danielk1977 [Wed, 22 Aug 2007 18:54:32 +0000 (18:54 +0000)] 
Fix a bug in the logic for journaling pages when the device sector-size is greater than the page size. (CVS 4270)

FossilOrigin-Name: b6399dff1370449912391cc5925bdc468b5dade0

18 years agoGet the quick.test script running with SQLITE_THREADSAFE enabled. (CVS 4269)
drh [Wed, 22 Aug 2007 11:41:18 +0000 (11:41 +0000)] 
Get the quick.test script running with SQLITE_THREADSAFE enabled. (CVS 4269)

FossilOrigin-Name: 1f28b7e47bba221c14a10a37e7425c9975bb2312

18 years agoAdd code for the atomic-write optimisation. Disabled by default. (CVS 4268)
danielk1977 [Wed, 22 Aug 2007 11:22:03 +0000 (11:22 +0000)] 
Add code for the atomic-write optimisation. Disabled by default. (CVS 4268)

FossilOrigin-Name: 581fadfe31757e3fb97b12f93c1e3c085e4b6009

18 years agoRemove a debugging btree_breakpoint from vtab1.test. (CVS 4267)
drh [Wed, 22 Aug 2007 02:57:16 +0000 (02:57 +0000)] 
Remove a debugging btree_breakpoint from vtab1.test. (CVS 4267)

FossilOrigin-Name: 6cc8641ed2fbfc32d418ce153f2819052f230be2

18 years agoA complete run of quick.test with mutex debugging enabled. (CVS 4266)
drh [Wed, 22 Aug 2007 02:56:42 +0000 (02:56 +0000)] 
A complete run of quick.test with mutex debugging enabled. (CVS 4266)

FossilOrigin-Name: 783e07d561d1f5509de9475f3b9f38315f247002

18 years agoReenable the memory management logic. The quick.test script now runs with
drh [Wed, 22 Aug 2007 00:39:19 +0000 (00:39 +0000)] 
Reenable the memory management logic.  The quick.test script now runs with
SQLITE_MEMDEBUG and SQLITE_ENABLE_MEMORY_MANAGEMENT. 7 minor errors. (CVS 4265)

FossilOrigin-Name: 1914044b8832041f13b20ead613bd13725425d7a

18 years agoAll mutexing and locking appears to be in place. Now we just have to
drh [Tue, 21 Aug 2007 20:25:39 +0000 (20:25 +0000)] 
All mutexing and locking appears to be in place.  Now we just have to
test it and make it all work. (CVS 4264)

FossilOrigin-Name: 0f7941aef976aa4f3be3e0046edd1ae042e5d9a3

18 years agoThe sqlite3_value object now carries an sqlite3* pointer to use for
drh [Tue, 21 Aug 2007 19:33:56 +0000 (19:33 +0000)] 
The sqlite3_value object now carries an sqlite3* pointer to use for
recording malloc failures.  This eliminates the need to pass sqlite3*
pointers into many internal interfaces.  Also added more mutexing. (CVS 4263)

FossilOrigin-Name: 9287276191a582c1cf7cf6b71d8399727d8e534d

18 years agoAdding more thread locking code. This is an incremental check-in. (CVS 4262)
drh [Tue, 21 Aug 2007 16:15:55 +0000 (16:15 +0000)] 
Adding more thread locking code.  This is an incremental check-in. (CVS 4262)

FossilOrigin-Name: 7428732b1fa04b83eda0a3539834693ef351313e

18 years agoReadded the sqlite3_open_v2() interface. No test cases yet.
drh [Tue, 21 Aug 2007 15:13:19 +0000 (15:13 +0000)] 
Readded the sqlite3_open_v2() interface.  No test cases yet.
Additional progress toward adding mutexes to all interfaces. (CVS 4261)

FossilOrigin-Name: 3787563e90d7210d349ee36484c3f008c955552e

18 years agoDelay opening temporary pager files until they are first written. (CVS 4260)
danielk1977 [Tue, 21 Aug 2007 14:27:01 +0000 (14:27 +0000)] 
Delay opening temporary pager files until they are first written. (CVS 4260)

FossilOrigin-Name: 3fb97a63ef70662abdba18ce8b480e6b0badcfb1

18 years agoRemove the obsolete static mutexes. Use only the lastest static mutex code. (CVS...
drh [Tue, 21 Aug 2007 13:51:23 +0000 (13:51 +0000)] 
Remove the obsolete static mutexes.  Use only the lastest static mutex code. (CVS 4259)

FossilOrigin-Name: 6225cd461cdd2132eeb480aa4deb8986b7f63c15

18 years agoAdd the tests that go with the previous commit. (CVS 4258)
danielk1977 [Tue, 21 Aug 2007 13:30:07 +0000 (13:30 +0000)] 
Add the tests that go with the previous commit. (CVS 4258)

FossilOrigin-Name: a87f32e13e91250ab4d9366d2e9a3a7024a12fb9

18 years agoAvoid journalling an extra page when a btree insert operation uses the 'quick-balance...
danielk1977 [Tue, 21 Aug 2007 13:11:00 +0000 (13:11 +0000)] 
Avoid journalling an extra page when a btree insert operation uses the 'quick-balance' trick. (CVS 4257)

FossilOrigin-Name: 0da48209140b6c1ba47df799ce6065054b994f02

18 years agoFix some problems in the crash-test backend. (CVS 4256)
danielk1977 [Tue, 21 Aug 2007 13:07:46 +0000 (13:07 +0000)] 
Fix some problems in the crash-test backend. (CVS 4256)

FossilOrigin-Name: 5bced2392ad77aff0aa1ddea83f2ff9e3ffe28a8

18 years agoRemove unnecessary #includes of "os.h". New mutex implementations. (CVS 4255)
drh [Tue, 21 Aug 2007 10:44:15 +0000 (10:44 +0000)] 
Remove unnecessary #includes of "os.h".  New mutex implementations. (CVS 4255)

FossilOrigin-Name: fbbd5bda544ffec4e1b43407b12e546235dc7873

18 years agoThe quick test runs again with a handfull of errors after adding the
drh [Mon, 20 Aug 2007 23:50:24 +0000 (23:50 +0000)] 
The quick test runs again with a handfull of errors after adding the
mutex locks to btree, the VFS registration interfaces, and FTS3. (CVS 4254)

FossilOrigin-Name: 6cf725d212d468cbd7c7cbc22ca5ab13f1d77939

18 years agoWork toward multithreading support. Currently crashes quickly on a test. (CVS 4253)
drh [Mon, 20 Aug 2007 22:48:41 +0000 (22:48 +0000)] 
Work toward multithreading support.  Currently crashes quickly on a test. (CVS 4253)

FossilOrigin-Name: 1315bd8e125602275fb718780f9b2730bd37f6ab

18 years agoOops - a random fts2 test I had abandoned slipped into the fts3 batch. (CVS 4252)
shess [Mon, 20 Aug 2007 17:52:59 +0000 (17:52 +0000)] 
Oops - a random fts2 test I had abandoned slipped into the fts3 batch. (CVS 4252)

FossilOrigin-Name: 709f2aa18a4802a7ca6638c00b2b99440b4a3191

18 years agoReplicate the fts2*.test files as fts3a*.test, and convert fts2 to
shess [Mon, 20 Aug 2007 17:38:42 +0000 (17:38 +0000)] 
Replicate the fts2*.test files as fts3a*.test, and convert fts2 to
fts3 in the text of the files. (CVS 4251)

FossilOrigin-Name: 24739f148e7687532fd04794a041aade8626c630

18 years agoAdd support for building with fts3. (CVS 4250)
shess [Mon, 20 Aug 2007 17:37:47 +0000 (17:37 +0000)] 
Add support for building with fts3. (CVS 4250)

FossilOrigin-Name: 95ef963232ab1f15a7c42229819d33d3571a753e

18 years agoCopy fts2 to fts3, renaming, and replacing references to fts2 with
shess [Mon, 20 Aug 2007 17:37:02 +0000 (17:37 +0000)] 
Copy fts2 to fts3, renaming, and replacing references to fts2 with
fts3, including capitalization variants. (CVS 4249)

FossilOrigin-Name: 216c91d2fc49792d9ff53596746f1162f5b7f8d4

18 years agoCall sqlite3OsSleep() with an argument in microseconds, not milliseconds. (CVS 4248)
danielk1977 [Mon, 20 Aug 2007 16:07:00 +0000 (16:07 +0000)] 
Call sqlite3OsSleep() with an argument in microseconds, not milliseconds. (CVS 4248)

FossilOrigin-Name: 917790413ced92266bf5c7cca6d130ed7ac6221b

18 years agoChanges to crash-test io backend (test6.c) so that it works with the sqlite3_vfs...
danielk1977 [Mon, 20 Aug 2007 14:23:44 +0000 (14:23 +0000)] 
Changes to crash-test io backend (test6.c) so that it works with the sqlite3_vfs interface. (CVS 4247)

FossilOrigin-Name: 40f66ada815fa1043d24c9cd6d898e1797e7044a

18 years agoBug fix in BTree shared cache locking code. (CVS 4246)
drh [Mon, 20 Aug 2007 13:14:28 +0000 (13:14 +0000)] 
Bug fix in BTree shared cache locking code. (CVS 4246)

FossilOrigin-Name: 399d3e755253a7b4604a62b9f171e0f1154134e2

18 years agoGet main.c to compile when HAVE_USLEEP is 0. (CVS 4245)
drh [Mon, 20 Aug 2007 11:12:40 +0000 (11:12 +0000)] 
Get main.c to compile when HAVE_USLEEP is 0. (CVS 4245)

FossilOrigin-Name: b27f022fb924709f1c5e4642d5d59cab942e826d

18 years agoUpdate the locking-style code in os_unix.c. The updates are as yet untested. (CVS...
danielk1977 [Mon, 20 Aug 2007 06:44:22 +0000 (06:44 +0000)] 
Update the locking-style code in os_unix.c. The updates are as yet untested. (CVS 4244)

FossilOrigin-Name: 41f2175b1ed7eccf271b687ee5c3ea262a0cd096

18 years agoFix full_fsync() related functionality broken as part of the migration to sqlite3_vfs...
danielk1977 [Mon, 20 Aug 2007 05:36:51 +0000 (05:36 +0000)] 
Fix full_fsync() related functionality broken as part of the migration to sqlite3_vfs. (CVS 4243)

FossilOrigin-Name: cb24cda179c2b526c5ac48be75e372d2b9db808c

18 years agoFurther progress on migration to sqlite3_vfs. (CVS 4242)
danielk1977 [Sat, 18 Aug 2007 10:59:19 +0000 (10:59 +0000)] 
Further progress on migration to sqlite3_vfs. (CVS 4242)

FossilOrigin-Name: a258c4ec240f96bccfe493e98d0827ec7dd12e67

18 years agoRemove some old OsFile and IoMethod related code. Add the sqlite3OsLockState function...
danielk1977 [Fri, 17 Aug 2007 16:50:38 +0000 (16:50 +0000)] 
Remove some old OsFile and IoMethod related code. Add the sqlite3OsLockState function. (CVS 4241)

FossilOrigin-Name: 08a0f48028794abbeae1b4852652062b38d37d88

18 years agoBegin migration to using sqlite3_vfs interface. (CVS 4240)
danielk1977 [Fri, 17 Aug 2007 15:53:36 +0000 (15:53 +0000)] 
Begin migration to using sqlite3_vfs interface. (CVS 4240)

FossilOrigin-Name: af3e3c7acdc67013dd733effebe981620d922dd1

18 years agoBegin adding mutexes. Compiles without SQLITE_OMIT_SHARED_CACHE but we
drh [Fri, 17 Aug 2007 01:14:38 +0000 (01:14 +0000)] 
Begin adding mutexes.  Compiles without SQLITE_OMIT_SHARED_CACHE but we
get an assertion fault on the shared cache testing. (CVS 4239)

FossilOrigin-Name: 4c1e9ffebe7c611a8b6a89153ae97ab9bca19ea3

18 years agoChange the design of the mutex interface to allow for
drh [Thu, 16 Aug 2007 19:40:16 +0000 (19:40 +0000)] 
Change the design of the  mutex interface to allow for
both "fast" and "recursive" mutexes. (CVS 4238)

FossilOrigin-Name: 160593dcc5690af715b775c81137c6e09cca6454

18 years agoRemove the thread specific data subsystem from the unix build. Remove
drh [Thu, 16 Aug 2007 13:01:44 +0000 (13:01 +0000)] 
Remove the thread specific data subsystem from the unix build.  Remove
legacy cruft from sqliteInt.h.  Use the new mutex subsystem in the PRNG. (CVS 4237)

FossilOrigin-Name: 3d60c14a32955b69e714a73372924d421899f83b

18 years agoCombine sqlite3DbOfVdbe() and sqlite3VdbeDb() into a single function. (CVS 4236)
drh [Thu, 16 Aug 2007 12:24:01 +0000 (12:24 +0000)] 
Combine sqlite3DbOfVdbe() and sqlite3VdbeDb() into a single function. (CVS 4236)

FossilOrigin-Name: ba80ee59a72afe36817997de705ef81d876b6f35

18 years agoFix some more small problems introduced by recent refactoring. (CVS 4235)
danielk1977 [Thu, 16 Aug 2007 11:36:15 +0000 (11:36 +0000)] 
Fix some more small problems introduced by recent refactoring. (CVS 4235)

FossilOrigin-Name: 5e2795d0eb8ea2a076b3014cfa9096aa7e8f69d7

18 years agoReplace a few sqlite3_malloc() calls that should be sqlite3MallocZero(). (CVS 4234)
danielk1977 [Thu, 16 Aug 2007 10:36:33 +0000 (10:36 +0000)] 
Replace a few sqlite3_malloc() calls that should be sqlite3MallocZero(). (CVS 4234)

FossilOrigin-Name: 384d0ca9bc96309e7057e4a2bd4bac5049485e9b

18 years agoMore work on refactoring of malloc() interfaces. There are still many errors. (CVS...
danielk1977 [Thu, 16 Aug 2007 10:09:01 +0000 (10:09 +0000)] 
More work on refactoring of malloc() interfaces. There are still many errors. (CVS 4233)

FossilOrigin-Name: 77b1671351fe94b0ebc126a63140643deae2aa64

18 years agoAdd a test for malloc() failure when compiling a trigger step of the form "INSERT...
danielk1977 [Thu, 16 Aug 2007 04:39:01 +0000 (04:39 +0000)] 
Add a test for malloc() failure when compiling a trigger step of the form "INSERT INTO ... SELECT ...". Currently causes a segfault. (CVS 4232)

FossilOrigin-Name: 161643a694458e76849cd663f277892ae7c6b729

18 years agoHalf-way through a major refactoring of the memory allocation.
drh [Thu, 16 Aug 2007 04:30:38 +0000 (04:30 +0000)] 
Half-way through a major refactoring of the memory allocation.
I have not even attempted to compile so I am certain there are
countless errors. (CVS 4231)

FossilOrigin-Name: deb7ecd65f7b83eaf0ba610eeef3b0ede61db1c3

18 years agoEnhancements and smoke testing of the new memory allocation subsystem.
drh [Wed, 15 Aug 2007 20:41:28 +0000 (20:41 +0000)] 
Enhancements and smoke testing of the new memory allocation subsystem.
Have not yet cut it over to the core, though. (CVS 4230)

FossilOrigin-Name: 1dad2c0a1f00596b13b02ccef664bd2346a677a4

18 years agoTest infrastructure for the new memory subsystem. (CVS 4229)
drh [Wed, 15 Aug 2007 19:16:43 +0000 (19:16 +0000)] 
Test infrastructure for the new memory subsystem. (CVS 4229)

FossilOrigin-Name: 9e506656720fb3a3205b8cc398152272ce56f6f3

18 years agoModify the crash-recovery test code in test6.c for 3.5. Also change some other code...
danielk1977 [Wed, 15 Aug 2007 17:08:46 +0000 (17:08 +0000)] 
Modify the crash-recovery test code in test6.c for 3.5. Also change some other code to use the new sqlite3_io_methods interface. Lots of things are broken now. (CVS 4228)

FossilOrigin-Name: af9503daf3f7703fcddad754bc1dc9e179830b6e

18 years agoAdd a debugging memory allocator. (CVS 4227)
drh [Wed, 15 Aug 2007 17:07:57 +0000 (17:07 +0000)] 
Add a debugging memory allocator. (CVS 4227)

FossilOrigin-Name: 8d2d1c4ff9dca61f75e3048107ee9712d346a28c

18 years agoAdd initial implementations of mutex and memory subsystem modules. (CVS 4226)
drh [Wed, 15 Aug 2007 13:04:54 +0000 (13:04 +0000)] 
Add initial implementations of mutex and memory subsystem modules. (CVS 4226)

FossilOrigin-Name: c0fa3769790af199a4c8715c80bb8ff900730520

18 years agoRevisions to the interface design for 3.5. (CVS 4225)
drh [Wed, 15 Aug 2007 11:28:56 +0000 (11:28 +0000)] 
Revisions to the interface design for 3.5. (CVS 4225)

FossilOrigin-Name: 174116f7c0ceeceb5e32868b29fabf8a6943cbf6

18 years agoClarify documentation on sqlite3_interrupt(). (CVS 4224)
drh [Tue, 14 Aug 2007 18:03:14 +0000 (18:03 +0000)] 
Clarify documentation on sqlite3_interrupt(). (CVS 4224)

FossilOrigin-Name: 0b5b526c9de22a34c5051d14735a062ed3f898eb

18 years agoAdd comments describing upcoming changes to crash-test module (test6.c). No code
danielk1977 [Tue, 14 Aug 2007 17:42:05 +0000 (17:42 +0000)] 
Add comments describing upcoming changes to crash-test module (test6.c). No code
changes. (CVS 4223)

FossilOrigin-Name: 63631c17376bcb5a7aa305408aaeaf03738d7b95

18 years agoAdd a first cut at the new version 3.5 interface definitions to sqlite.h.in. (CVS...
drh [Tue, 14 Aug 2007 01:58:53 +0000 (01:58 +0000)] 
Add a first cut at the new version 3.5 interface definitions to sqlite.h.in. (CVS 4219)

FossilOrigin-Name: 0a57f3dd4de12278732e3ca9d8a95f85c351da03

18 years agoVersion 3.4.2 (CVS 4218)
drh [Mon, 13 Aug 2007 20:31:01 +0000 (20:31 +0000)] 
Version 3.4.2 (CVS 4218)

FossilOrigin-Name: 64989904d44556eee0ea0270f8d4f0e903ffcfdf

18 years agoUpdate version number of documentation in preparation for version 3.4.2. (CVS 4217)
drh [Mon, 13 Aug 2007 16:15:29 +0000 (16:15 +0000)] 
Update version number of documentation in preparation for version 3.4.2. (CVS 4217)

FossilOrigin-Name: 1ed51e3ca04bee887326cb323bc7046ff1a98946

18 years agoInvalidate prepared SQL statements when rolling back a transaction that includes...
danielk1977 [Mon, 13 Aug 2007 15:28:33 +0000 (15:28 +0000)] 
Invalidate prepared SQL statements when rolling back a transaction that includes schema modifications. (CVS 4216)

FossilOrigin-Name: a07143fc0578a5fc7c891e94616ee0b353674d6e

18 years agoDisable tests that require 80-bit long doubles when the host only
drh [Mon, 13 Aug 2007 15:18:27 +0000 (15:18 +0000)] 
Disable tests that require 80-bit long doubles when the host only
provides 64-bit long doubles.  Ticket #2570. (CVS 4215)

FossilOrigin-Name: 4f4f8ef416394b7e54e8894f7a0d067d64636fc4

18 years agoFix a page leak in btree balance routines that follows a malloc failure.
drh [Mon, 13 Aug 2007 14:56:44 +0000 (14:56 +0000)] 
Fix a page leak in btree balance routines that follows a malloc failure.
This problem detected by the new soft-heap-limit testing. (CVS 4214)

FossilOrigin-Name: bad661bb0bfabf982a2d711ea4165af130a4cae0

18 years agoWhen loading a database schema, do not clear the SQLITE_InternChanges flag. This...
danielk1977 [Mon, 13 Aug 2007 14:41:19 +0000 (14:41 +0000)] 
When loading a database schema, do not clear the SQLITE_InternChanges flag. This fixes the problem illustrated by (4211). (CVS 4213)

FossilOrigin-Name: 540a7b28bc37709056cfdb13286274ec5bdd8423

18 years agoFix the test labels in mallocC.test. (CVS 4212)
drh [Mon, 13 Aug 2007 12:58:18 +0000 (12:58 +0000)] 
Fix the test labels in mallocC.test. (CVS 4212)

FossilOrigin-Name: 7d4cdff444b98b76a34bd85d0a43cda28e7dffe4

18 years agoAdd a new test cases for a problem with malloc failure during the parsing
drh [Mon, 13 Aug 2007 12:39:03 +0000 (12:39 +0000)] 
Add a new test cases for a problem with malloc failure during the parsing
of CREATE TABLE statements in autovacuum mode. (CVS 4211)

FossilOrigin-Name: be50387e658a9a73e12b07ca89ae75e871489f16

18 years agoRemove a memory allocation from sqlite3VdbeIOTraceSql(). This means that
drh [Mon, 13 Aug 2007 11:10:34 +0000 (11:10 +0000)] 
Remove a memory allocation from sqlite3VdbeIOTraceSql().  This means that
when doing I/O tracing, the text of an SQL statement is truncated to the
first 1000 characters.  But it also means tracing works in an out-of-memory
situation. (CVS 4210)

FossilOrigin-Name: 578da2476e356ea35d272e18faf490efedeaf25c

18 years agoUpdates to test scripts for better support of soft-heap-limit testing. (CVS 4209)
drh [Sun, 12 Aug 2007 20:07:58 +0000 (20:07 +0000)] 
Updates to test scripts for better support of soft-heap-limit testing. (CVS 4209)

FossilOrigin-Name: 990f621f2247f1636e895dcf51fea1e08f202d31

18 years agoBackout check-in (4206) and replace it with a much better and more
drh [Sat, 11 Aug 2007 00:26:20 +0000 (00:26 +0000)] 
Backout check-in (4206) and replace it with a much better and more
general fix for the problem identified in ticket #2565. (CVS 4208)

FossilOrigin-Name: 7961a7385013d74ec78cbdfff6867c505528c163

18 years agoFix some incorrect asserts() in the pager - problems brought to light by
drh [Fri, 10 Aug 2007 23:56:35 +0000 (23:56 +0000)] 
Fix some incorrect asserts() in the pager - problems brought to light by
the new soft-heap-limit testing apparatus of check-in (4202). (CVS 4207)

FossilOrigin-Name: 51f3e01b7486f23b67bdfb6bb19fc5297b2c8cec

18 years agoFix the corruption problem of ticket #2565 as demonstrated by the test added
drh [Fri, 10 Aug 2007 23:54:16 +0000 (23:54 +0000)] 
Fix the corruption problem of ticket #2565 as demonstrated by the test added
in (4204).  There may yet be other instances of similar problems lurking in
the code. (CVS 4206)

FossilOrigin-Name: 7ed2f59e70e0d9a8ad0c47c8c12fae0aaddcedce

18 years agoConvert fts2 to use sqlite3_prepare_v2() to prevent certain logic
shess [Fri, 10 Aug 2007 23:47:03 +0000 (23:47 +0000)] 
Convert fts2 to use sqlite3_prepare_v2() to prevent certain logic
errors around SQLITE_SCHEMA handling.  This also allows
sql_step_statement() and sql_step_leaf_statement() to be replaced with
sqlite3_step().

Also fix a logic error in flushPendingTerms() which was clearing the
term table in case of error.  This was wrong in the face of
SQLITE_SCHEMA.  Even though the change to sqlite3_prepare_v2() should
cause us not to see SQLITE_SCHEMA any longer, it was still a logic
error... (CVS 4205)

FossilOrigin-Name: 16730cb137eaf576b87cdc17913564c9c5c0ed82

18 years agoAdd a test case to reproduce the database corruption problem reported
drh [Fri, 10 Aug 2007 19:46:43 +0000 (19:46 +0000)] 
Add a test case to reproduce the database corruption problem reported
by ticket #2565. (CVS 4204)

FossilOrigin-Name: f267ce809424ec2cc167bf9750989413a8f925c1

18 years agoUpdate tests so that they work properly even if the soft-heap-limit
drh [Fri, 10 Aug 2007 19:46:13 +0000 (19:46 +0000)] 
Update tests so that they work properly even if the soft-heap-limit
is set low. (CVS 4203)

FossilOrigin-Name: e01eb99edfa3390e97847a210532847cc64803da

18 years agoAdd the --soft-heap-limit=N option to the test scripts. Set this value to
drh [Fri, 10 Aug 2007 16:41:08 +0000 (16:41 +0000)] 
Add the --soft-heap-limit=N option to the test scripts.  Set this value to
enforce a soft heap limit across all tests.  This changes exposes several
new bugs. (CVS 4202)

FossilOrigin-Name: 8be845981654d2a846c95c699395af222b6c3b43

18 years agoFix documentation typos. Tickets #2168 and #2560. (CVS 4201)
drh [Thu, 9 Aug 2007 00:00:26 +0000 (00:00 +0000)] 
Fix documentation typos.  Tickets #2168 and #2560. (CVS 4201)

FossilOrigin-Name: 4333b231af8866e3d2d75bc64083b6c36c8da8d8

18 years agoMore tweaking of linkage. Ticket #2554. (CVS 4200)
drh [Wed, 8 Aug 2007 12:11:21 +0000 (12:11 +0000)] 
More tweaking of linkage.  Ticket #2554. (CVS 4200)

FossilOrigin-Name: 3759a38fe8e8a873dc3aae8dc99ca1010551b50b

18 years agoAdditional refinements on the amalgamation: Give a couple of constants
drh [Wed, 8 Aug 2007 01:04:52 +0000 (01:04 +0000)] 
Additional refinements on the amalgamation:  Give a couple of constants
file scope and add the SQLITE_API prefix to some interfaces that need it.
Ticket #2554. (CVS 4199)

FossilOrigin-Name: c09ec102c4f62e492dd3676ef0aa1a183d6ce3b3

18 years agoRemove all tabs from source code files. Ticket #2556. (CVS 4198)
drh [Tue, 7 Aug 2007 17:13:03 +0000 (17:13 +0000)] 
Remove all tabs from source code files.  Ticket #2556. (CVS 4198)

FossilOrigin-Name: 7550dd1d5980a399fbb06b4ed69216700f879a0b

18 years agoRevise the amalgamation so that all symbols have file scope except those
drh [Tue, 7 Aug 2007 17:04:59 +0000 (17:04 +0000)] 
Revise the amalgamation so that all symbols have file scope except those
that begin with "sqlite3_".  Ticket #2554. (CVS 4197)

FossilOrigin-Name: 73db545289a1a99bd48b22895d2a3ee86540f107

18 years agoFix some compiler warnings. (CVS 4196)
drh [Sun, 5 Aug 2007 23:52:05 +0000 (23:52 +0000)] 
Fix some compiler warnings. (CVS 4196)

FossilOrigin-Name: 6cc15409ad6baefbe6e2214a4ac1cb3a0433f922

18 years agoChange some (English language) grammar in faq.tcl. Ticket #2480. No code changes...
danielk1977 [Fri, 3 Aug 2007 08:18:44 +0000 (08:18 +0000)] 
Change some (English language) grammar in faq.tcl. Ticket #2480. No code changes. (CVS 4195)

FossilOrigin-Name: e526817f158883f617720fd389741a29454ad483

18 years agoAvoid reloading the schema when an expired statement is finalized or reset.
danielk1977 [Fri, 3 Aug 2007 07:33:08 +0000 (07:33 +0000)] 
Avoid reloading the schema when an expired statement is finalized or reset.
This is only necessary when the in-memory schema does not match the file-system schema. (CVS 4194)

FossilOrigin-Name: 61de5b52daa0a862a04147dbaf71fafb696052f6

18 years agoFix a typo in limits.html. (CVS 4193)
drh [Mon, 30 Jul 2007 23:02:38 +0000 (23:02 +0000)] 
Fix a typo in limits.html. (CVS 4193)

FossilOrigin-Name: c709140b51610a2fbbff15c1fd80783218780f6f

18 years agoMake excess output from the CLI appear inside SQL comments so as not
drh [Mon, 30 Jul 2007 20:41:52 +0000 (20:41 +0000)] 
Make excess output from the CLI appear inside SQL comments so as not
to interfere with generated SQL.  Ticket #2544. (CVS 4192)

FossilOrigin-Name: 49a2e85511e845051cfc6ae4318207b1866d43c9

18 years agoFix ticket #2439: the FTS1 and FTS2 extensions use the non-standard,
rse [Mon, 30 Jul 2007 18:55:36 +0000 (18:55 +0000)] 
Fix ticket #2439: the FTS1 and FTS2 extensions use the non-standard,
unportable and highly deprecated <malloc.h> header on all platforms
except Apple Mac OS X. The <malloc.h> actually is never required on
any OS with an at least partly POSIX-conforming API as the malloc(3) &
friends functions officially live in <stdlib.h> since over 10 years.
Under some platform like FreeBSD the inclusion of <malloc.h> since a few
years even causes an "#error" and this way a build failure. So, just get
rid of the bad <malloc.h> usage in FTS1 and FTS2 extensions at all and
stick with <stdlib.h> there only. (CVS 4191)

FossilOrigin-Name: 3f9a666143a8aafa0b1a5d56ec68f69f2b3d6a21

18 years ago"extern" declarations inside function bodies are not every compiler's
rse [Mon, 30 Jul 2007 18:31:53 +0000 (18:31 +0000)] 
"extern" declarations inside function bodies are not every compiler's
favorite, so move to global scope. Additionally, at least under Unix
environment use <unistd.h> to get the proper prototype instead of using
a K&R-style own declaration. (CVS 4190)

FossilOrigin-Name: 5955a77d6c902dc65897ba19d6e06db3e10bd3ee

18 years agoGet rid of the following compile-time warnings:
rse [Mon, 30 Jul 2007 18:26:19 +0000 (18:26 +0000)] 
Get rid of the following compile-time warnings:
tool/mkkeywordhash.c:353: warning: array subscript has type 'char'
tool/mkkeywordhash.c:354: warning: array subscript has type 'char' (CVS 4189)

FossilOrigin-Name: c01d7944799d8a96a29f8d4f6d2bb7c4bb0e14bb

18 years agoGet rid of the following compile-time warning:
rse [Mon, 30 Jul 2007 18:24:38 +0000 (18:24 +0000)] 
Get rid of the following compile-time warning:
"src/shell.c:112: warning: 'iotracePrintf' defined but not used" (CVS 4188)

FossilOrigin-Name: 271e27fd30f3b99e6d6ad2fc2c6e87f43f4c76c8

18 years agoFix a bug with explicit collation sequences attached to a column reference expression...
danielk1977 [Mon, 30 Jul 2007 14:40:48 +0000 (14:40 +0000)] 
Fix a bug with explicit collation sequences attached to a column reference expression that is on the right-hand-side of a binary comparison operator. (CVS 4187)

FossilOrigin-Name: 7b69968618bfc19f0c1ab25c5f16c9fdff5af094

18 years agoTest that an explicit collation sequence overrides an implicit one attached to a...
danielk1977 [Thu, 26 Jul 2007 10:16:30 +0000 (10:16 +0000)] 
Test that an explicit collation sequence overrides an implicit one attached to a 'new' reference (it does). No code changes. (CVS 4186)

FossilOrigin-Name: a443b07ed659223401ee7acaf613d0b04f33fc89

18 years agoFix two obscure memory leaks that can follow a malloc() failure in sqlite3_set_auxdat...
danielk1977 [Thu, 26 Jul 2007 06:50:05 +0000 (06:50 +0000)] 
Fix two obscure memory leaks that can follow a malloc() failure in sqlite3_set_auxdata(). Ticket #2534. (CVS 4185)

FossilOrigin-Name: b88af1827bec3e8a32450dd0a073ffc3b12a5939