drh
0444610098
Update the configuration script for version 3.6.15. (CVS 6759)
...
FossilOrigin-Name: 14df65dc04e1a944baf4fb7185a0df5a96059346
2009-06-15 00:04:06 +00:00
drh
eac74428c1
Detect database corruption and abort balance_nonroot() before the
...
corruption causes problems. (CVS 6758)
FossilOrigin-Name: 3448b39dcd580880a9326414e7e4952c4fbc313d
2009-06-14 12:47:11 +00:00
drh
c53eed1703
Change lemon so that it does not generate yytestcase() macros on destructor
...
cases since destructors are commonly unreachable in a reasonable grammar.
For the reduce-rule switch, gather all no-ops into the "default:" case. (CVS 6757)
FossilOrigin-Name: caebfe82cb1b1215a85ed48fe97360c5422c52e0
2009-06-12 17:46:19 +00:00
drh
7501301e8d
The previous check-in ((6755)) put in more yytestcase() macros than are
...
called for. This check-in addresses that problem. (CVS 6756)
FossilOrigin-Name: a5b182f93b9e57754c8b9507cf491a7bbf0fd127
2009-06-12 15:47:34 +00:00
drh
8a415d3743
The lemon parser generator now inserts yytestcase() macros on reduce action
...
and on each destructor, to verify that all have been executed. yytestcase()
is a no-op by default but can be set to something more useful inside
of %include. (CVS 6755)
FossilOrigin-Name: fe9c9177340a3dc372ffa1b851030d005e0c46db
2009-06-12 13:53:51 +00:00
drh
1441f3e083
In lemon: omit unused entries from the end of the yyFallback array. (CVS 6754)
...
FossilOrigin-Name: 9cfbe2ba68470a2850a7d7a64eb088f7b422a3e5
2009-06-12 12:50:50 +00:00
drh
994704d1cb
Enable the SQLITE_LIMIT_FUNCTION_ARG limiter. (CVS 6753)
...
FossilOrigin-Name: a17e3317176772446abdc8ebe6fb6f0d3b7ac018
2009-06-12 12:04:16 +00:00
drh
8be4f639d9
Remove a C++-ism from the code. Ticket #3912 . (CVS 6752)
...
FossilOrigin-Name: bc729bc3e6f6e3570103e646080eb119311b0fa7
2009-06-12 11:42:11 +00:00
drh
13d32d196e
An additional memory leak in the parser fixed. Ticket #3911 . (CVS 6751)
...
FossilOrigin-Name: 6197b492714e16396941ae6ba61f90f708d54728
2009-06-12 03:47:36 +00:00
drh
c3a8402a94
Make sure nested queries with USING clauses do not leak memory.
...
Preliminary fix for ticket #3911 . (CVS 6750)
FossilOrigin-Name: bd341a103c25395b1189d05edebfe4af8a943941
2009-06-12 03:27:26 +00:00
drh
d3ec02d38e
Modifications to the parser to eliminate unreachable code. (CVS 6749)
...
FossilOrigin-Name: 457e0b245b1833c0d297bc6f4ff9785e6a2cee02
2009-06-12 02:27:14 +00:00
drh
aed2460877
Honor the SQLITE_OPEN_READONLY flag even on a :memory: or temporary database,
...
even though such a database is pointless. Ticket #3908 . (CVS 6748)
FossilOrigin-Name: 73ba841ac1ed39fb09b3917bafe0ce349e88eb04
2009-06-11 17:32:45 +00:00
drh
2c1a0c568f
Add an ALWAYS() to a conditional in where.c. (CVS 6747)
...
FossilOrigin-Name: 1fdb3e1e9af0672072f133dde06594fea2ef13c5
2009-06-11 17:04:28 +00:00
drh
85d2bd22f1
Changes to reenable codec operation and to handle memory allocation
...
failures within a codec. (CVS 6746)
FossilOrigin-Name: 43a6ca98b1a6aff1f0f674ecabdc929efb314db7
2009-06-11 00:47:20 +00:00
drh
5901b571d4
Do not let the reverse_unordered_selects pragma force the use of an index that
...
would not otherwise be used. Ticket #3904 .
Also: remove an test which is always true. (CVS 6745)
FossilOrigin-Name: 78a391dca05dbe3ad1d8124b80b31bc2ce75778f
2009-06-10 19:33:28 +00:00
drh
85119c32ad
Remove a NEVER() that can sometimes occur on an OOM error. (CVS 6744)
...
FossilOrigin-Name: c27f23bbafd2e4fa453c8e3b83667ea8173183a7
2009-06-10 11:07:00 +00:00
danielk1977
e56b60ecb8
Minor tweak to balance_quick() to save a few instructions. (CVS 6743)
...
FossilOrigin-Name: 9ace995910c8b0b9e95dc20fd70be487199e37af
2009-06-10 09:11:06 +00:00
drh
6860da015f
Remove the actual checks that verify that memory pools (such as set up
...
using SQLITE_CONFIG_HEAP) are 8-byte aligned. But document that 8-byte
alignment is required. (CVS 6742)
FossilOrigin-Name: e9b55ccc8b6d4f21c9c8f8e7ba053475833fc833
2009-06-09 19:53:58 +00:00
shane
75ac1de0ad
Fix compiler warnings with MSVC build. (CVS 6741)
...
FossilOrigin-Name: 0bd84e7387802c58c820369ff27ef54adbdf2e96
2009-06-09 18:58:52 +00:00
shane
68c0273755
Avoid a false failure report in the test scripts caused by the vdbe stack "compression" script. (CVS 6740)
...
FossilOrigin-Name: 9d3329891c2227a1a3ded1c636ac615864010ca7
2009-06-09 18:14:18 +00:00
drh
39bf74a288
Require that the buffer specified by SQLITE_CONFIG_HEAP be 8-byte aligned. (CVS 6739)
...
FossilOrigin-Name: 18b78068cc94de51f081824c93f7b14c7c35726d
2009-06-09 18:02:10 +00:00
drh
19f81f6cdd
Changes to tokenize.c to facilitate full coverage testing. (CVS 6738)
...
FossilOrigin-Name: 5e8c48cff7e96e6030b796dba409844f4c758a60
2009-06-09 18:01:37 +00:00
danielk1977
b46d004548
Change savepoint4.test to limit database growth. Otherwise the test can take a very long time to run, depending on the prng. (CVS 6737)
...
FossilOrigin-Name: ed1d4f47ee9a2bcafdee92ee6bfcb2b0d1758f76
2009-06-09 15:25:33 +00:00
drh
9bb6697ac6
Modify mkkeywordhash.c so that it puts the original text of each token in
...
a comment beside the "testcase()" macros. (CVS 6736)
FossilOrigin-Name: a7d0817c176832a88788cc973c0aae8dcab57364
2009-06-09 14:27:41 +00:00
drh
3b2a3fa42e
Enable cell overflow checking in sqlite3BtreeInitPage() using the
...
compile-time option SQLITE_ENABLE_OVERSIZE_CELL_CHECK. Change the tests
so that they recognize different error messages depending on the setting
of this macro. (CVS 6735)
FossilOrigin-Name: 56bff6eb2fc5f0afbd96afc986671ec744bd40e1
2009-06-09 13:42:24 +00:00
danielk1977
80929b3de9
Avoid calling fillInCell() to create an internal node intkey cell from balance_nonroot(). A single putVarint() does the same thing more quickly. (CVS 6734)
...
FossilOrigin-Name: 2e5d42aeb40c3c6eea373a9ae3fbdf4e8087cd58
2009-06-09 11:34:10 +00:00
drh
f061be9c6f
Only do the cell overread checks in sqlite3BtreeInitPage if
...
SQLITE_OVERREAD_CHECK is defined at compile-time. (CVS 6733)
FossilOrigin-Name: 49f544ebae8dc3cf7cf6189536c56ebb7d258a86
2009-06-09 10:37:03 +00:00
danielk1977
6067a9bbfe
Do not clear the MemPage.nFree variable when insertCell() adds an overflow cell to a page. Not doing this means balance_quick() can avoid a call to sqlite3BtreeInitPage(). (CVS 6732)
...
FossilOrigin-Name: 8f1c1f61f7bc5270212725cf0a056872df983f49
2009-06-09 09:41:00 +00:00
drh
254993e2e5
Additional comments to clarify the operation of the LIKE optimizer in
...
where.c. (CVS 6731)
FossilOrigin-Name: cc9c12170c3f6f0f485977e47e7fbb75c50e82b1
2009-06-08 19:44:36 +00:00
drh
4e8be3bb5d
Clarification of the operation of the OR-term optimizer in where.c. (CVS 6730)
...
FossilOrigin-Name: 6b42dc3d04e98f91c203c277926ed6ead62a9270
2009-06-08 17:11:08 +00:00
danielk1977
a50d9aa784
Change the btree balance code so that it does not call balance_nonroot() recursively. (CVS 6729)
...
FossilOrigin-Name: 7863db904d6fc36417c923e3d135eb2c145b9013
2009-06-08 14:49:45 +00:00
drh
b054068d21
Increase the version number to 3.6.15 in preparation for the next release. (CVS 6728)
...
FossilOrigin-Name: 456ea541d67221a573b63e264c83f4448f2ed569
2009-06-08 12:52:47 +00:00
drh
c4ac22e905
Disable the LIKE optimization if the affinity of the LHS column is
...
not TEXT. Ticket #3901 . (CVS 6727)
FossilOrigin-Name: a255c645c46ae03b65f862858fe57e462076e1fc
2009-06-07 23:45:10 +00:00
drh
49008596ed
Update the error message on one of the corruption tests to account for the fact
...
that we are finding the corruption sooner. (CVS 6726)
FossilOrigin-Name: ba9848e7b89df1fb6bf6db2b9d66cd3ffce375df
2009-06-06 19:21:13 +00:00
danielk1977
08746af43b
Fix an error in the malloc.test test script causing a small buffer overread. (CVS 6725)
...
FossilOrigin-Name: 4d129bee696f3a537f7ea5501a387012fc08c27e
2009-06-06 16:08:22 +00:00
drh
125feffc89
Make sure the result of sqlite3VdbeGetOp() is not used as an array following
...
an OOM error, since after (6691) it might be a single-entry dummy opcode. (CVS 6724)
FossilOrigin-Name: 127b13981960a9690de09e8f9d0b38a4bd76015f
2009-06-06 15:17:27 +00:00
danielk1977
41f5b04ceb
When building in debug mode with gcc, force the nullMem variable in function columnMem() to be aligned to an 8-byte boundary. Otherwise an assert() statement may fail. (CVS 6723)
...
FossilOrigin-Name: 3fd6c72da599347af70897b30b86a4ba641d4cd9
2009-06-06 14:13:26 +00:00
drh
acfc72bea4
Detect when database corruption causes an attemp to set the pointer map
...
value for a pointer map page and report the corruption. (CVS 6722)
FossilOrigin-Name: 3ae4880bee3a0312c61cdd36f4fa50286cc2ef48
2009-06-05 18:44:15 +00:00
drh
dda70fe38e
Remove leftover "breakpoint" commands from test scripts. Also remove blank
...
lines at the end of scripts. (CVS 6721)
FossilOrigin-Name: 1fef16ec2b89981770cf44f606a420fbe031a7a4
2009-06-05 17:09:11 +00:00
drh
bfb19dc698
Do not cast an unsigned int into an int for comparison. (CVS 6720)
...
FossilOrigin-Name: 302ab855e62dfae8507800302dae479e0494b81a
2009-06-05 16:46:53 +00:00
drh
35cd643cc7
Take care that a corrupt variable-length integer does not cause 32-bit
...
integer overflow when parsing a record format, nor cause excessively large
memory allocations. (CVS 6719)
FossilOrigin-Name: 38b20327a80996c7044b88be32161ac4ac0ec3a9
2009-06-05 14:17:21 +00:00
drh
1662b5a6f9
Earlier detection of freelist corruption in the page allocation routines. (CVS 6718)
...
FossilOrigin-Name: e557c8e5846f9c4eaaeb3bd07614ac101bb0b3d0
2009-06-04 19:06:09 +00:00
drh
d46b6c23d3
Fix an assertion fault in balance_quick() that occurs when an interior
...
btree node has zero cells due to database corruption. Also update the
corrupt7.test result vectors for a couple of cases where the error report
on database corruption changed due to earlier detection. (CVS 6717)
FossilOrigin-Name: 1335e4440f5a3d24ce9ce187e0e23fc9b166ca98
2009-06-04 17:02:51 +00:00
drh
c85240dbf6
If the root page of a btree is empty and is also not a leaf page and the
...
page is not page 1, then report database corruption. (CVS 6716)
FossilOrigin-Name: 52b02ca5f3e5fdf2f3e02e9d8e016028d0842818
2009-06-04 16:14:33 +00:00
danielk1977
6f235cc5de
Reduce the stack usage of balance_quick(). (CVS 6715)
...
FossilOrigin-Name: e7ad68e93b19b59cb16205c4b48fd9d6492dbb02
2009-06-04 14:46:08 +00:00
shane
e71169ba30
Minor updates to comments in test scripts. (CVS 6714)
...
FossilOrigin-Name: 453ff88f73a01a54ff464563effdb63014b1972c
2009-06-04 02:47:03 +00:00
shane
bbc795fdaf
Minor tweak to test script to ensure every byte in file touched at least once. (CVS 6713)
...
FossilOrigin-Name: bc6c2d894b711361808a19b673803186d3a28369
2009-06-04 02:46:19 +00:00
drh
c5e47ac238
Fix two instances where a malformed header in a database file (in other words
...
a corrupt database file) can lead to an assertion fault. (CVS 6712)
FossilOrigin-Name: 4e92c7f20afa51849128aa1d784ab885b517a73d
2009-06-04 00:11:56 +00:00
drh
69e931e7bb
Change the pcache1.c implementation so that the "header" occurs at the end
...
of page buffer, not at the beginning. This insures that the 20 bytes
immediately following the page buffer are mapped if a read of the page
buffer overruns due to a malformed cell. (CVS 6711)
FossilOrigin-Name: c54de1f54080de7e134d7b562498abb5337a0a46
2009-06-03 21:04:35 +00:00
danielk1977
93c829c110
Add corruptD.test, a container for testing the "cell overflow" problem. Also shuffle a small amount of code in BtreeInitPage() to check that the page header pointer to the start of the cell offset array is set to a sane value. (CVS 6710)
...
FossilOrigin-Name: 7fa5d3cb0fa05f7d901bcc139c2c037ce5944caa
2009-06-03 17:26:17 +00:00