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
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
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
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
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
d72a841467
Additional test cases for loadable extensions. (CVS 5247)
...
FossilOrigin-Name: 9d73a68c305db673d393db118b6a41241683a670
2008-06-19 15:44:00 +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
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
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
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
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
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
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
drh
9e855dac4f
Adjust the error-message text in corrupt7.test. (CVS 5205)
...
FossilOrigin-Name: 4a77ff5b588f4c83959591c208a8b20224b75a66
2008-06-11 18:56:42 +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
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
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
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
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
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
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
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
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
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
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
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
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
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
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