danielk1977
b13dee9900
Run (a subset of) the rtree tests from quick.test. (CVS 5282)
...
FossilOrigin-Name: e872c78c72eb5976e72123485692a76409bd857f
2008-06-23 15:55:52 +00:00
danielk1977
950292fbb8
Handle a real system malloc() failure in mem1.c. (CVS 5281)
...
FossilOrigin-Name: 006fd69bf56f05448fd9aa82d3b1cdcc175369ad
2008-06-23 15:10:24 +00:00
danielk1977
834a5aab16
Remove a non-ansi construct from mem1.c - an assert() statement before the variable declarations in a function. (CVS 5280)
...
FossilOrigin-Name: 1de98da6b4c2039e5dc594cc9bfc7d49ae36697c
2008-06-23 14:40:18 +00:00
danielk1977
ca02679635
Avoid passing "void(*)(void)" as an argument to va_arg(). Codewarrior doesn't like it. (CVS 5279)
...
FossilOrigin-Name: edae76d6ff5918007c0a802a34e65412f8f0ebb6
2008-06-23 14:15:52 +00:00
danielk1977
867d05a019
Fix some codewarrior compilation problems. (CVS 5278)
...
FossilOrigin-Name: e6ea8f87c102bd36ab0f2fbc8360fde49f4e3422
2008-06-23 14:03:45 +00:00
danielk1977
5dfecba1a4
Fix a compilation problem with SQLITE_OMIT_VIRTUAL_TABLE is defined. (CVS 5277)
...
FossilOrigin-Name: 0421c09967a191fb62338eb8b1bd766be42f61cc
2008-06-23 13:57:21 +00:00
mihailim
bda2e62c55
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
2008-06-23 11:23:14 +00:00
danielk1977
8468024da8
Correct comments above sqlite3_release_memory() and sqlite3_soft_heap_limit(). Ticket #3138 . (CVS 5275)
...
FossilOrigin-Name: 3240446853a11f5a1e379d4841d0268873aad64d
2008-06-23 11:11:35 +00:00
danielk1977
171bfed311
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
2008-06-23 09:50:50 +00:00
mihailim
421dfca16b
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
2008-06-22 16:35:48 +00:00
drh
b21e7c70f7
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
2008-06-22 12:37:57 +00:00
mihailim
04bcc00788
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
2008-06-22 10:21:27 +00:00
mihailim
1519422672
More documentation spellcheck and cleanup. No changes to code. (CVS 5270)
...
FossilOrigin-Name: 3a88e3ded9c54c319b6c5b6c3d521752cb6dac6d
2008-06-22 09:55:14 +00:00
mihailim
dc884825d3
More documentation spellcheck and cleanup. No changes to code. (CVS 5269)
...
FossilOrigin-Name: d96b9bcd10c3fe27a449e6ad3ab77c2187a06578
2008-06-22 08:58:50 +00:00
mihailim
ebe796ca5b
More documentation spellcheck and cleanup. No changes to code. (CVS 5268)
...
FossilOrigin-Name: 65edead166aafa8ca18b3aaa9eda89816239066a
2008-06-21 20:11:17 +00:00
danielk1977
94527a6d49
Prevent veryquick.test and all.test from running permutations.test directly. (CVS 5267)
...
FossilOrigin-Name: ae9e4c0e4d5639ff11f3fa23775a1118b39688c8
2008-06-21 19:20:13 +00:00
danielk1977
2dd6d809b6
Fix a bug in permutations.test causing the utf-16 tests to fail. (CVS 5266)
...
FossilOrigin-Name: 710621f373398748f31942f2ac9d1c857492538a
2008-06-21 19:10:27 +00:00
danielk1977
1077e3f7e0
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
2008-06-21 18:07:37 +00:00
mihailim
1c4926557a
More documentation spellcheck and cleanup. No changes to code. (CVS 5264)
...
FossilOrigin-Name: 9ae03f5629fb47006ae2d8108dfab3956833d943
2008-06-21 18:02:16 +00:00
mihailim
efc8e8a67a
More documentation spellcheck and cleanup. No changes to code. (CVS 5263)
...
FossilOrigin-Name: 3edfc64f27ba50ba43b79435b3f5d273e3c29aff
2008-06-21 16:47:09 +00:00
mihailim
a3f64901f7
More documentation spellcheck and cleanup. No changes to code. (CVS 5262)
...
FossilOrigin-Name: 47b7b05e55d35450a14250a00468dfbcf4bf49bb
2008-06-21 13:35:56 +00:00
danielk1977
959e3a9b80
Remove mutex2.test. It will be replaced later today by permutations.test. (CVS 5261)
...
FossilOrigin-Name: 98a6a0a30f16cbc60c655663b5895429a34da0ba
2008-06-21 12:15:04 +00:00
mihailim
db4f2adf82
More documentation spellcheck and cleanup. No changes to code. (CVS 5260)
...
FossilOrigin-Name: 8c457fb08b93aa1aa9f62d0ec31755d74416e16b
2008-06-21 11:20:48 +00:00
danielk1977
4b9507a0f1
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
2008-06-21 08:12:15 +00:00
mihailim
362cc83915
Documentation spellcheck and cleanup. No changes to code. (CVS 5258)
...
FossilOrigin-Name: 2904d26ba43b0ded5b43f696ba2d8cd19d4244de
2008-06-21 06:16:42 +00:00
drh
16ee60fff9
Add new Compare and Jump codes to the virtual machine. Use them in the
...
implementation of aggregate queries. (CVS 5257)
FossilOrigin-Name: 083113652ff8f69b18cf1611710fdbbe5fbd9fef
2008-06-20 18:13:25 +00:00
danielk1977
9324c8f280
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
2008-06-20 17:51:16 +00:00
drh
e00ee6eb37
Change the SRT_Subroutine mode into SRT_Coroutine. Use co-routines in
...
the INSERT processing logic. (CVS 5255)
FossilOrigin-Name: 6b9d92fc3f265ef75c9182e537812490bb818950
2008-06-20 15:24:01 +00:00
danielk1977
2d1d86fbbe
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
2008-06-20 14:59:51 +00:00
danielk1977
ef05f2dfe3
Move (almost all) malloc failure test logic from fault.c to test_malloc.c. (CVS 5253)
...
FossilOrigin-Name: 4ae21e3419ad7e69dd735ca45fdc5a2de93d1840
2008-06-20 11:05:37 +00:00
drh
af83758645
Patch to memsubsys1.test in order to avoid a segfault in tableapi.test. (CVS 5252)
...
FossilOrigin-Name: 62411a6e605ec50d8d61233d753cd2ad65c2218d
2008-06-20 00:03:21 +00:00
drh
3780b5de7e
Unset global TCL variables in the func.test script prior to use to avoid
...
conflicts from other scripts. (CVS 5251)
FossilOrigin-Name: 9b04e10f6c00c36652444206d1d8868a560eb56e
2008-06-19 18:39:11 +00:00
danielk1977
d09414cdd6
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
2008-06-19 18:17:49 +00:00
drh
55b0cf00ad
Documentation and test-script updates. (CVS 5249)
...
FossilOrigin-Name: 68d4f7954108f5bf586c4706c8664d8333fb2230
2008-06-19 17:54:33 +00:00
drh
a418980be0
Fix some minor compile problems. (CVS 5248)
...
FossilOrigin-Name: 7d38da3eea9ce93f32e90fce0af5101e2cf12462
2008-06-19 16:07:07 +00:00
drh
d72a841467
Additional test cases for loadable extensions. (CVS 5247)
...
FossilOrigin-Name: 9d73a68c305db673d393db118b6a41241683a670
2008-06-19 15:44:00 +00:00
drh
8b6abedb6f
Add recent API additions to the loadable extension interface. (CVS 5246)
...
FossilOrigin-Name: 12ba27d94e3fb448f88b5efb43b35242fd893297
2008-06-19 15:06:24 +00:00
drh
c4b18b827d
Check in the missing status.c source file. (CVS 5245)
...
FossilOrigin-Name: 298113d4a707ecf59d5dfd8bca45bfe734fb9fbb
2008-06-19 13:20:01 +00:00
danielk1977
4a9d1f665f
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
2008-06-19 08:51:23 +00:00
drh
bb5a9c3eea
Add the sqlite3_next_stmt() interface, including test cases. (CVS 5243)
...
FossilOrigin-Name: 565a530896b40790287eeaad709edd51980fbddf
2008-06-19 02:52:25 +00:00
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
danielk1977
bcb97fe95e
Add the xGetLastError() member function to the sqlite3_vfs structure. It is neither called nor implemented at this point. (CVS 5192)
...
FossilOrigin-Name: b8f1da52c303de20d40aa20a7a031728d5d69af5
2008-06-06 15:49:29 +00:00
drh
2eb95377ef
Remove the subroutine return stack from the VDBE. Return addresses
...
for subroutines are now stored in registers. (CVS 5191)
FossilOrigin-Name: ef1956eebcaf5aca51af8c3b406b1fd4b1f391a7
2008-06-06 15:04:36 +00:00
danielk1977
17b90b5316
Remove the xGetTempname() method from the vfs structure. Temp files are now opened by passing a NULL pointer as the filename to xOpen(). (CVS 5190)
...
FossilOrigin-Name: 5173b3e816c7eb711cd21a9068bbafb9ebb7cff1
2008-06-06 11:11:25 +00:00
danielk1977
4b5255ac31
Reorganize some of the code that detects expression trees with a depth greater than EXPR_MAX_DEPTH so that they are detected earlier. This further reduces the opportunities for stack overflow. (CVS 5189)
...
FossilOrigin-Name: 16d4c53a8e4d3cfc1abac3b8bb44d8bfd9471e32
2008-06-05 16:47:39 +00:00
danielk1977
861f74563d
Modify the signatures of the sqlite3_vfs.xAccess and sqlite3_vfs.xCheckReservedLock functions. (CVS 5188)
...
FossilOrigin-Name: 4226ac54beea1b58de8ab7b9d768d999f50438a6
2008-06-05 11:39:11 +00:00
drh
0d287cf775
Fix another typo in the rtree README file. (CVS 5187)
...
FossilOrigin-Name: 9ab87b7b0d0195787f1527b5be1475fb89330f08
2008-06-04 15:09:16 +00:00
drh
72e87f44d0
Fix a bug in the R-Tree documentation. (CVS 5186)
...
FossilOrigin-Name: bb445a4b1fe43d7b3e8546a6510f4e3c3ecb500b
2008-06-04 14:20:09 +00:00
danielk1977
b53e496095
Add "pragma journal_size_limit", used to limit the space consumed by persistent journal files left in the file-system after a transaction has concluded in exclusive (or journal_mode=persist) mode. (CVS 5185)
...
FossilOrigin-Name: 5c59f469d0321c6a2e702ca2c61db012f63aeecc
2008-06-04 06:45:59 +00:00
danielk1977
53a4ddf7c4
Ensure that vacuum3.test closes all opened database connections. Fix for #3157 . (CVS 5184)
...
FossilOrigin-Name: 654e3b3de8ddeba3e31e9677ec4086e9f73c3598
2008-06-03 07:34:09 +00:00
danielk1977
57f41a76db
Avoid passing a null pointer to sqlite3SetString in sqlite3RunParser. Fix for #3155 . (CVS 5183)
...
FossilOrigin-Name: 03b5e4581a075179c85e8c16b16fd24c151294d3
2008-06-02 13:00:33 +00:00
shane
21e7febffd
Fix typos in comments in vdbe.c. (CVS 5182)
...
FossilOrigin-Name: 0613569424995207c600279c0d2337d5d5a3658c
2008-05-30 15:59:49 +00:00
shane
236ce975fc
Fix typos in comments in sqlite.h.in. (CVS 5181)
...
FossilOrigin-Name: 47956f8ee997113a1765d27009504143e518cc69
2008-05-30 15:35:30 +00:00
drh
909626d479
Fix typos in comments in where.c. (CVS 5180)
...
FossilOrigin-Name: 7cadb223cb79387a7def7762dc9e42028d14baf3
2008-05-30 14:58:37 +00:00
shane
a51269601a
Consolidated inline assembly versions of "hwtime()" into hwtime.h. Provided MSVC version. Modified code for consistent use of hwtime(). Changed implementation to use sqlite_uint64 and sqlite_int64 instead of unsigned long long int and long long int for MSVC compiler support. (CVS 5179)
...
FossilOrigin-Name: 19f5f571dd09c91b6e6a3f82857f54bd30791c03
2008-05-29 20:22:37 +00:00
shane
9bcbdad298
Consolidated inline assembly versions of "hwtime()" into hwtime.h. Provided MSVC version. Modified code for consistent use of hwtime(). Changed implementation to use sqlite_uint64 and sqlite_int64 instead of unsigned long long int and long long int for MSVC compiler support. (CVS 5178)
...
FossilOrigin-Name: 9883b406ce24eae93942ee5e6aab33fb6b05329f
2008-05-29 20:22:37 +00:00
drh
174edc6477
Fix cosmetic issues spotted while working on ticket #3146 (CVS 5177)
...
FossilOrigin-Name: 5f6eab65dba421a736659a6673a51a0e487d68ac
2008-05-29 05:23:41 +00:00
shane
712d6f9dad
Moved check and define for OS_WINCE from os_win.c to os.h (with the other OS_* defines). This allows OS_WINCE to be available for mutex_w32.c which is included earlier than os_win.c in the almagamation. (CVS 5176)
...
FossilOrigin-Name: ad6a782e7c408f6c3ebff5f2715c629b75c8002d
2008-05-29 03:54:26 +00:00
drh
c9ded4c62e
When initializing the sqlite_sequence entry for an AUTOINCREMENT table,
...
make sure the value is an reasonable integer even if the initial insert
failed. Ticket #3148 . (CVS 5175)
FossilOrigin-Name: 7e6847852d4517b1d14bebb8f0ae4d938b0b6f6d
2008-05-29 03:20:59 +00:00
drh
bfdc754f65
Fix an obsolete comment on the OP_Rowid opcode in the VDBE. (CVS 5174)
...
FossilOrigin-Name: 0d55328e680e23aae36d8f32a05aa3815393ac1d
2008-05-29 03:12:54 +00:00
shane
a6f6d20568
Omit declaration for functions that are only used by asserts if asserts aren't being used (NDEBUG). (CVS 5173)
...
FossilOrigin-Name: 5afc445a0e49def38f198455ffce9266fc8724ad
2008-05-29 03:01:23 +00:00
shane
afdd23a47d
Unused functions in testfixture.exe with certain defines. (CVS 5172)
...
FossilOrigin-Name: 5e3ff1bb37f7fbdc9b1414232bd78f096f89eced
2008-05-29 02:57:47 +00:00
shane
75998ab3d9
sqlite3OsDl*() APIs can be omitted if SQLITE_OMIT_LOAD_EXTENSION defined. (CVS 5171)
...
FossilOrigin-Name: 7c51a97dc11f20f7323a9dc5c04a3b84380cf8fb
2008-05-29 02:52:59 +00:00
shane
7bc71e5e82
Use %llx instead of %x for 64 bit values (this only affects a debugging statement). (CVS 5170)
...
FossilOrigin-Name: c81efc97bca58ebbd9500f990f7e45d133e1bd0b
2008-05-28 18:01:44 +00:00
shane
ca57b87efe
Update makefile.in so that makefiles generated by configure correctly copy in rtree source files to tsrc. (CVS 5169)
...
FossilOrigin-Name: e015fa44586b2444c78da413af50787e2690046e
2008-05-28 17:31:17 +00:00
danielk1977
7dc89e6514
Add another test case to vacuum3.test. (CVS 5168)
...
FossilOrigin-Name: d895e85e2f9b595e58562d57226404f72db89a60
2008-05-28 16:00:43 +00:00
danielk1977
b388c41552
Add a test to vacuum3.test to try to trick sqlite into using the wrong database page-size. Turns out there was no problem. (CVS 5167)
...
FossilOrigin-Name: 281589a22fa481b1dfcae69fc124458d240a0ae1
2008-05-28 14:08:17 +00:00
drh
0224d26d37
Allow the SQLITE_MAX_EXPR_DEPTH compile-time parameter to be set to 0 in
...
order to disable expression depth checking. Ticket #3143 . (CVS 5166)
FossilOrigin-Name: 5ceef40e397fc535173996404345b93f695e8cac
2008-05-28 13:49:34 +00:00
shane
1ca0ed4692
In test3.c, use type 'u32' instead of 'unsigned int' to remove a warning/error from native x86_64 compile. (CVS 5165)
...
FossilOrigin-Name: 02447e4e47659d70f014529e9baa3bf8ff75844c
2008-05-27 20:17:00 +00:00
shane
b8109ad375
Updated to use localtime_s() in Windows build environments that support it. Ticket #3126 . (CVS 5164)
...
FossilOrigin-Name: 1518827e48bc3a259b6079a5a4b8dca47b265172
2008-05-27 19:49:21 +00:00
shane
3615b5338b
Explicitly typedef Pgno as 'u32' instead of 'unsigned int' to remove a few warnings/errors from native x86_64 compile. (CVS 5163)
...
FossilOrigin-Name: b5fd8a239d787a126f775101760737781751f56e
2008-05-27 18:11:44 +00:00
drh
4b4f780188
Fix a bug in rtree that occurs when too many constraints are passed
...
in on a query. (CVS 5162)
FossilOrigin-Name: 54b84a3ddba9d27814c2f613dd197f691ac549a4
2008-05-27 00:06:02 +00:00
drh
9f86ad2354
Use %w instead of %q when constructing shadow table names for rtree. (CVS 5161)
...
FossilOrigin-Name: 78f4ba974d9b768b62391d8cd2ed407d49584cb8
2008-05-26 20:49:02 +00:00
drh
58f1c8b773
Update the amalgamation builder to incorporate the RTREE extension. (CVS 5160)
...
FossilOrigin-Name: aa8eba3360c31182f5238e96b83a382374f40fab
2008-05-26 20:19:25 +00:00
danielk1977
ebaecc148f
Import 'rtree' extension. (CVS 5159)
...
FossilOrigin-Name: b104dcd6adadbd3fe15a348fe9d4d290119e139e
2008-05-26 18:41:54 +00:00
drh
02a50b709c
Fix the LIKE query optimizer so that it works with LIKE patterns
...
ending in '@%' on NOCASE columns. Ticket #3139 . (CVS 5158)
FossilOrigin-Name: 33548744369643cc8843b74ad1fc1b7d5988d7a4
2008-05-26 18:33:40 +00:00
shane
26b340369e
Fixed various typos, spelling, grammar, and formatting mistakes. Ticket #3124 . (CVS 5157)
...
FossilOrigin-Name: 77d5a7aa1c7ea715298228ed2dbd0497cacbd0e4
2008-05-23 17:21:09 +00:00
drh
4837f53121
Add a test case of preparing a statement with an nBytes parameter of 0
...
and where the previous byte of the string is zero. Ticket #3134 . (CVS 5156)
FossilOrigin-Name: 846a69acb59403438696000b4ffd588ab42b2f95
2008-05-23 14:49:49 +00:00
drh
d2d88bbdec
Do not references zSql(-1) if nBytes==0 in sqlite3_prepare().
...
Ticket #3134 . (CVS 5155)
FossilOrigin-Name: 2d2c53e5058412a5f484ac2ca5bcef596aed2a7b
2008-05-23 14:32:18 +00:00
danielk1977
131c8bc0c2
Ensure that the db.mallocFailed flag is cleared before sqlite3_errmsg16() returns. (CVS 5154)
...
FossilOrigin-Name: 0d47653a3c39b7cd41c7e6edd8c4b4543658412d
2008-05-22 13:56:17 +00:00
drh
80105af21b
Add the "volatile" keyword to variables in the Pager structure used for
...
synchronization when memory management is enabled. (CVS 5153)
FossilOrigin-Name: 25b9f3b9b2d996ab4582b22b695c4dbd94d09cc7
2008-05-21 15:38:14 +00:00
shane
0c6844e685
Update sqlite3_open*() documentation on shared cache/filename matching relationship. Ticket #3132 . (CVS 5152)
...
FossilOrigin-Name: 235e384eca65d5007e8e0c440904eb254f9b976a
2008-05-21 15:01:21 +00:00
drh
e63b2c215e
Fix the VACUUM command so that it does not modify the changes counts
...
reported by sqlite3_changes() or sqlite3_total_changes(). Update documentation
on sqlite3_changes() and sqlite3_total_changes() to state that
"DELETE FROM table" records a change count of zero. (CVS 5151)
FossilOrigin-Name: f5d61d7d982b58accaf33df4362ce4a5eb79307e
2008-05-21 13:44:13 +00:00
pweilbacher
8407f0eb3e
Fix OS/2 compilation for pre-C99 compilers. (CVS 5150)
...
FossilOrigin-Name: de8e67182d8f9d1f0b215da93a396b9467604a50
2008-05-20 19:08:53 +00:00
drh
282c8e5cf3
Corrections to the documented behavior of sqlite3_last_insert_rowid().
...
(This change is unrelated to the problem reported by Bram de Jong. That
comes next.) (CVS 5149)
FossilOrigin-Name: 894085a59cdc60c34c8a3eb560d98bcb4a087cb1
2008-05-20 18:43:38 +00:00
drh
35c6190cbc
Changes to the error handling policies of sqlite3_exec() to make them
...
more consistent. Changes to the documentation on the error handling
polices of sqlite3_exec() so that the documentation and code agree. (CVS 5148)
FossilOrigin-Name: a0376c7907db8e2993ce48e484001e981fbbb187
2008-05-20 15:44:30 +00:00
shane
05eaf73c8c
Added more DST boundary checks for 2006 and 2007. Added check for suspect Windows DST implementations and warning about them. Ticket #2322 . (CVS 5147)
...
FossilOrigin-Name: 14226ff0a7af7b39a1089a17eeb5bbb8d09d778d
2008-05-20 14:01:59 +00:00
shane
facbc288e3
Updated test case for Windows to get around problems in ticket #3129 . (CVS 5146)
...
FossilOrigin-Name: 2faf69ca1da43f8083b96675a4886648f10177d8
2008-05-20 13:17:28 +00:00
danielk1977
71aa7fff2d
Do not attempt to write a master journal name to the (non-existent) journal file in "no-journal" mode. Fix for #3127 . (CVS 5145)
...
FossilOrigin-Name: ffd4e50ab9b14fb7b686681c5e7a37b8355bbfca
2008-05-20 07:05:09 +00:00
drh
f50bebf0ec
Improvements to API documentation. The sqlite3_exec() function now
...
sets the result returned by sqlite3_errcode() when it receives an SQLITE_ABORT. (CVS 5144)
FossilOrigin-Name: f1df19ca17a09ab8d85a4a7eb04f3ce95a6722da
2008-05-19 23:51:55 +00:00
shane
cf77a45a10
SQLite stores native file names and paths for the database file. Under Windows, (file normalize test.db) is expanded using UNIX type path separators which TCL recognizes interchangeably. However, this means that the path reported by sqlite3_shared_cache_report doesn't match which causes the test case to fail. Made minor change to test case to hopefully correct this on all platforms. (CVS 5143)
...
FossilOrigin-Name: 5ef61701398ce75e32cfaea2eacf2c3e80832ca0
2008-05-19 20:11:39 +00:00
drh
4b81592a28
Fix sqlite3Atoi64 to return true if handed a number of all zeros. The
...
failure to do this is benign as sqlite3Atoi64() is current used, but that
might change in the future so it is good to go ahead and fix the function
to return the correct result. (CVS 5142)
FossilOrigin-Name: bc90787583dd2dadff72d516de9720d4a36e7fd2
2008-05-19 15:54:59 +00:00
drh
9a855cf852
In the CLI, handle the compilation option -DOS_OS2=0 correctly. (CVS 5141)
...
FossilOrigin-Name: 70793be63c0c6dab42d48c096e0e051e37d7e788
2008-05-19 15:53:34 +00:00
shane
8ef4263135
Added test cases for corrupt 2-10 byte SerialTypeLen values. (CVS 5140)
...
FossilOrigin-Name: 97ed2dd1dc9d8e8f837914277c080160d319591b
2008-05-19 15:37:10 +00:00
danielk1977
2d1a8d2fe6
Disable the column cache when coding values that will be passed to the xFilter() method of a virtual table, in case the xFilter() implementation modifies the type or encoding of the value. Ticket #3121 . (CVS 5139)
...
FossilOrigin-Name: ecbc0d5deddc0ca0d1d2649e0134ee392266027e
2008-05-16 15:40:40 +00:00
danielk1977
1e740c6f88
Check that the encoding of values passed to sqlite3_bind_value() matches that of the database. (CVS 5138)
...
FossilOrigin-Name: e94a2883060b9ef59809ff4de9525d897d95546c
2008-05-16 15:24:58 +00:00
danielk1977
822a51628f
Add more version tags to files that lack them. Ticket #3120 . (CVS 5137)
...
FossilOrigin-Name: 81a8c70ed7a86abf286706fdbc251f31c9c53382
2008-05-16 04:51:54 +00:00
drh
6c3af6e383
Add version tag comments to source files that lack them.
...
Tickets #3118 and #3119 . (CVS 5136)
FossilOrigin-Name: cf1fb2d850c3eebc2f92159a156695b61f023202
2008-05-15 19:43:52 +00:00
danielk1977
59a93791ce
Add the "page_count" pragma. Returns a single integer - the number of pages in the specified database file. (CVS 5135)
...
FossilOrigin-Name: eb6985e69ce2a5e5e7361f6226d1cfc547fd441d
2008-05-15 17:48:20 +00:00
danielk1977
dad31b5e11
If a pager is already in the error-state when CommitPhaseOne() is called, exit early. (CVS 5134)
...
FossilOrigin-Name: 443cf1056c73ae89d0efcc7a462455c078b3a4a8
2008-05-15 11:08:07 +00:00
danielk1977
28bbd22307
Fix a test script bug - not all database handles were being closed by ioerr5.test. (CVS 5133)
...
FossilOrigin-Name: 47652e7b169626e5f3d95f29e867a2e8f68c5025
2008-05-15 09:07:55 +00:00
danielk1977
c41cc395c5
Do not write pages to disk to free memory after an IO error occurs. (CVS 5132)
...
FossilOrigin-Name: 10ea8287d090ae610416b4754c0838f13b51fd78
2008-05-15 08:34:54 +00:00
drh
729414c448
Version 3.5.9 (CVS 5131)
...
FossilOrigin-Name: b6129f4cc28f6ba55d19039545555b33857ffd72
2008-05-14 16:18:10 +00:00
shane
d3638aef0b
On instruction from DRH, only do malloc failure tests for O/S ops on non-Windows systems. Better test fixture code will be introduced in 3.6.0 to add this coverage back in for Windows. (CVS 5130)
...
FossilOrigin-Name: e4aab150042bd22868ab02645151cb69a1c02ba0
2008-05-13 19:41:53 +00:00
drh
cec3e3eeaa
Do a slow-path in GetVarint32() for varints that do not fit in 32 bits.
...
This will only happen when trying to interpret a corrupt database file
so speed is not critical. (CVS 5129)
FossilOrigin-Name: 6a6b9437367b66c3b6f710cf3abbdb9841765b21
2008-05-13 16:41:50 +00:00
drh
4873d5f614
Make the benign-fault setting recursive. Make all malloc failures
...
during a rollback benign since there is nothing we can do about them. (CVS 5128)
FossilOrigin-Name: a9d1d931358637a6f039723a053098f65530de4b
2008-05-13 13:27:33 +00:00
drh
d138c0168f
Update the pager so that it does not try to commit a transaction if there
...
have been no changes to the database. (CVS 5127)
FossilOrigin-Name: f1ed3689239098e0630e8d61f52971bcdf2801b6
2008-05-13 00:58:18 +00:00
drh
866108f802
Update the autoconf makefile so that it includes -lpthread. (CVS 5126)
...
FossilOrigin-Name: bd654ebdbe752b44f801726eea16f40aa27df920
2008-05-13 00:57:21 +00:00
pweilbacher
8bf23da5a3
check that DosWrite() was successful before trying again (CVS 5125)
...
FossilOrigin-Name: 1ef6458bee4f0f77ded7c532f196d4c876ec9649
2008-05-12 16:56:13 +00:00
drh
498b87676b
Add "b" to fopen() in the hexio tests so that extra carriage returns are
...
not inserted on win32 and OS/2. Test harness change only - no changes
to the core SQLite code. (CVS 5124)
FossilOrigin-Name: 68cbc6b45c98ebaeca74e1ff5acc3ff7e34f45e9
2008-05-12 16:17:42 +00:00
danielk1977
47cd39c9d2
Temporarily disable extended IO error code tests. (CVS 5123)
...
FossilOrigin-Name: f204df3c3161ebe4f2c581715d708d0f35635c08
2008-05-12 12:41:15 +00:00
drh
c3dbdeddb4
Fix typo in documentation of sqlite3_step(). Ticket #3110 . (CVS 5122)
...
FossilOrigin-Name: 4d397f57c4446b18c5c6faf728d315495e4abf6e
2008-05-12 12:39:55 +00:00
danielk1977
80daec6fcc
Make test function do_ioerr_test more robust. No code changes. (CVS 5121)
...
FossilOrigin-Name: f532692ec91b40fc002af925d2ab8382e3c3b2ca
2008-05-12 10:57:02 +00:00
danielk1977
27467047e9
Modify logging code in test_osinst.c. No changes to production code. (CVS 5120)
...
FossilOrigin-Name: 85c54a16c7aecea3e0e5040ee8aca06d8b6a2b2b
2008-05-12 07:42:20 +00:00
pweilbacher
f19dfc4e0a
Use short timeout for locking operations by default to be more in sync with the other platforms. (CVS 5119)
...
FossilOrigin-Name: d00a015dbcc5a7fc4aa7cb41f9740a712af510ae
2008-05-12 00:32:08 +00:00
pweilbacher
8d4fc83817
Correctly test DosWrite() for failure return code (CVS 5118)
...
FossilOrigin-Name: 3eff0ef2cfe70389bc80a270902702206be178f3
2008-05-12 00:29:41 +00:00
drh
0a66733a29
Use memcpy() instead of casting to copy the content of a long long int
...
into a double. Ticket #3101 . (CVS 5117)
FossilOrigin-Name: 88e12caca99d1d54cfe6228cb0de1eccc93fcc74
2008-05-11 17:22:01 +00:00
drh
a06f17fe2e
New test cases to verify that SQLite handles bound NaN, +Inf, and -Inf
...
floating point values correctly. Improvements to the text->real conversion
routine so that it generates +Inf and -Inf at appropriate times.
Tickets #3101 and #3060 . (CVS 5116)
FossilOrigin-Name: 3ff2f1cdc9c57bca56de6cdc0ad5edc95b0606a0
2008-05-11 11:07:06 +00:00
pweilbacher
d2dadc9647
Fix leaked filename in case DosOpen() fails. (CVS 5115)
...
FossilOrigin-Name: ecc6c739064922937ce66339f74403a0346aeedd
2008-05-09 19:38:24 +00:00
danielk1977
2bb5113ce6
Re-enable tests that were accidentally disabled by (5112). (CVS 5114)
...
FossilOrigin-Name: bf45a3ab7a295dcc399bdcf27965f1684b0a33b8
2008-05-09 18:03:27 +00:00
drh
0f050353e9
Reformulate the constants for the minimum and maximum 64-bit signed
...
integer to work better with some compilers. Ticket #3105 . (CVS 5113)
FossilOrigin-Name: 18b1ee10b89bd0a98d1986dbb04b9d6cfc3dad39
2008-05-09 18:03:13 +00:00
danielk1977
93f7af97a6
Fix a problem with recovering from an IO error in exclusive-locking mode. (CVS 5112)
...
FossilOrigin-Name: 7a44fb965b3477fb78901939ba35d569e5638c19
2008-05-09 16:57:50 +00:00
drh
7297d1f070
Do not clear the error code or error message in sqlite3_clear_bindings().
...
Ticket #3063 . (CVS 5111)
FossilOrigin-Name: 069f4560107246fdc31e1f15c3ad7d3dae2b9ad8
2008-05-09 14:39:44 +00:00
drh
7382945199
Fix the ALTER TABLE RENAME algorithm so that it is not confused
...
by comments in the CREATE TABLE statement. Ticket #3102 . (CVS 5110)
FossilOrigin-Name: ab18b4e75916b05863b31bc63625aa64a104a42c
2008-05-09 14:17:51 +00:00
drh
8a54f9f05c
Back out check-in (5108). The original isnan() implementation is preferred. Ticket #3101 and #3060 . (CVS 5109)
...
FossilOrigin-Name: 2349ae75dfdd626ed97db99ac6de4bdc5a395008
2008-05-09 13:47:58 +00:00
drh
47d22f6702
Change the implementation of sqlite3IsNaN() so that it works even if
...
compiled using -ffinite-math-only. Tickets #3101 and #3060 . (CVS 5108)
FossilOrigin-Name: 19ee2b3324461150d2c1600c67fe604114a1b69f
2008-05-09 03:07:33 +00:00
danielk1977
06fb0400f4
Fix recently introduced bug in tester.tcl. (CVS 5107)
...
FossilOrigin-Name: 4b573d4e7dd8c3417cfdebe7d2885de7bdc522db
2008-05-08 16:51:11 +00:00
danielk1977
374177eb39
Add extra instrumentation to test_osinst.c. Also the --binarylog option to the test scripts. (CVS 5106)
...
FossilOrigin-Name: 8a99efc07f93bc11d21aa501349c81f0fd8abf7b
2008-05-08 15:58:06 +00:00
drh
5284a05316
Use a 6-byte rather than an 8-byte encoding for integers between
...
17592186044416 and 140737488355327. Ticket #3100 . (CVS 5105)
FossilOrigin-Name: 0a4d26dede320d90a39133dce3d76ca3ee1a4ee6
2008-05-08 15:18:10 +00:00
drh
0e666272ff
Increment the version number. (CVS 5104)
...
FossilOrigin-Name: ed06d90d8c4ee70ea6e99359317ac7bc1dcc4828
2008-05-08 13:54:05 +00:00
drh
95ed6bc3e1
Fix the new ioerr4.test so that it plays well with others. (CVS 5103)
...
FossilOrigin-Name: 75df2d3d506abfa4aa4875fb533a5cd160b3f521
2008-05-08 01:11:42 +00:00
danielk1977
df2566a33d
Fix some problems with multi-file transactions in persistent journal mode. (CVS 5102)
...
FossilOrigin-Name: e98a7f87f91c62676f94ad5a0c4980ab929ca79d
2008-05-07 19:11:03 +00:00
shane
2ca8bc08dd
Added test cases for corrupt SerialTypeLen header values, and additional check to improve detection of corrupt values. (CVS 5101)
...
FossilOrigin-Name: 530c6360610f737e85608b23ede2646d69d1bc9a
2008-05-07 18:59:28 +00:00
danielk1977
ea142bb6e6
Modify the header comment in jrnlmode2.test. No code or test changes. (CVS 5100)
...
FossilOrigin-Name: ed728104c8e77a5526a2fcb62fea577940731d90
2008-05-07 15:44:25 +00:00
danielk1977
4acbba5bcc
Change the header comment in jrnlmode4.test. No changes to any code or tests. (CVS 5099)
...
FossilOrigin-Name: 0bf656a401b9fc16b33ecd49a6db9b769156494d
2008-05-07 15:42:24 +00:00
danielk1977
2a8ce735d1
If an error occurs within xAccess(), it should return -1. Remove an assert()
...
that was preventing it from doing so. (CVS 5098)
FossilOrigin-Name: 3fbcef46f7b6dcd20c1137692aa5bc0f64eaa3dd
2008-05-07 14:49:21 +00:00
drh
ef5a2e189f
Add a new I/O error test: ioerr4. (CVS 5097)
...
FossilOrigin-Name: c3ab1a7e2e40eb8f51f1b11bf0591e251d69882b
2008-05-07 13:28:38 +00:00
drh
6eac06e6e0
Fix a null-pointer dereference that can occur following a DISKFULL error
...
while running VACUUM. (CVS 5096)
FossilOrigin-Name: 438d77a762a6f3cc7438e4d688013cc26e3e9486
2008-05-07 12:45:41 +00:00
drh
64e2bb7610
Omit mutex variables in the pager when threadsafe is disabled. (CVS 5095)
...
FossilOrigin-Name: d15d0bbab043e4366f7988423115babb550198a1
2008-05-07 12:29:55 +00:00
danielk1977
0ba32df4f1
Fix a problem causing the database to be truncated to the wrong size after an incremental-vacuum is performed on a database in full auto-vacuum mode. (CVS 5094)
...
FossilOrigin-Name: ed98df24a3362c2d20f52bb1ce679787b3ee408b
2008-05-07 07:13:16 +00:00
mlcreech
1e12d43b48
Only look for config.h if the autoconf-based build is being used, and don't inline it into the amalgamation. (CVS 5093)
...
FossilOrigin-Name: 7df9ef2c8216133d50bf4737482f51193e8579b0
2008-05-07 02:42:01 +00:00
pweilbacher
ed66afb0f4
Fix most remaining testsuite failures on OS/2 by switching to exclusive locks that we meant to use from the start. (CVS 5092)
...
FossilOrigin-Name: 5f682c9a68853f33aac6a2ad3f91b1cdf17dcd73
2008-05-06 22:22:11 +00:00
pweilbacher
0e6cf0aa5d
The pathToDel element of the os2File structure should be in the local codepage instead of UTF-8 to make DosForceDelete() work. (CVS 5091)
...
FossilOrigin-Name: 76028b5e5d220e1d44667b2fef8bdfc580c913b0
2008-05-06 22:15:26 +00:00
pweilbacher
7c74f12615
Remove delOnClose flag from os2File structure, use pathToDel==NULL for the same check. (CVS 5090)
...
FossilOrigin-Name: 02e123bb9b3da81bc8ee8bab7a2c54bbaadc5123
2008-05-06 21:42:09 +00:00
danielk1977
06e11af9b7
Fix a bug whereby the database file was not always being extended to its original size when rolling back an incremental-vacuum operation. (CVS 5089)
...
FossilOrigin-Name: 4a1ae9d0320de1013a3b5f24ebdd25fe9fdab424
2008-05-06 18:13:26 +00:00
mlcreech
10b6c9ab37
Add defines for _FILE_OFFSET_BITS and _LARGE_FILES if needed for large file support.
...
Ticket #3094 . (CVS 5088)
FossilOrigin-Name: 729e2f06ba4030cc771fc876ddfd41866b8c0d93
2008-05-06 02:28:06 +00:00
mlcreech
636a995de9
Add AC_SYS_LARGEFILE to ensure large file support, update autotools-related files.
...
Ticket #3094 . (CVS 5087)
FossilOrigin-Name: 2b1e455c46a184311a3a2e83b4f9345d2e34f497
2008-05-05 22:52:56 +00:00
danielk1977
0259fbe881
Fix recently introduced test script error causing a failure in incrblob_err.test. (CVS 5086)
...
FossilOrigin-Name: 5e7c8ebd21915382280c146e7070481fa6a92eec
2008-05-05 17:14:53 +00:00
drh
65594045d0
Better error messages when trying to open a large file using a version
...
of SQLite that omits large file support. Tickets #3096 and #3094 . (CVS 5085)
FossilOrigin-Name: bdd89cd231745e6bd498b2751d7ff2cf6169b3eb
2008-05-05 16:56:34 +00:00
drh
4cea5baed6
Do not segfault in the CLI if sqlite3_open() fails to create a
...
database connection object. Ticket #3096 . (CVS 5084)
FossilOrigin-Name: 0bec7ebf41e9f52d3ef0449e27e3d631abfe948b
2008-05-05 16:27:24 +00:00
danielk1977
52b472aebf
If an IO error occurs while locking the database and checking the cache validity, unlock the database before returning. Ticket #3030 . (CVS 5083)
...
FossilOrigin-Name: 4ad1809192b616d1c12499825bcd0967dea76864
2008-05-05 16:23:55 +00:00
danielk1977
4abd5449e8
Avoid leaking page references after an IO error is encountered. (CVS 5082)
...
FossilOrigin-Name: 198c395b01140ef48b6913c00188ba7168bfb081
2008-05-05 15:26:50 +00:00
drh
344c38e340
Fix a couple of minor problems with transactions in virtual tables. (CVS 5081)
...
FossilOrigin-Name: 2275fc6ee06b17da5808cecfa5570ac6439eaf74
2008-05-05 13:23:04 +00:00
danielk1977
43e377af3f
Avoid leaking page references when database corruption is encountered. (CVS 5080)
...
FossilOrigin-Name: 270d47e8d0a20868879a95b66cb547e1e5b642d9
2008-05-05 12:09:32 +00:00
danielk1977
286d2f4a92
Fix to test code to build when ENABLE_IOTRACE is not defined. (CVS 5079)
...
FossilOrigin-Name: 8fa2bda4c594119cbbc489b9879c52b134a57711
2008-05-05 11:33:47 +00:00
drh
8a9c17f1d5
Make sure that when a connection is blocking on a RESERVED lock that it
...
continues after the lock is released. Ticket #3093 . (CVS 5078)
FossilOrigin-Name: 3dc334aa4a394e85858d2441225d64d73664b5b5
2008-05-02 14:23:54 +00:00
drh
8c23864c17
Add a test case for ticket #3093 . (CVS 5077)
...
FossilOrigin-Name: 288a7655c9a876abf53d92dc6599a9305399d562
2008-05-02 14:08:56 +00:00
drh
71c9cb74ae
Add another test case to verify that ticket #3092 has been fixed. (CVS 5076)
...
FossilOrigin-Name: 1906d2dadcd70053f55e2133af9f838e2d828fa7
2008-05-02 02:00:54 +00:00
drh
b7d636205b
Fix a problem with journal files being created unnecessarily when doing
...
an atomic write in exclusive access locking mode. Fix a test script problem. (CVS 5075)
FossilOrigin-Name: 70e708660fec0b6f6c41efc2e29f1d7ae6785b7e
2008-05-01 18:01:46 +00:00
drh
26e4a8b11d
Fix more compiler warnings. (CVS 5074)
...
FossilOrigin-Name: 59568844e774dbe89fd20bbc8f49a3665cc54717
2008-05-01 17:16:52 +00:00
drh
e265b08458
Fix harmless compiler warnings. (CVS 5073)
...
FossilOrigin-Name: 227a6f67c21c87a7cf98f84b9d57a6dc9da93ebb
2008-05-01 17:03:49 +00:00
shane
356574e97a
Test versions of getVarint functions. The updates essentially utilize loop unrolling and some shifting/anding tricks to minimize the number of logical operations required. (CVS 5072)
...
FossilOrigin-Name: 682dc24dbe82d0326377e27c5ff97db3499873b0
2008-05-01 02:47:03 +00:00
drh
4697988687
Add comment to speculate when setting journal_mode=OFF on VACUUM does not
...
help performance. No changes to code. (CVS 5071)
FossilOrigin-Name: 9c8b4babb2222a5e0c2ecf7a116b7df90084c81d
2008-04-30 16:38:23 +00:00
shane
0068b225ff
Improved option handling in speedtest8.c. Added -quiet and -priority options. Added reporting of total user and system time. (CVS 5070)
...
FossilOrigin-Name: aa59974ec15508d69c5b65ab89ec7bc32690018c
2008-04-30 15:55:33 +00:00
danielk1977
f96d8aebf3
Fix test for buffer overrun in unixGettempname(). Fix for #3091 . (CVS 5069)
...
FossilOrigin-Name: fc0ca647bd1c7c953bb0f3eb7d3471572fd18c34
2008-04-30 08:56:10 +00:00
drh
bf8a4341f1
Zero the per-pager temporary space allocation to avoid warnings from
...
valgrind. (CVS 5068)
FossilOrigin-Name: f854ae576ee0b223b86a1169178fc4399e8d08ce
2008-04-29 15:38:58 +00:00
drh
e509094bee
Fix a potential buffer overrun in sqlite3_mprintf() when a non-terminated
...
string is passed to a "%s" format with a precision specifying the number
of bytes to copy. (CVS 5067)
FossilOrigin-Name: 1f5b18419bb4e2552ac26593381e2eb866bb67fd
2008-04-29 15:22:27 +00:00
drh
2eaf93d34f
Always convert IEEE NaN into NULL. Ticket #3060 . Add test cases to verify
...
that this is happening. (CVS 5066)
FossilOrigin-Name: 9b07e59e510e2de39c2081653662fbc654ca6fbb
2008-04-29 00:15:20 +00:00
drh
7d133d8889
Allow SQLITE_MAX_COLUMN to be set to zero at compile-time in order to
...
disable the checks. Also SQLITE_MAX_EXPR_DEPTH. Ticket #3069 . (CVS 5065)
FossilOrigin-Name: e6f71abb22fb74e5910d817caec98fa44070fc5f
2008-04-28 20:35:48 +00:00
drh
cd3dd9d343
Add test cases to verify that multiple virtual tables can be updated
...
within a trigger and that xSync, xCommit, and xRollback are never called
except following xBegin or xCreate. Ticket #3083 . (CVS 5064)
FossilOrigin-Name: 76175199ac2fda57e616eb386ba0bad6aa9f74b4
2008-04-28 20:27:53 +00:00
drh
4f3dd1502e
Make sure that transactions are started on all virtual tables that
...
changes in a single statement, not just the first. Ticket #3083 .
Need to add test cases. (CVS 5063)
FossilOrigin-Name: 133b7ee50ea6012739ebe0e334374c5d9b1fcc7f
2008-04-28 18:46:43 +00:00
shane
952856ad3a
Modified Varint32 functions to disable code for single-byte handling as it is already handled by their respective macro forms. (CVS 5062)
...
FossilOrigin-Name: be10f5dda6e9c245c05b51840c173e83ece6b245
2008-04-28 17:41:30 +00:00
drh
82286fd237
Add tests to create and drop a virtual table during a recursive call from
...
an application-defined function. Ticket #3080 . (CVS 5061)
FossilOrigin-Name: d4d6eff353edd5680776436ab3406227b8c830b3
2008-04-28 17:12:10 +00:00
drh
0de3ae95d5
Change the implementation of the NaN recognition to be more cross-platform.
...
Ticket #3089 . (CVS 5060)
FossilOrigin-Name: 07fd9a8c6ca0876f7ec447ce65173957005dc75c
2008-04-28 16:55:26 +00:00
danielk1977
f51bf48b32
Fix a shared-cache mode problem triggered when sqlite3_open16() was used to open the second or subsequent connections to a utf-8 database. (CVS 5059)
...
FossilOrigin-Name: 20946bf6dd704416c41edd863103e85fc7ab4ef2
2008-04-28 16:19:35 +00:00
drh
394f07ef8c
Work around a NaN bug in some versions of Tcl. (CVS 5058)
...
FossilOrigin-Name: 7bf8213ce9f591f4c2ef6c1e19a17712e3bae9e3
2008-04-28 15:23:02 +00:00
drh
d65e530b7c
Changes to test scripts to accommodate different architectures and different
...
versions of Tcl. (CVS 5057)
FossilOrigin-Name: 8eb2c07c520c12c2cd4610596dbec451c8275e95
2008-04-28 13:02:57 +00:00
drh
06af763e30
Restore the #include of stdint.h removed in (5051). (CVS 5056)
...
FossilOrigin-Name: e96e8b9b4137c3ea239674683cf9fd8682851908
2008-04-28 12:54:15 +00:00
drh
460e290006
Delete requirement F12764 as it has never been implemented and the
...
same effect can be easily achieved by other means. Ticket #3085 . (CVS 5055)
FossilOrigin-Name: fadeed998e63c2fd94811b911cf263713c5fcdca
2008-04-27 22:48:04 +00:00
drh
e1b3e8064e
Fix the documentation to agree with long-standing behavior for the
...
sqlite3_bind_parameter_name() interface on an ?NNN parameter.
Ticket #2975 . (CVS 5054)
FossilOrigin-Name: df9991d5bbc6d90087f022c55b070c11dc510077
2008-04-27 22:29:01 +00:00
drh
a5808f31f0
Allow multiple occurrances of %include in lemon input files.
...
Ticket #3001 . (CVS 5053)
FossilOrigin-Name: f22fa11bde0b77cfc5ff438f2ec6ab95dc87c291
2008-04-27 22:19:44 +00:00
drh
7f7c257b6b
Fix the lemon parser generator so that it works again with the "error"
...
symbol. Ticket #3079 (CVS 5052)
FossilOrigin-Name: 20ed749266d099eb35f40ca479db8baa75186b60
2008-04-27 18:45:10 +00:00
drh
7209c697a1
Remove all references to sqlite3_intptr_t. (CVS 5051)
...
FossilOrigin-Name: 6a94d19747a05df2694d3720f76de3dab3836578
2008-04-27 18:40:11 +00:00
drh
59020f32cd
Use "(void)" function arguments in declarations instead of "()". Both are
...
legal but some pedantic compilers complain about the latter. Ticket #3086 . (CVS 5050)
FossilOrigin-Name: a4149ca317c2fd7ce87b8f23029c3f87a7f4c2e8
2008-04-26 13:39:46 +00:00
drh
82ed1e5b37
Clarify some comments. No changes to code. (CVS 5049)
...
FossilOrigin-Name: 7f80539225b17a62e4aa09e6d514e3e9e1b22c36
2008-04-25 12:25:42 +00:00
drh
05a3e474cb
Add test cases to prove that ticket #3082 has been fixed. (CVS 5048)
...
FossilOrigin-Name: 776e7024101dd2eeb29484a36c7e1ac751444ec8
2008-04-25 12:10:15 +00:00
drh
b287f4b646
Candidate fix for ticket #3082 . Test cases needed. (CVS 5047)
...
FossilOrigin-Name: f6313311ddfb1ee2d6660b9be99afe721a8a9aff
2008-04-25 00:08:38 +00:00
drh
ce3d5cf0c7
Remove two more unused files. (CVS 5046)
...
FossilOrigin-Name: a400faf51970b312e9d8c8b4fa099558cc620b69
2008-04-24 22:57:28 +00:00
shane
3f8d5cfcad
Consolidated varint macro usage from btreeInt.h, vdbe.c, and vdbeaux.c into sqliteInt.h and made their use consistent. Slight improvements to varint32 macros. (CVS 5045)
...
FossilOrigin-Name: 0d04ccd97841bbbda564cc6ae5da057ee3888fa3
2008-04-24 19:15:09 +00:00
danielk1977
9c9eb741be
Fix a problem with the test scripts caused by not cleaning up the global tcl namespace. (CVS 5044)
...
FossilOrigin-Name: 440492395854a0886ef954ef2ed638bf587c6f03
2008-04-24 12:38:28 +00:00
danielk1977
700b9c5a58
Fix an assert() failure that can occur if "journal_mode=off" is used in a build with the atomic-write optimization enabled. (CVS 5043)
...
FossilOrigin-Name: 709d17b19d343f45aa6c7684685ab58c67d83da0
2008-04-24 12:37:40 +00:00
danielk1977
d7eb2ed5cd
Fix a crash that can follow a malloc() failure in malloc7.test. (CVS 5042)
...
FossilOrigin-Name: 85eedad186327a1f0b0983413b833efd41640d0e
2008-04-24 12:36:35 +00:00
danielk1977
36961ed23f
Ensure that it is not possible to open either virtual table or view columns using the blob API. Ticket #3078 . (CVS 5041)
...
FossilOrigin-Name: 6039328fe05aaf9380d545e84dfabccb32a4d8ea
2008-04-24 09:49:55 +00:00
danielk1977
9eca081c13
Minor change to comment on sqlite3_blob_read(). No code changes. Ticket #3072 . (CVS 5040)
...
FossilOrigin-Name: adb4bc5a7dd56e625b20c48a7416f2b3480f4de1
2008-04-24 08:56:54 +00:00
danielk1977
ecc91f6868
Remove redundant assert() statement from vdbeaux.c. Ticket #3065 . (CVS 5039)
...
FossilOrigin-Name: 3cba1166076bf0506597e2d7686a271922817668
2008-04-24 08:36:51 +00:00
danielk1977
9a9b1564cf
Add version comment to vdbeaux.c. No code changes. Ticket #3066 . (CVS 5038)
...
FossilOrigin-Name: d667add44b87f9011b0ef10d45101dfc1e38feaa
2008-04-24 08:31:51 +00:00
pweilbacher
5ff1020dd8
We should better not pass open file handles to child processes, so add respective flag for DosOpen(). (CVS 5037)
...
FossilOrigin-Name: 1518e8542cebd977d46e720544bfad16d3f8895e
2008-04-23 23:03:10 +00:00
drh
a06ecba2f6
Always sync the journal file after zeroing out the header. (CVS 5036)
...
FossilOrigin-Name: 5896ae3d68d29dc172c027c72aa2a98ced2b7eb8
2008-04-22 17:15:17 +00:00
danielk1977
a664f8ebd0
Avoid non-contiguous writes when creating a journal header. (CVS 5035)
...
FossilOrigin-Name: dfacddbb5055b4e104bf536d5f5b35287fbbb904
2008-04-22 14:31:48 +00:00
drh
5cd6256950
Add some tests for journal_mode=off. Need to come up with a way of handling
...
rollback attempts when there is no journal. (CVS 5034)
FossilOrigin-Name: e29b870ed0db6360a95fb017f56c0b5388efb437
2008-04-19 20:53:26 +00:00
drh
16e45a4306
Continuing work on journal_mode. Journal_mode=persist now appears to be
...
working, though additional testing would be welcomed. (CVS 5033)
FossilOrigin-Name: 277e4099cee9105e1801a6d7f5d477f0d2efa858
2008-04-19 20:34:18 +00:00
drh
981642f389
Comment and variable-name cleanup in where.c. Add testcase() macros to
...
insure adequate test coverage of table-driven logic. (CVS 5032)
FossilOrigin-Name: adcef73b3925266a14a552cd9b06c14f22aaefc8
2008-04-19 14:40:43 +00:00
drh
1cceeb93ea
Fix a typo in the documentation on sqlite3_open_v2(). (CVS 5031)
...
FossilOrigin-Name: f7b62daa9fe71dc713bde107507fc7bcb812d62b
2008-04-19 14:06:28 +00:00
danielk1977
61dd58391f
Remove unused code from OP_IdxLt and OP_IdxGE. (CVS 5030)
...
FossilOrigin-Name: df02175ec0f28d57942b8275b540ff855dfbeb09
2008-04-18 11:31:12 +00:00
danielk1977
b790c6c596
Combine cases 3 and 4 in where.c, since case 4 is now a special case of case 3. (CVS 5029)
...
FossilOrigin-Name: 9a976819246eb558ba43429f8889972c4a4bce9d
2008-04-18 10:25:24 +00:00
danielk1977
751de567c1
Allow OP_MoveGt and similar to use an array of registers instead of a serialized record. Modify one type of index range scan to use this. (CVS 5028)
...
FossilOrigin-Name: c448f15aa5ed3dec511426775e893efea324faa1
2008-04-18 09:01:15 +00:00
drh
fdc40e9156
Continuing progress on the journal_mode pragma. It still does not work. (CVS 5027)
...
FossilOrigin-Name: 4a72a7bb9c5793cdaf4ee038482053e042d8db54
2008-04-17 20:59:37 +00:00
drh
dafc0ce818
Additional work on ticket #3015 . The previous fix (check-in (4919)) did
...
not appear to work in all cases and it disabled indexing in some places
where it should not have. New test cases added to help insure that the
current fix is better. (CVS 5026)
FossilOrigin-Name: 0d2e258e1a3276e55903ba2ded987f8d8a18cacd
2008-04-17 19:14:02 +00:00
drh
a95174bd2f
Fix a typo in the documentation for sqlite3_bind_text. Ticket #3056 . (CVS 5025)
...
FossilOrigin-Name: 79571e2c74fa365b7f471428c48e1678375b8c9d
2008-04-17 17:03:25 +00:00
drh
3b02013e73
Add the journal_mode pragma. This is currently just syntax - it is not
...
operational. (CVS 5024)
FossilOrigin-Name: 8eaa0c71023ac428f6f9f8091341584caa773ab9
2008-04-17 17:02:01 +00:00
drh
f3a87624a2
In exclusive locking mode, commit by zeroing the first 28 bytes of the
...
journal file, not by truncating the journal. Overwriting is much faster
than truncating. (CVS 5023)
FossilOrigin-Name: 8efb7f4ffbfc3ad901a3bb1b4ff9390b8c13760b
2008-04-17 14:16:42 +00:00
drh
f708cff4c1
Add the -overwrite option to speedtest8.c. (CVS 5022)
...
FossilOrigin-Name: 6765ea52b33270a323c620b060cffd4f59004db1
2008-04-16 23:50:23 +00:00
drh
0e0d73c120
Clear a global variable in the incrblob.test script. Ticket #3062 . (CVS 5021)
...
FossilOrigin-Name: 1c19854ae7790a8a1d5c9cfe8b2cb71e2c19ce50
2008-04-16 23:39:26 +00:00
drh
78ddb7ceed
Fix the bind.test test script so that the tests for zeros embedded in
...
strings work correctly for UTF-16 encoded databases. (CVS 5020)
FossilOrigin-Name: 7c094c80b2439480ffc680b2d63031d1033b266a
2008-04-16 16:11:49 +00:00
drh
f1c97f4637
Version 3.5.8 (CVS 5019)
...
FossilOrigin-Name: 6a2e3eb26af63386ce32594e24f1ce5605cd1068
2008-04-16 15:39:31 +00:00
drh
10dfbbb580
Add tests to verify that strings may use embedded zero characters.
...
Ticket #3056 . (CVS 5018)
FossilOrigin-Name: bb0f9e92e427d4ae8ea143d3d3773c9552e63565
2008-04-16 12:58:53 +00:00
drh
4c68e6d28a
Add speed-test scripts that also show EXPLAIN output. (CVS 5017)
...
FossilOrigin-Name: d11f5dafdaf7c18c43615d0ac018c7d221460244
2008-04-16 12:57:48 +00:00
drh
a0af99f91c
Make sure the database connection mutex is held before calling
...
sqlite3SafetyOn() or sqlite3SafetyOff(). Ticket #3059 . (CVS 5016)
FossilOrigin-Name: d35dea059e2cb936e4277f513f036b9b0bdfc4a5
2008-04-16 00:49:12 +00:00
drh
b08c2a72ea
Back out the zero-terminator optimization introduced in check-in (4915).
...
Ticket #3056 . (CVS 5015)
FossilOrigin-Name: cce8deae2d556916e2817e0cb9748dceb162085d
2008-04-16 00:28:13 +00:00
pweilbacher
d190be8539
Support UTF-8 filenames on OS/2 by converting them to and from the local codepage. Ticket 3052. (CVS 5014)
...
FossilOrigin-Name: cafa8ac2687890355a7faa751d71859eb0fadd01
2008-04-15 18:50:02 +00:00
drh
1d3a5ac998
Increment the version number. (CVS 5013)
...
FossilOrigin-Name: a12fa0252c1bc45a116d0123758ef639cc8e451b
2008-04-15 14:37:51 +00:00
drh
f93d99990c
Do not attempt to omit unused columns of a view in an instead-of trigger
...
since sometimes those columns can be used in ways that we do not expect.
Ticket #3055 . (CVS 5012)
FossilOrigin-Name: f5fc42e96d36b78797d7fa10b01d22b8501112b1
2008-04-15 14:36:42 +00:00
drh
191b54cb5d
Fix a code generator bug caused by the new CSE optimization. Add test cases
...
to prevent a recurrence. (CVS 5011)
FossilOrigin-Name: d04246a46399e839e70b1bd57e209f80143f0d5b
2008-04-15 12:14:21 +00:00
drh
5f3a367bf3
Fix a bug in the RTRIM collating sequence discovered while working
...
on condition/decision branch coverage. Increase test coverage of
the date/time functions. (CVS 5010)
FossilOrigin-Name: c5435f71efa0b34c759bac4a15fdf43abf39ddfc
2008-04-15 04:02:40 +00:00
drh
521cc8494e
Add out-of-range tests on the first parameter to sqlite3_limit().
...
Add the ability to record tests that have been skipped due to
configuration limitations. (CVS 5009)
FossilOrigin-Name: b7ffc6f0f33b14430ab84a6c60110bc07514f056
2008-04-15 02:36:33 +00:00
drh
110af53360
Add a test case to cover the bug fixed in check-in (5007). (CVS 5008)
...
FossilOrigin-Name: 1863e87c40499ee3d9fd9cba6670e9a0e946d390
2008-04-15 00:01:59 +00:00
drh
4c02a23557
Do not attempt to write to temporary database files that have never
...
been opened. (CVS 5007)
FossilOrigin-Name: 7bb9a4165afb96043dfeffad21eb51591a1fd2dd
2008-04-14 23:13:45 +00:00
mlcreech
57ee05248d
Fix #3053 : bashism (CVS 5006)
...
FossilOrigin-Name: 7217cecee71fbc992acd07b4ac90c1929e2207ae
2008-04-14 22:57:55 +00:00
danielk1977
30f72bf2c5
Fix alignment issue in instrumentation code. (CVS 5005)
...
FossilOrigin-Name: c9e0d625bcf3ff24229d7f011b4cfbd8d8140d16
2008-04-14 17:42:41 +00:00
danielk1977
a3e5218c6e
Do not set the pager to persistent error state if a call to OsAccess() fails. (CVS 5004)
...
FossilOrigin-Name: aa16eb572915632bfff88d544f9c428ca723346e
2008-04-14 16:37:10 +00:00
drh
1c9f50a277
Make sure the page size in crash6.test does not exceed the maximum
...
configured page size. (CVS 5003)
FossilOrigin-Name: 36b6610b25997074f398a2f2ddcdd6ace8c83fba
2008-04-14 15:27:19 +00:00
danielk1977
65710b151f
Free Mem.z buffers when a vdbe statement is reset. (CVS 5002)
...
FossilOrigin-Name: 0bedbe092aa3079dc49157a9bcaa7716b00e0bdb
2008-04-14 15:15:22 +00:00
drh
04924d89c7
Cleanup some #ifdefs to make their meaning clearly. No logical changes. (CVS 5001)
...
FossilOrigin-Name: b8bc5f3a83408375cfbff90e2c574fb8996dfbd9
2008-04-14 14:34:44 +00:00
drh
10b20ef148
Disable auto_vacuum during the vacuum3 test. (CVS 5000)
...
FossilOrigin-Name: e2e1ca818c5f77abdb423aebe34eea80b2fb84b2
2008-04-14 13:42:39 +00:00
drh
c5d0bd907b
Get the SQLITE_SECURE_DELETE compile-time option working again.
...
Ticket #3050 . (CVS 4999)
FossilOrigin-Name: 40ba51fd4c621e29e7ff85495b1212c92f06ab31
2008-04-14 01:00:57 +00:00
mlcreech
ede2627695
Fix build errors in test_osinst (CVS 4998)
...
FossilOrigin-Name: f047399799798e693ef75c472144f30a0175b662
2008-04-13 23:13:39 +00:00
danielk1977
2551caf381
Modify speedtest8.c so that it can use the logging from test_osinst.c when HAVE_OSINST is defined. (CVS 4997)
...
FossilOrigin-Name: 7622d74ad6088de4d94cb727b60ac4a042c52016
2008-04-12 16:03:37 +00:00
drh
8a29dfdea0
Remove all instances of sprintf() from the FTS modules. Ticket #3049 . (CVS 4996)
...
FossilOrigin-Name: 062bf5d44d53ae0ee2bf96eddcc8de09157aa789
2008-04-12 13:06:09 +00:00
danielk1977
0520dbbae3
Modify test_osinst.c so that it only uses public interfaces. (CVS 4995)
...
FossilOrigin-Name: 3866a5da2bdcfafe956e1a9bf117f3277207de05
2008-04-12 11:30:12 +00:00
danielk1977
70b9b04c7c
Add a logfile option to test_osinst.c. (CVS 4994)
...
FossilOrigin-Name: f97d89458259978b7b1b5c5e5a0d19cabcb9e536
2008-04-12 10:53:11 +00:00
drh
c2a721f73a
Add the speedtest8inst1.c program for running speed tests with an
...
instrumented VFS. (CVS 4993)
FossilOrigin-Name: baa8056c67c03ac78a1ed6da5a46fda793340739
2008-04-11 21:20:48 +00:00
drh
06fbb733b9
Faster implementation of hexToInt that uses not branches. Ticket #3047 . (CVS 4992)
...
FossilOrigin-Name: a70e9587569c99dd05e79c6745ff930aa31d763c
2008-04-11 19:37:55 +00:00
drh
3a200e0a44
Avoid the use of uninitialized variables in sqlite3GenerateRowIndexDelete.
...
Ticket #3048 . (CVS 4991)
FossilOrigin-Name: a93b7a344a713a9ed9d72be4707eb28c2979648c
2008-04-11 19:18:24 +00:00
danielk1977
1ea1b3f8b9
Remove a recently added assert() that is failing with certain compilers on 32-bit platforms. Ticket #3043 . (CVS 4990)
...
FossilOrigin-Name: 03c0279d7b004ccc4264143e366c793b4d774f9f
2008-04-11 17:15:46 +00:00
danielk1977
006015d8e5
Remove entries from the sqlite_stat1 table whenever an index is dropped. Related to #3033 . (CVS 4989)
...
FossilOrigin-Name: 349aab42c7896f04ecb6ca33f08a4c194051e837
2008-04-11 17:11:26 +00:00
drh
5c070538f1
Additional reductions in the use of memset(). (CVS 4988)
...
FossilOrigin-Name: 38746c54385e3cb456cda660ea50769b5424db30
2008-04-11 15:36:03 +00:00
drh
26c9b5eaba
Speed improvements by removing unnecessary memset() operations.
...
Also: do not resize the opcode array of a virtual machine to its
minimum size after code generation completes. The extra resize
merely uses time. (CVS 4987)
FossilOrigin-Name: 2589955507fc1717891c4e07d1d658eb41660b87
2008-04-11 14:56:53 +00:00
drh
80106e5c4b
Enhancements to the change counter tests. Ticket #3013 . (CVS 4986)
...
FossilOrigin-Name: 1aaed6a4694f60ebcec5dee98f09fe756c81dfa4
2008-04-10 18:44:36 +00:00
drh
665850fbef
Correctly handle virtual tables that are created and dropped all within
...
a single transaction. Ticket #2994 . (CVS 4985)
FossilOrigin-Name: 0acb1b428d1181f597a2a665cae3eef5775f15f1
2008-04-10 18:35:21 +00:00
danielk1977
1e21fd523b
Add the --ostrace and --ossummary options to tester.tcl. To log calls the vfs layer from within test scripts. (CVS 4984)
...
FossilOrigin-Name: e1322415d0ca2d6b45f35ef9257b37161ec043e2
2008-04-10 17:27:38 +00:00
drh
00e087b24b
Enhanced testing and documentation of sqlite3_result_error_code().
...
Ticket #2940 . (CVS 4983)
FossilOrigin-Name: 5be56dbe879f89351239accf5069e4cb166e0792
2008-04-10 17:14:07 +00:00
drh
e296582705
Disable nuisance warnings on borland compilers. ticket #2936 . (CVS 4982)
...
FossilOrigin-Name: 1e094ecfd7c6feaf8d524aa3c1477910b2328946
2008-04-10 16:47:41 +00:00
drh
19bba916f9
Make sure check-in (4976) also fixes ticket #2935 . (CVS 4981)
...
FossilOrigin-Name: e3f798b1cafc3458941cf86ac4f9d4269fdf5b7e
2008-04-10 16:42:58 +00:00
drh
de24478e78
Give file scope to the sqlite3Apis constant. Ticket #3024 . (CVS 4980)
...
FossilOrigin-Name: 30c5086068071385c13f02b3d33511127968335b
2008-04-10 16:01:10 +00:00
drh
4154c22345
Verify that a RAISE(ROLLBACK,...) works like RAISE(FAIL,...) when not
...
inside a transaction. Ticket #3035 . (CVS 4979)
FossilOrigin-Name: 87dc82d0436c6c3a9bd67544d52911012a5a7c66
2008-04-10 15:12:45 +00:00
drh
fab69597cc
Make sure all memory allocations are 8-byte aligned. Ticket #3040 .
...
Note that the mem3.c memory allocator returns 4-byte aligned memory
allocations. But as mem3.c is intended for use in 32-bit embedded
systems, we are not going to change that. (CVS 4978)
FossilOrigin-Name: d11e8e307af906db75ae7aede790464fabd06422
2008-04-10 14:57:24 +00:00
danielk1977
5d1f5aa6ef
Add source file test_osinst.c. A wrapper vfs with instrumentation capabilities. (CVS 4977)
...
FossilOrigin-Name: d9a6b653d3cb608610f13d2492fe9b3887acb3b9
2008-04-10 14:51:00 +00:00
drh
b5df14486d
Make sure changes to virtual tables are counted the same as real tables.
...
Ticket #3038 . (CVS 4976)
FossilOrigin-Name: 55591fc49c8ab8146c1f3eff733e637501bff627
2008-04-10 14:00:09 +00:00
drh
e5fb98af23
Fix to the "copy" method in the TCL interface. Ticket #3039 . (CVS 4975)
...
FossilOrigin-Name: 6f07968ec4c9d773a852ecc8343df416d17af2a4
2008-04-10 13:42:56 +00:00
drh
d9b97cf3ef
Document the fast that the result flag combinations to
...
sqlite3_open_v2() that are not defined in the documentation results
in undefined behavior. Ticket #3037 . (CVS 4974)
FossilOrigin-Name: b390e1f7f8d2b530a6765f2ab6804335c5550870
2008-04-10 13:38:17 +00:00
drh
08c88eb0d3
First cut at optimizing single-row updates to use a one-pass algorithm. (CVS 4973)
...
FossilOrigin-Name: fba97f7874d723111e873d1470fc1a95e64f922d
2008-04-10 13:33:18 +00:00
drh
67ade0a2d0
Add three new test cases to speed4p.test. Two of the three do single-row
...
updates based on rowid and on primary key. (CVS 4972)
FossilOrigin-Name: a2da7f9ac24ed17329ce9bde2e521a5b945e4ec2
2008-04-10 13:32:36 +00:00
drh
0e6ed0f040
Fix a bug in the speed4p.test performance testing script. (CVS 4971)
...
FossilOrigin-Name: 80311594149af093f1719ec433a633c332a5955e
2008-04-10 13:20:21 +00:00
mlcreech
4003298ba2
Replace always-true condition with assertion (CVS 4970)
...
FossilOrigin-Name: be7f3240c21c01509263005af2ccc3d7626fe729
2008-04-08 03:09:22 +00:00
mlcreech
1f045330c0
Add test case for empty VFS list (CVS 4969)
...
FossilOrigin-Name: 6797814ec59fe819424e8e7f77779a719ecd82d3
2008-04-08 03:07:54 +00:00
drh
35b5a33e24
Add the sqlite3PutVarint32 routine as an alternative to sqlite3PutVarint.
...
Gives 0.5% speed increase. (CVS 4968)
FossilOrigin-Name: b2517a7d8f7275943d44cc301f9d54fc8a4653e7
2008-04-05 18:41:42 +00:00
drh
335d29d208
Smaller and hopefully faster routine for converting blob literals into binary. (CVS 4967)
...
FossilOrigin-Name: 92d49499ee3371db64267c7e2ba72a5e12ea76f3
2008-04-04 15:12:21 +00:00
drh
1c22f2ddfb
Fix the output labels on the tests in malloc9. (CVS 4966)
...
FossilOrigin-Name: 9987a7b193095dc90a83666bdac5e23105909cba
2008-04-04 12:21:25 +00:00
drh
bd4d397ca9
Fix the TCL interface so that it does not use unpublished interfaces. (CVS 4965)
...
FossilOrigin-Name: 046a98a8c88be7389c1571a819ccf1907a3f7217
2008-04-04 12:21:08 +00:00
drh
d094db1c7b
Remove superfluous code from btree.c. (CVS 4964)
...
FossilOrigin-Name: 40173010706fb52ecd60197ce6e97d51a1899267
2008-04-03 21:46:57 +00:00
drh
4b1d66c1ec
Make sure the zTail return from sqlite3_prepare() is initialized even
...
if there is a malloc failure. (CVS 4963)
FossilOrigin-Name: 040cffe2727936ce9228666fce5b00db47493e7d
2008-04-03 21:42:21 +00:00
drh
75e99a4727
Fix to the previous check-in so that it works on a intel Mac. (CVS 4962)
...
FossilOrigin-Name: 1d67f41c885d052ab10a33892938a85b56882b3d
2008-04-03 20:09:06 +00:00
drh
d543a42248
Use an improved RDTSC access routine. (CVS 4961)
...
FossilOrigin-Name: b4eba9c533f6aac9dde4f2c9796fe02e25158a0f
2008-04-03 19:40:59 +00:00
drh
17afdd238f
Changes speedtest8 and speedtest16 so that the database file can be specified
...
on the command-line. Allows speed testing against a :memory: database. (CVS 4960)
FossilOrigin-Name: 64badc50531668de45d76a3dcd90db17e1fe1ab1
2008-04-03 17:57:24 +00:00
danielk1977
fb103a8488
Instead of calling sqlite3_exec() to evaluate "PRAGMA encoding = UTF16" in sqlite3_open16(), set the connection encoding flag directly. (CVS 4959)
...
FossilOrigin-Name: 33a12e737c343dbc452a25321a63456c1a8f7548
2008-04-03 16:28:24 +00:00
drh
7720d6448a
Add the speedtest8.c and speedtest16.c files to the tools subdirectory. (CVS 4958)
...
FossilOrigin-Name: b8d211a76fa56d812fc1758b58d65eef832494cb
2008-04-03 16:01:27 +00:00
danielk1977
3a2c8c8b73
Avoid an out-of-bounds read in sqlite3_prepare() and fix a case where the output variable *pzTail was being set incorrectly. Fix for #3027 . (CVS 4957)
...
FossilOrigin-Name: c287a7b29410be12cf88f886e8e2525a42aa9c03
2008-04-03 14:36:25 +00:00
danielk1977
ce98bba24b
Change the allocator in mem2.c (used when SQLITE_MEMDEBUG is defined) so that allocations are not rounded up to the nearest 4 byte boundary. Fix a couple of errors in malloc.test related to sqlite3OsAccess() returning -1. (CVS 4956)
...
FossilOrigin-Name: fd97f8762cb1e4653c932402940f74d7c0ebf71f
2008-04-03 10:13:01 +00:00
drh
41eb9e9986
Minor optimizations. (CVS 4955)
...
FossilOrigin-Name: e8529455803e0dab167f4faba5846fa1eafef741
2008-04-02 18:33:07 +00:00
drh
6a9ad3da22
Simplifications to the LockTable opcode. (CVS 4954)
...
FossilOrigin-Name: 66c5d715bbb732b0861a8a6f994cb4a8f259f2f8
2008-04-02 16:29:30 +00:00
mlcreech
6cc9c28920
Set flags = MEM_Null on allocation failure in sqlite3VdbeMemGrow (CVS 4953)
...
FossilOrigin-Name: 846f9739d3e288dc81e40f5bfab046bd80bb22b2
2008-04-02 04:23:32 +00:00
drh
47de955ea9
Avoid factoring single-instruction constants that end up getting replaced
...
by an SCopy instruction. (CVS 4952)
FossilOrigin-Name: e84ff57b6217afa84d60547dcc3a270b5e116818
2008-04-01 18:04:11 +00:00
drh
c5499bef4b
Add the testcase() macro. Additional CSE test coverage. (CVS 4951)
...
FossilOrigin-Name: 492490f9c86e52c7a706d9e1bf0ba216d5bb8aba
2008-04-01 15:06:33 +00:00
drh
b3843a82ea
Fix a problem with CASTs and the new CSE mechanism. (CVS 4950)
...
FossilOrigin-Name: e25939fb25ec8bde8500a672ca5be3cbb514ac3a
2008-04-01 12:24:11 +00:00
drh
da250ea599
Fix the CSE mechanism so that it takes into account column affinity
...
changes that might be imposed by comparison operators. (CVS 4949)
FossilOrigin-Name: 91cc646e2b0c1d62a1989405cc9384a2c22d98d0
2008-04-01 05:07:14 +00:00
drh
2f7794c111
More test cases and bug fixes with CSE. (CVS 4948)
...
FossilOrigin-Name: 7e8156129d6d240fe046bbc4ea269ebe1657e2a1
2008-04-01 03:27:39 +00:00
mlcreech
aac7b93ea4
Add a configure option for using gcov (makes things easier for versions of
...
GCC that fail to build otherwise) (CVS 4947)
FossilOrigin-Name: 7d1e79716246b0dd4a64d7c9575b2300e0f6123e
2008-04-01 02:45:22 +00:00
drh
652fbf55c5
Initial test cases and bug fixes in the CSE logic. (CVS 4946)
...
FossilOrigin-Name: e5aff09ac693946dc7ebb2f245b6434995b12155
2008-04-01 01:42:41 +00:00
drh
e1349cb0f0
Break up the implementation of OP_Move, OP_Copy, and OP_SCopy to reduce
...
the number of branch instructions. (CVS 4945)
FossilOrigin-Name: 53e533d3a764d1973c24bffaacc505ea4b61a2b9
2008-04-01 00:36:10 +00:00
drh
9e6675f73f
Add the veryquick.test script for a very fast overview test that omits
...
all i/o and malloc testing. (CVS 4944)
FossilOrigin-Name: f61df8daa89f07dad2a0ded00c326ef35dead257
2008-03-31 23:51:35 +00:00
drh
e55cbd7228
Avoid duplicate OP_Column opcodes by remembering prior results.
...
This is similar to CSE, but only applies to columns. (CVS 4943)
FossilOrigin-Name: c29ee0fed23dcdbd9dde6b1e42b603100ea2389c
2008-03-31 23:48:03 +00:00
drh
678ccce8b3
Factor constant subexpressions out of loops. (CVS 4942)
...
FossilOrigin-Name: 2126db39854c751aea6c95c67894ed9b9dfc0763
2008-03-31 18:19:54 +00:00
danielk1977
a686bfcfa5
In setQuotedToken(), only make a malloced copy if the argument contains one or more " characters. (CVS 4941)
...
FossilOrigin-Name: b266924b8975b69bdb9ab45cf462e41436f89cc2
2008-03-31 17:41:18 +00:00
mlcreech
fe3f4e8a4a
Minor cleanup: Use size_t for struct size cast (CVS 4940)
...
FossilOrigin-Name: 618df68b8b78d376d30cea79a273fd39140f5033
2008-03-29 23:25:27 +00:00
drh
f704c1d6cd
Set exclusive locking mode by default on the speed4p test. (CVS 4939)
...
FossilOrigin-Name: 2d9fea95335ab8f399868f63c51bee89ed7633fa
2008-03-29 17:26:01 +00:00
drh
a2c20e433b
Make the sqlite3BtreeMoveto routine a no-op if the cursor is already pointing
...
at the cell we are trying to move to. (CVS 4938)
FossilOrigin-Name: 9b567ab61e7542141b7bc9c3c053c2d1180da92d
2008-03-29 16:01:04 +00:00
rse
907b46ca16
add two missing initializer values (CVS 4937)
...
FossilOrigin-Name: bf28f1c260b3efbec3b031edb97ccb7b4b039947
2008-03-29 12:50:33 +00:00
rse
28f667fc22
eliminate compile-time warnings related to missing field initializations (CVS 4936)
...
FossilOrigin-Name: d6a34d983e2181f1d1763bd3821a1e63f1e18818
2008-03-29 12:47:27 +00:00
rse
867780aea2
add three missing initializers (CVS 4935)
...
FossilOrigin-Name: f45f0593cf5dd8c0172b13c300a4a9393540e0d7
2008-03-29 12:39:39 +00:00
drh
8359d8cb9d
Add the --pause option to the main test driver. (CVS 4934)
...
FossilOrigin-Name: 37dfcdf529378a8ef37ed8672e28339a7d9e9da6
2008-03-29 11:00:54 +00:00
danielk1977
473c35223e
Fix a problem with min() and descending indexes. (CVS 4933)
...
FossilOrigin-Name: 39705b617a775d4299e98ac88fab4525a64d8b78
2008-03-28 19:16:56 +00:00