drh
8c4d6b97e0
Fix a bug in the noop-mutex implementation. (CVS 5242)
...
FossilOrigin-Name: eec9a54dc3554a00ea69fc8e26d205f30a3bcabd
2008-06-19 01:50:09 +00:00
drh
65bbf29ee3
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
2008-06-19 01:03:17 +00:00
drh
f714199054
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
2008-06-19 00:16:08 +00:00
pweilbacher
6a9773e884
fix OS/2 files to compile again (looking at Windows equivalents for guidance) (CVS 5239)
...
FossilOrigin-Name: 8b14a220f261b354e7d2d16dc3fe30c5d3d34143
2008-06-18 21:08:16 +00:00
danielk1977
d025174f0b
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
2008-06-18 18:57:42 +00:00
drh
9ac3fe979f
Added support for scratch-memory lookaside allocations. Largely untested.
...
Added calls to sqlite3_initialize() within malloc APIs. (CVS 5237)
FossilOrigin-Name: 383a78601c70cd832c171344857038e345b9ae5c
2008-06-18 18:12:04 +00:00
danielk1977
bc10d7730c
Add a call to sqlite3_initialize() to sqlite3_mutex_alloc() (CVS 5236)
...
FossilOrigin-Name: 8b23b719440aca9fca7e8f409729c3318ff3f80c
2008-06-18 18:08:39 +00:00
danielk1977
01bf29966d
Fix a test case in mutex1.test that was failing when sqlite was compiled with SQLITE_THREADSAFE=0. (CVS 5235)
...
FossilOrigin-Name: d1a87c3bcc9a32918f1cf743f85cd1a71557220e
2008-06-18 17:59:03 +00:00
danielk1977
59f8c08ecc
Implement the 'CONFIG_SINGLETHREAD' and 'CONFIG_MULTITHREAD' configuration modes. (CVS 5234)
...
FossilOrigin-Name: 5059644c4bc5f6679afd939e0bc26080f42a9918
2008-06-18 17:09:10 +00:00
drh
a2baf3a2e5
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
2008-06-18 15:34:09 +00:00
drh
56a40a8010
Add documentation on the sqlite3_mutex_methods object. (CVS 5232)
...
FossilOrigin-Name: c3c7bfc9db6774824be14a1394e1842716dce8ec
2008-06-18 13:47:03 +00:00
drh
335897970c
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
2008-06-18 13:27:46 +00:00
danielk1977
1a9ed0b27a
Add some test infrastructure and cases for the new mutex api. (CVS 5230)
...
FossilOrigin-Name: 262baee9952b28afe5dc77eb7365ebb11a480906
2008-06-18 09:45:56 +00:00
drh
5f09d3e611
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
2008-06-18 02:01:07 +00:00
danielk1977
b2e36222af
Add the SQLITE_CONFIG_MUTEX symbol for use with sqlite3_config(). (CVS 5228)
...
FossilOrigin-Name: af1835bb5f5e3fb78d782c7c287e20db169e883f
2008-06-17 18:57:49 +00:00
danielk1977
6d2ab0e431
Change the mutex interface to be pluggable. This is an incremental checkin, there are still changes to come. (CVS 5227)
...
FossilOrigin-Name: 597283637bcdc2398bf249b2bbc6ded47ad2de22
2008-06-17 17:21:18 +00:00
drh
facf030792
Add internal interfaces: PageMalloc/PageFree and ScratchMalloc/ScratchFree. (CVS 5226)
...
FossilOrigin-Name: 3e797d0ffe1af6f7512b3fb7b387418ac05671e0
2008-06-17 15:12:00 +00:00
drh
cdb7a0feb5
Do not allow a VACUUM to try to change the page_size on an encrypted database. (CVS 5225)
...
FossilOrigin-Name: d49e5020019093a5b8a4fbe09caeb84ecb538629
2008-06-17 01:03:25 +00:00
drh
9be071664d
Clean up obfuscated code in sqlite3_table_column_meta_data().
...
Be sure to invoke sqlite3_initialize() within sqlite3_mprintf(). (CVS 5224)
FossilOrigin-Name: bb4edb53964559fc1cd69700beb72ecc29b58f37
2008-06-16 20:51:15 +00:00
danielk1977
dfdf9844aa
Fix a recently introduced resource leak in test file incrblob2.test (forgot to close a blob handle). (CVS 5223)
...
FossilOrigin-Name: 88e1c6092e48c860950d3437f264785243bb67ed
2008-06-16 14:36:01 +00:00
danielk1977
99e925da51
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
2008-06-16 14:19:57 +00:00
danielk1977
fce96308b1
Add a test to verify that IN(...) WHERE clause terms are not handled by virtual table implemetations. (CVS 5221)
...
FossilOrigin-Name: 85483c8fb3b45281ce07e84349841fc80e560b1f
2008-06-16 06:31:34 +00:00
drh
e5ae5735c0
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
2008-06-15 02:51:47 +00:00
drh
fec00eabb3
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
2008-06-14 16:56:21 +00:00
drh
40257ffd0a
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
2008-06-13 18:24:27 +00:00
drh
655194d6ae
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
2008-06-12 18:17:40 +00:00
drh
c91d86c95a
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
2008-06-12 18:05:40 +00:00
drh
85f477a141
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
2008-06-12 16:35:38 +00:00
danielk1977
5e982b1c38
Add another test to incrblob2.test. This test failed to reveal any new bugs. (CVS 5214)
...
FossilOrigin-Name: 20d8ea45afcddf22632c3de984147826d0616d3f
2008-06-12 14:42:06 +00:00
drh
3af5d685d7
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
2008-06-12 13:50:00 +00:00
drh
66147c9715
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
2008-06-12 12:51:37 +00:00
drh
be4076e084
Remove obsolete code from the test_osinst.c module. (CVS 5211)
...
FossilOrigin-Name: 699cec66cdae6818844612d69eb89aa8b93c3f1a
2008-06-12 12:40:13 +00:00
drh
9a8f176e8d
Copy the latest VFS changes into the OS/2 implementation. This is a blind
...
edit - I have no way to compile or test OS/2. (CVS 5210)
FossilOrigin-Name: b60508ccbc3159e994bc988512d9dbec3932deb6
2008-06-12 12:38:10 +00:00
shane
f1aaaa4092
Added additional testcases for julianday calculations with midnight boundary for UTC time. (CVS 5209)
...
FossilOrigin-Name: edd2cb00ae606858d8ae138c69eee7821b8cd6ea
2008-06-12 05:16:14 +00:00
shane
b08c1d0c7d
Added x86_64 version of hwtime function. Ticket #3156 . (CVS 5208)
...
FossilOrigin-Name: 0729f5c3d01200190897488f14aec413a5ea17f9
2008-06-12 02:24:38 +00:00
shane
022e8afe49
Removed all C++ style comments. Ticket #3172 . (CVS 5207)
...
FossilOrigin-Name: 59f72425eb9acd270110a6a739f98a045c555f23
2008-06-12 02:16:44 +00:00
drh
cb0413407c
Additional refinements to the new sqlite3_initialize() interface design. (CVS 5206)
...
FossilOrigin-Name: 14a9b9453bc1c85785fcc44617af80912f5118c8
2008-06-12 00:07:29 +00:00
drh
9e855dac4f
Adjust the error-message text in corrupt7.test. (CVS 5205)
...
FossilOrigin-Name: 4a77ff5b588f4c83959591c208a8b20224b75a66
2008-06-11 18:56:42 +00:00
danielk1977
e2326a5cf7
Fix an error in the previous commit found by corrupt7.test. (CVS 5204)
...
FossilOrigin-Name: afcfba0a8ac46e1d86a0fa2f1fbaeefe8ef10f7d
2008-06-11 18:27:55 +00:00
danielk1977
e16535f1f0
Check that the offsets in the cell-offset array of a b-tree page are within range in sqlite3BtreeInit(). (CVS 5203)
...
FossilOrigin-Name: 82f27e28eeb6902b75e21afd8eb170465f680d7b
2008-06-11 18:15:29 +00:00
drh
f3840b0645
Add a test case for the database corruption in the form of cell offsets
...
out of range in an otherwise valid btree page. (CVS 5202)
FossilOrigin-Name: c569a6cf664e9a8095f616327719392fb8186d37
2008-06-11 18:01:21 +00:00
danielk1977
d186854f3a
Update utility program speedtest8inst1.c. (CVS 5201)
...
FossilOrigin-Name: 98bdc7b44db737d3b77aa76c139995d2b185cd85
2008-06-11 11:00:31 +00:00
drh
ce5a5a0159
A completely new design for the sqlite3_initialize() and sqlite3_shutdown()
...
interfaces. (CVS 5200)
FossilOrigin-Name: 7dfcd73dc8e97e0bdbe05a22d0ed22b25e5a2786
2008-06-10 17:41:44 +00:00
danielk1977
3588ceb868
Invalidate sqlite3_blob* handles whenever an SQL statement is used to delete or modify the rows containing the open blob. Previously, modifying the table containing the open blob in any way invalidated the handle. This was too restrictive. (CVS 5199)
...
FossilOrigin-Name: e339c91f8718482ce74fc53781091db95e69d4c3
2008-06-10 17:30:26 +00:00
drh
673299b772
Initial attempt at defining the sqlite3_initialize() and sqlite3_shutdown()
...
interfaces. (CVS 5198)
FossilOrigin-Name: 220bfd1f5cef0dfa8b800faa814ad4dc1456ced4
2008-06-09 21:57:22 +00:00
shane
1f9e6aac5f
Moved declaration of int nPage; to top of block to silence picky compilers (MSVC). (CVS 5197)
...
FossilOrigin-Name: 120bffff747592f1ab6ed02713a712cc74c12528
2008-06-09 19:27:11 +00:00
danielk1977
55edca5c17
Add test file incrblob2.test to test opening two blob handles on a single database blob. (CVS 5196)
...
FossilOrigin-Name: c1d877feb530b5cdaad55da3dbbb7c2596a10c49
2008-06-09 15:51:26 +00:00
danielk1977
ad0132dff1
Change the signature of sqlite3PagerPagecount() so that it can return an error code. (CVS 5195)
...
FossilOrigin-Name: e9f01c01866d302d81bf9ebc484ea6351cbc0f60
2008-06-07 08:58:22 +00:00
danielk1977
8162054b44
Do not call xSync() from zeroJournalHdr() if the Pager.noSync flag is set (i.e. for temp files). (CVS 5194)
...
FossilOrigin-Name: 9f5cbe29226151113e4565fcf8170317afe1b8c6
2008-06-07 05:19:37 +00:00
danielk1977
0f01fdae33
Avoid attempting to delete the journal file of a temporary pager when closing the pager. It will be deleted automatically by the OS layer. (CVS 5193)
...
FossilOrigin-Name: de8b87d65a85c4dabe53281092d9a23555a8e2d6
2008-06-06 16:14:02 +00:00