Commit Graph

5534 Commits

Author SHA1 Message Date
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
drh
cb6d50e100 Remove references to OP_MoveTo in comments of vdbe.c - that opcode no
longer exists.  Ticket #3327. (CVS 5584)

FossilOrigin-Name: 30077ece459b515338723ca0dab11c18b9f09d21
2008-08-21 19:28:30 +00:00
drh
70a8ca3c1e Initialize the global built-in function table at start-time
instead of at compile-time.  This is less prone to malfunction when
compile-time parameters very. (CVS 5583)

FossilOrigin-Name: ef6936e50adb9ebea39c890167403fff01bbb5ed
2008-08-21 18:49:27 +00:00
danielk1977
801880f66c Fix soft-heap-limit related test suite failures. (CVS 5582)
FossilOrigin-Name: 2091d9a5260b1d7e27ff5ca93e60dae1e3b12081
2008-08-21 15:54:01 +00:00
drh
e0ae6978a1 Increase the version number in preparation for the next release. (CVS 5581)
FossilOrigin-Name: d68dad73d0a85c6213a96982d0366c790871b693
2008-08-21 15:13:43 +00:00
drh
f0209f7410 Make sure "rowid" columns in views are named correctly. Ticket #3308. (CVS 5580)
FossilOrigin-Name: 8593218c7c8016fbdbcc223db951751eaba9c0dd
2008-08-21 14:54:28 +00:00
drh
74073b6da8 Add test cases to verify that ticket #3314 has been fixed. (CVS 5579)
FossilOrigin-Name: b46267ff07f9b967bb7aee16b6d9dd8d0bd23f0c
2008-08-21 14:24:29 +00:00
drh
6a012f04d5 Reinsert an SCopy operation that was removed in (5523) because coverage
testing indicated that it was dead code.  Ticket #3324 shows that the
code was not as dead as we thought it was. (CVS 5578)

FossilOrigin-Name: 6855711595b58d4b6fbaf9480720b788904d0e2d
2008-08-21 14:15:59 +00:00
drh
69556698e0 Patch to mkfunction to try and detect miscompiles. Add an unimportant
assert back to pcache.c. (CVS 5577)

FossilOrigin-Name: a2f375fffb49b6f6adbfd59d24e9c6a170fd5ebb
2008-08-21 12:32:11 +00:00
danielk1977
67e3da7ad4 Fix the functionality associated with sqlite3_release_memory() and sqlite3_soft_heap_limit(). It is automatically disabled if the SQLITE_CONFIG_PAGECACHE option is used. (CVS 5576)
FossilOrigin-Name: d025866b09352b32a6d35b97144eaad2fafb7165
2008-08-21 12:19:44 +00:00
danielk1977
0d3c5d3239 Move an assert() in sqlite3PcacheDirtyPage() so that it does not occur before local variable declarations. Ticket #3325. (CVS 5575)
FossilOrigin-Name: 899fa19d1ab9c40a2ffc1c5170476292d0509e33
2008-08-21 04:41:01 +00:00
danielk1977
3084952a6d Remove leftover PGHDR_TO_DATA macro from pager.c. Ticket #3323. (CVS 5574)
FossilOrigin-Name: 5e9559c0490b9e0395e1da4d36bd33942350978c
2008-08-21 04:35:18 +00:00
drh
23f79d061f Modify the sqlite3VdbeUnpackRecord() interface to force the temporary
space to be 8-byte aligned.  This might be important for Sparc.
Ticket #3318. (CVS 5573)

FossilOrigin-Name: 00b177985ee08f13a7781d095936da3beaf0408c
2008-08-20 22:06:47 +00:00
drh
41d3027ce8 Comment and function naming tweaks to pcache. No functionality changes. (CVS 5572)
FossilOrigin-Name: 4b0e67d397236c740bea88ad3a5912abe896322a
2008-08-20 21:47:45 +00:00
drh
7a4dde7165 Modify the lemon parser template to avoid using zero-initialized constants
when compiled with C++.  Ticket #3288. (CVS 5571)

