danielk1977
81fa193a66
Avoid using (clock seconds) in thread003.test. It is not available if testfixture is linked to tcl 8.5. (CVS 5634)
...
FossilOrigin-Name: b606263d0868aed267bcec623b9fe4d142099145
2008-08-28 13:55:10 +00:00
danielk1977
3725c3ffa2
Use ckfree() instead of sqlite3_free() to free an allocation made by ckalloc() in test_thread.c (test code only). (CVS 5633)
...
FossilOrigin-Name: 677ac144c8f7e2722fdf05da1431919d6a8bb45f
2008-08-28 13:15:49 +00:00
danielk1977
29e2d6a5e6
Fix mutex related bug in pcache.c to do with handling IO errors. (CVS 5632)
...
FossilOrigin-Name: 5e304fed275137f98be56f475504422d1f5113a4
2008-08-28 11:12:09 +00:00
danielk1977
f599a1994c
Enable the disabled asserts added by (5629). Add extra tests to thread003.test. And the required modifications to pcache.c. (CVS 5631)
...
FossilOrigin-Name: 473c09fac22ed2f56ea86150a60b9f0f2263c889
2008-08-28 10:21:16 +00:00
danielk1977
51d2d03636
Fix a threads/mutex problem in pcache.c. (CVS 5630)
...
FossilOrigin-Name: 1928f15b78eee0fbf0a8ecdbbdd38dbbde2942b8
2008-08-28 08:31:48 +00:00
drh
a85f7e36e8
Miscellaneous cleanup in the new pcache code. (CVS 5629)
...
FossilOrigin-Name: da1777259f53c2e20c7ced06bf6f2a550f0ea0fc
2008-08-28 02:26:07 +00:00
danielk1977
59633aeec2
If any error occurs during sqlite3_open(), move the database handle into "sick" state. When in the sick state the user can use sqlite3_errcode() and sqlite3_errmsg(), but not much else. (CVS 5628)
...
FossilOrigin-Name: ce9c74eaab459ddde213c828e821940f5d6cb354
2008-08-27 19:01:57 +00:00
drh
255538e947
Add the trans2.test script designed to stress statement rollback and
...
no-write optimizations on large transactions with a small cache. (CVS 5627)
FossilOrigin-Name: 39c34e2238c27b2a2f4f0b896126ccbd299114c5
2008-08-27 18:56:36 +00:00
drh
c13148ffc0
Do not mark pages as clean when doing a statement journal rollback. (CVS 5626)
...
FossilOrigin-Name: 9d7722f4f357b96c37f950024f1e7e160e2c1252
2008-08-27 18:03:20 +00:00
danielk1977
468c82bc50
Modifications to malloc5.test to account for the fact that sqlite3_release_memory() no longer reclaims dirty pages. (CVS 5625)
...
FossilOrigin-Name: b01c65b065c62e3dd71e88866a953668b5e2f25f
2008-08-27 16:38:56 +00:00
drh
8af6906348
Clear the $result variable prior to using it in corrupt2.test. (CVS 5624)
...
FossilOrigin-Name: 12f2d24f88e55d170dd7750e7904ff14e84e820e
2008-08-27 16:14:20 +00:00
drh
65aa957a88
In the test logic: load the md5sum() SQL function as a separate
...
autoloaded extension. (CVS 5623)
FossilOrigin-Name: d4438251dd66c4168e09eb421a8c2081228357dd
2008-08-27 15:21:33 +00:00
danielk1977
a1fa00d95f
Use a bitvec object to store the set of pages with the 'always-rollback' property for a transaction. (CVS 5622)
...
FossilOrigin-Name: 9e9325997e11a0368721ed7860f4c37de3502a9b
2008-08-27 15:16:33 +00:00
drh
e5767a33e5
Remove obsolete file: md5.c. This file had been removed years ago. It is
...
unclear how it got back into the repository. (CVS 5621)
FossilOrigin-Name: 45fc70bd9264d5bcd72c97017079ced4aac7729f
2008-08-27 13:31:09 +00:00
danielk1977
4abdfa45db
Remove unreachable branches from pcache.c. (CVS 5620)
...
FossilOrigin-Name: 7de32498b349e046c5c886de255bbdefd6a7e8f7
2008-08-27 09:44:39 +00:00
drh
426c854102
Fix an issue with the permutation test script. (CVS 5619)
...
FossilOrigin-Name: 2e12aa3e078c0da9e418ff1f25a08f05cd03c07d
2008-08-26 23:08:04 +00:00
drh
1f1549f8f3
In the TCL interface, disable the authorizer when during a BEGIN, COMMIT,
...
or ROLLBACK associated with the transaction method. Ticket #3336 . (CVS 5618)
FossilOrigin-Name: 7e1032ab0031ba535f37b6338a3ac81cb1449d76
2008-08-26 21:33:34 +00:00
drh
7426f864ae
All the page_size pragma to change the page size on a new :memory: database,
...
but not a vacuumed :memory: database. Ticket #3335 (CVS 5617)
FossilOrigin-Name: 226a9056783247679fcf442e10807a1f2707f463
2008-08-26 21:07:26 +00:00
danielk1977
29f55ae1e4
Disable some very expensive asserts in pcache.c that are too slow for all.test. (CVS 5616)
...
FossilOrigin-Name: 555dad900fad874099556d44c464ea9f64687ca0
2008-08-26 19:07:59 +00:00
danielk1977
d491e1bfd1
Simplify the pcache module by only recycling clean pages from 'other' caches. This commit causes errors in test files ioerr5.test and malloc5.test because they test recycling dirty pages from other caches. (CVS 5615)
...
FossilOrigin-Name: 9e511e161bcb077450d31fca5dd20c2557f103b3
2008-08-26 18:05:48 +00:00
drh
1a4e3162d9
Implement a "counter" SQL function that can be used to insert a sequence
...
number each row of a result set. Currently in the test harness only, but
a candidate to move into the core. (CVS 5614)
FossilOrigin-Name: c84d46c71233bbf869513f433b1d18cbd7f2a35e
2008-08-26 14:42:14 +00:00
drh
229cf702f0
Do not flatten subqueries where the subquery has a LIMIT and the outer
...
query has a WHERE clause. Ticket #3334 . (CVS 5613)
FossilOrigin-Name: 4995a1d1c9530be9ce647d338169620cd95a72eb
2008-08-26 12:56:14 +00:00
drh
c178ba88a4
Add the SQLITE_OPEN_FULLMUTEX definition to sqlite3.h. It currently is not
...
valid for anything. This is merely to reserve the number. (CVS 5612)
FossilOrigin-Name: 3b6ffb4492b6c43897692c49dcccbfb55963a46c
2008-08-25 21:23:01 +00:00
drh
df81a25abe
Fix obscure permutation test problems. (CVS 5611)
...
FossilOrigin-Name: aa92a1bec3d6bbcc59680ba13fed51ada9249d4c
2008-08-25 19:09:01 +00:00
drh
0a846f96ef
Fix bug in the premutation testing that was causing many permutations from
...
begin skipped. There are now 16 errors reported by the permutation test. (CVS 5610)
FossilOrigin-Name: 4ad096bda1fc5c7b66f71ff5b32a4085c9a40574
2008-08-25 17:23:29 +00:00
danielk1977
502b74309a
Pick up a small performance increase by eliminating the pcacheRef() function. (CVS 5609)
...
FossilOrigin-Name: e3840fbf0adf824941a4b9b3cac3a869f195d6f8
2008-08-25 14:49:42 +00:00
drh
f436620e3f
Additional coverage testing in the new name resolver module. (CVS 5608)
...
FossilOrigin-Name: 0d61960afd35721d6d07acd75288c20d2cd6fda1
2008-08-25 12:14:08 +00:00
drh
4d9f9e64c9
Two if statements should be asserts. GCC was silently ignoring them,
...
hence the problem did not show up in coverage testing.
Ticket #3333 . (CVS 5607)
FossilOrigin-Name: 635933b1cae6c43656260555089952e2925c3292
2008-08-25 12:08:22 +00:00
danielk1977
daca5433a0
Fix a segfault that can occur when running integrity_check on a corrupt db. (CVS 5606)
...
FossilOrigin-Name: eae959ede1b2b50190c60de9249cf141c3031ce2
2008-08-25 11:57:16 +00:00
danielk1977
8c20014a0a
If the sector size is greater than the database page size, SQLite journals all pages that lie within a sector before writing to any of them. This change ensure that a journal sync does not occur halfway through journalling the set of pages that belong to a single sector. (CVS 5605)
...
FossilOrigin-Name: 16f612d61e00938f29ecae4ebfe598be7a8709a8
2008-08-25 07:12:28 +00:00
danielk1977
33e3216a3d
Instead of marking a page as clean when sqlite3PagerDontWrite() is called, set a dedictated flag - PGHDR_DONT_WRITE. (CVS 5604)
...
FossilOrigin-Name: a323bd29a600abddbcc2cc9961ab84d82cccc5e5
2008-08-23 18:53:08 +00:00
danielk1977
06249db141
Do not incorrectly detect corruption when an auto-vacuum database is converted to a non-auto-vacuum database within a vacuum. Ticket #3332 . (CVS 5603)
...
FossilOrigin-Name: cb869946d68f2abbd1322fababbe4aa74a4e08aa
2008-08-23 16:17:55 +00:00
aswift
f54b1b341b
quieting compiler warning about pointer/int conversion size mismatch (CVS 5602)
...
FossilOrigin-Name: f8a70501c234545b3030144ac6bcbfaa0d2b0069
2008-08-22 18:41:37 +00:00
drh
ee76c61657
Remove dead code. (CVS 5601)
...
FossilOrigin-Name: 6de9c084fc533fbb22af6a4cd3e4e9a461b13876
2008-08-22 17:34:45 +00:00
pweilbacher
87a03282b1
add legacy.lo back (in alphabetical order) (CVS 5600)
...
FossilOrigin-Name: a861aa73c4913c468315e6b5c5a2706150082280
2008-08-22 17:28:45 +00:00
danielk1977
ed2781e3c8
Relinquish the pcache mutex before calling an xStress callback. This ensures that the pcache mutex is never held while IO is performed. (CVS 5599)
...
FossilOrigin-Name: 8fe234b2ca1292955162d38922a45c93004fb6ae
2008-08-22 17:09:49 +00:00
drh
9d8b3072ce
Enhanced test coverage. (CVS 5598)
...
FossilOrigin-Name: cc36b4e016a1f519ca81d591de3a551ee8aa6813
2008-08-22 16:29:51 +00:00
danielk1977
a858aa2e8c
When recycling a page, try to find one that does not require a call to xSync() on the journal file. Also simplify some of the mutex related things in pcache. (CVS 5597)
...
FossilOrigin-Name: 93dbc5427bebaa0b3d726731027caad3f70611c7
2008-08-22 16:22:17 +00:00
drh
709b8cb434
Make sure the function context is fully initialized before invoking the
...
function finalizer. Ticket #3326 . (CVS 5596)
FossilOrigin-Name: 8496f4a00a7e62006956e58f3d50c6c4de5347e4
2008-08-22 14:41:00 +00:00
drh
9bc467267b
Remove unused variable from printf.c. Ticket #3331 . (CVS 5595)
...
FossilOrigin-Name: 7fd11f4ad8774e68f0a053eb2e1dd962a024da48
2008-08-22 14:08:35 +00:00
pweilbacher
dac8e249af
remove OS/2 compiler flags that aren't really necessary (CVS 5594)
...
FossilOrigin-Name: b688c68c3d70dc69adc2d1a08ddcf5899a115646
2008-08-22 13:58:55 +00:00
pweilbacher
e7c8a5c75d
fix some tests to take the right branch on OS/2 (hope I got the Tcl syntax right) (CVS 5593)
...
FossilOrigin-Name: 10e62d4700c99faf07140a8204d3cd81481206ac
2008-08-22 13:57:39 +00:00
pweilbacher
7fc76d8c5a
Hide (for non-debugging builds) and remove DELETEONCLOSE files on OS/2, following the Windows example. Ticket #3328 . (CVS 5592)
...
FossilOrigin-Name: 8aaa77000fb86fe512405a0ad40cb08678a12198
2008-08-22 13:47:56 +00:00
drh
281b21daa6
Fix nuisance compiler warnings. Ticket #3309 . (CVS 5591)
...
FossilOrigin-Name: 2a365e29944f9fd45ca2903875a8c2e2759c9492
2008-08-22 12:57:08 +00:00
drh
f388dc19e6
Add test case to verify that Ticket #3301 was fixed by (5569) (CVS 5590)
...
FossilOrigin-Name: 73b260686264a31f43211efb235e4e0121115a50
2008-08-22 12:46:45 +00:00
drh
2a5d825ea2
Allow the WHERE clause in an UPDATE or DELETE against a view with an
...
INSTEAD OF trigger to refer to the view by name. Ticket #3298 . (CVS 5589)
FossilOrigin-Name: 7360e5d1f37ed6672f336b625b3c90d060e0a020
2008-08-22 12:30:52 +00:00
drh
f489c45a63
Fix os_unix.c so that it will compile on Linux again. (CVS 5588)
...
FossilOrigin-Name: 2416708208357304904e38b2d36081a1adf5e44b
2008-08-22 00:47:53 +00:00
aswift
831045dd33
Deferring file descriptor closing to avoid trashing locks when directly manipulating sqlite db file contents (causes errors on AFP testing) (CVS 5587)
...
FossilOrigin-Name: e28a2870b49509502529892ff8ddb9fcf3a27173
2008-08-22 00:25:52 +00:00
aswift
5b1a256663
Added SQLITE_IOERR_LOCK extended error code and support for detecting and returning errors in the os_unix lock, unlock and check reserved lock variants, also added support for populating and returning system error codes so that they can be accessed via xGetLastError, unfortunately xGetLastError can't seem to access the unixFile structure where the lastErrno is recorded. (CVS 5586)
...
FossilOrigin-Name: c1af14e2b6bf5af0aff3df3adbe8cb9aabe1c4a3
2008-08-22 00:22:35 +00:00
drh
777c5386c3
Move date+time functions to start-time initialization. Additional
...
start-time function cleanup. (CVS 5585)
FossilOrigin-Name: 80d6a31cb3851704c09ac9d99fe4bc241df3c180
2008-08-21 20:21:34 +00:00