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
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
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
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
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
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
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
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
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
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
danielk1977
44a376f6b4
Fix further warnings/compilation errors in test code. (CVS 5558)
...
FossilOrigin-Name: 42247b917ae5a5c0d81b934200810755d0040282
2008-08-12 15:04:58 +00:00
drh
7b37c5d818
Documentation updates and clarifications in sqlite.h.in. (CVS 5557)
...
FossilOrigin-Name: e3935502fdca486613c8116b6057bfdd37545e58
2008-08-12 14:51:29 +00:00
danielk1977
6e89162dd1
Fix warnings and a compilation error in test code. (CVS 5556)
...
FossilOrigin-Name: 80c129e63ec7dbed3de1e485dffea96fae40aa6d
2008-08-12 14:48:40 +00:00
shane
20698d5cbc
GCC attribute warning first appears in the 4.3.0 docs, so updated #if to specify at least that version. (CVS 5555)
...
FossilOrigin-Name: 46defad516bccb9921326bb4750251a3f7b5a869
2008-08-11 20:07:47 +00:00
drh
93f41e591b
Make the CLI more tolerant of malformed schemas by setting the
...
writable_schema pragma prior to running the ".dump" command. (CVS 5554)
FossilOrigin-Name: 860babd841a7744eb8ba0e4f325fc10b348ed78b
2008-08-11 19:12:34 +00:00
drh
c456e57af7
Do not allow indexing of any table whose name begins with "sqlite_".
...
Ticket #3284 . Improve handling of databases with malformed schemas -
just in case somebody has actually indexed a system table. (CVS 5553)
FossilOrigin-Name: 0e1d8d14a153483e65bd0246d23db2b823a122d1
2008-08-11 18:44:58 +00:00
drh
ec0a0c8c35
The GCC magic to warn about experimental interfaces does not work
...
on gcc version 4.1.0. Add #ifdefs to work around this. (CVS 5552)
FossilOrigin-Name: 90cae83169de980c6548ca6b57f4c65419e8eb13
2008-08-11 18:29:38 +00:00
shane
a79c3cc4ec
Added SQLITE_EXPERIMENTAL and SQLITE_DEPRECATED tags to APIs to take advantage of compiler warnings (with the necessary function attributes.) Ticket #3142 . (CVS 5551)
...
FossilOrigin-Name: 5f4b547aba56564cebfdd442d2171c1c8c2979ba
2008-08-11 17:27:01 +00:00
drh
812389666c
Disallow empty triggers. Ticket #3283 . This does not present a backwards
...
compatibility problem because prior to this change, an empty trigger would
segfault. (CVS 5550)
FossilOrigin-Name: 571adab9d2215fac6ed375257a070b8ffa9d9808
2008-08-11 14:26:35 +00:00
drh
bc10377a40
Move a variable initialization earlier to work around MS compiler complaints. (CVS 5549)
...
FossilOrigin-Name: 02232e71441efc75e0729423f635ce21809fe412
2008-08-08 18:06:25 +00:00
drh
e72e728b64
Back out part of (5546): Even though ON CONFLICT clauses on CHECK constraints
...
are no-ops, if a schema includes them, the database will be unreadable if
we do not at least parse and ignore the clause. (CVS 5548)
FossilOrigin-Name: efcaeb68f943daf135972ae045eff1ca157a7f22
2008-08-08 15:06:21 +00:00
drh
6382033cc5
Round lookaside buffer sizes in the right direction. Ticket #3277 . (CVS 5547)
...
FossilOrigin-Name: c1a9bf3863b7bcc69885e4637f18c6532075f982
2008-08-08 14:33:12 +00:00
drh
200a81dcb5
Disallow the ON CONFLICT clause on CHECK constraints. The syntax used to be
...
allowed but never worked, so this should not present compatibility problems.
Other internal grammar simplifications. (CVS 5546)
FossilOrigin-Name: 4cedc641ed39982ae8cbb9200aa1e2f37c878b73
2008-08-08 14:19:41 +00:00
drh
a33cb5f776
Improved clarity of presentation in the tokenizer. (CVS 5545)
...
FossilOrigin-Name: 732657c6a639bdf71a3341f6747d19298d442ddb
2008-08-07 13:05:34 +00:00
danielk1977
1857693df8
Fix compilation with SQLITE_OMIT_FOREIGN_KEY defined. Ticket #3273 . (CVS 5544)
...
FossilOrigin-Name: ce8cbeea51442ea963bcdf5ddc71f021fb996a37
2008-08-06 13:47:40 +00:00
danielk1977
eaed356dc2
Fix typo in comments in sqlite.h.in. Ticket #3271 . (CVS 5543)
...
FossilOrigin-Name: 18030631e82c70e0d4d6093cd43fb0c0fa6d53c8
2008-08-06 13:40:13 +00:00
drh
b36d88abd3
Remove a reference to snprintf() in test8.c. (CVS 5538)
...
FossilOrigin-Name: 32d32b743642c2f6d9e4f8845a9cd07e4f83f4cd
2008-08-05 21:36:06 +00:00