FossilOrigin-Name: 71992f4a3723418df5f16093aec92f1f95f0b604
2008-08-20 17:48:21 +00:00
danielk1977
2da91a33cc Fix a problem in Makefile.in causing the static function hash-table to be constructed incorrectly (segfault). (CVS 5570)
FossilOrigin-Name: aef5b909e960c31527c795bc09a1de846f8afcbb
2008-08-20 17:19:09 +00:00
drh
7d10d5a6e1 Refactor the name resolution procedures in the code generator. (CVS 5569)
FossilOrigin-Name: daf730d1defa78fb8b80a78f9108ac35a13e09f6
2008-08-20 16:35:10 +00:00
danielk1977
260d8a6aec When a "pragma main.table_info(...)" is issued, consider only tables from the main database, not the temp db. Ticket #3320. (CVS 5568)
FossilOrigin-Name: d0cfbbbaeef7b8ce9f73c6cd58888989a2df5b1f
2008-08-20 16:34:24 +00:00
danielk1977
7b7e23bf65 Fix typo in main.c: SQLITE_MAX_ATTACH -> SQLITE_MAX_ATTACHED. Ticket #3319. (CVS 5567)
FossilOrigin-Name: 66ff55efd688703fe99143e4c17e8d5f119d0690
2008-08-20 16:21:12 +00:00
danielk1977
8c0a791a58 Add the pcache module from the experimental branch. Also change things so that most of the built-in SQL functions are kept in single static hash-table, rather than creating and populating a separate hash table for each open database connection. (CVS 5566)
FossilOrigin-Name: cb494e10d71852024647aaa254203579ad438ea9
2008-08-20 14:49:23 +00:00
drh
2b300d5d6f Do not flatten the right term of a LEFT join. Ticket #3300. (CVS 5565)
FossilOrigin-Name: 8947c72f93d0b79c8061a3bfd5ab595edfb155a5
2008-08-14 00:19:48 +00:00
drh
87cf137735 Explicit casts of the return from strlen() to int in lemon. This has
no effect on SQLite.  It has no effect on any lemon-generated parser
with a grammar that is less than 2GB in size.  Ticket #3293. (CVS 5564)

FossilOrigin-Name: a519cdb2f46fffe16e666f161479a22463616cb3
2008-08-13 20:09:06 +00:00
drh
639efd0451 Fix token destructors in lemon generated parsers. Does not effect SQLite.
Ticket #3299. (CVS 5563)

FossilOrigin-Name: 4887e8fc4af9e2963b3eff3187dee5b0d6297eb5
2008-08-13 20:04:29 +00:00
drh
e63d999189 Additional changes toward fixing ticket #3292. (CVS 5562)
FossilOrigin-Name: 0b92cbf5255020d4fde382f81590ff0488936667
2008-08-13 19:11:48 +00:00
drh
ec1fc80ca3 A partial fix for ticket #3292. This fixes the original problem but there
are other similar problems lurking in the code still. (CVS 5561)

FossilOrigin-Name: 055f173ab1b6fb657bf817faa3a37335d8fa60d5
2008-08-13 14:07:40 +00:00
drh
ec444fc163 Make sure the lookaside test script saturates the lookaside buffer even
when SQLITE_DEBUG is off.  Ticket #3289 (CVS 5560)

FossilOrigin-Name: d6aacc5dc7c06f97fb5faa3d85a8f2d8ab0dd554
2008-08-12 15:48:25 +00:00
drh
93ed56d9ea Revise the initialization and shutdown logic so that it no longer keeps
a recursive mutex allocated for the whole interval but instead releases
the mutex as soon as possible.  Do not reset status values upon initialization. (CVS 5559)

FossilOrigin-Name: 697fe7a3167c22a3232ce154e9d47cf75af613c4
2008-08-12 15:21:11 +00:00