]>
git.ipfire.org Git - thirdparty/sqlite.git/log
drh [Fri, 19 Jun 2009 22:23:41 +0000 (22:23 +0000)]
Do now allow a COMMIT to occur while even a single write operating is
in progress. (CVS 6790)
FossilOrigin-Name:
605520ec04061e389226fbec59f7aedf674b3c4e
drh [Fri, 19 Jun 2009 18:32:54 +0000 (18:32 +0000)]
Fix the comment on the sqlite3PExpr() subroutine. Ticket #3924. (CVS 6789)
FossilOrigin-Name:
4bb96db6b4d2cfa71430a2646c1082a494e3519f
danielk1977 [Fri, 19 Jun 2009 17:50:01 +0000 (17:50 +0000)]
If a call is made to sqlite3PagerAcquire when there are no outstanding references to any pages and the pager is in the error-state, try to exit the error-state at this point. Previously this was only attempted if the pager was configured to use exclusive mode. (CVS 6788)
FossilOrigin-Name:
62db08bc0de936e4a418ae583a3bdbbf33d7787e
drh [Fri, 19 Jun 2009 16:44:41 +0000 (16:44 +0000)]
Make sure group_concat() ignores initial NULL values. (CVS 6787)
FossilOrigin-Name:
90c3b23ccac8a9e7fc1cc831e43888e4e43badc9
drh [Fri, 19 Jun 2009 14:06:03 +0000 (14:06 +0000)]
Reorganize and cleanup the prepared statement object. Remove code that has
been commented out for ages and is no longer relevant to anything. (CVS 6786)
FossilOrigin-Name:
37ae5f5e8feb34a8e6e8b34aa18df1e9a1ce55cb
drh [Fri, 19 Jun 2009 02:25:48 +0000 (02:25 +0000)]
Fix a possible segfault when backing up an encrypted database. (CVS 6785)
FossilOrigin-Name:
7d8f178c8145b90da31f6557f7cd99d154eb676e
drh [Fri, 19 Jun 2009 00:33:31 +0000 (00:33 +0000)]
Make sure the sqlite3VdbeGetOp() subroutine works even when SQLite is
compiled with SQLITE_OMIT_TRACE. (CVS 6784)
FossilOrigin-Name:
1c8ec2a6e4efbb3fdc58f999b7b725fa5dc4d0e9
drh [Thu, 18 Jun 2009 20:52:47 +0000 (20:52 +0000)]
Changes to the backup functionality so that it works better with codecs. (CVS 6783)
FossilOrigin-Name:
87d6796d986e4d5238252e704d936ab4407a0265
drh [Thu, 18 Jun 2009 17:22:39 +0000 (17:22 +0000)]
Move codec management from database connections into the pager so that it
will work together with shared cache. (CVS 6782)
FossilOrigin-Name:
ed08b53cd64c4ff2c94ef4e48441c5236041c9ca
drh [Thu, 18 Jun 2009 11:34:42 +0000 (11:34 +0000)]
Update the filefmt.test test script to conform to the previous check-in. (CVS 6781)
FossilOrigin-Name:
40a40e81b3ad80114422d6a48146e5fb27e2551d
drh [Thu, 18 Jun 2009 11:29:20 +0000 (11:29 +0000)]
Reduce the minimum usable page space to 480 byte from 500 bytes. (CVS 6780)
FossilOrigin-Name:
db4fb835363c9c7e38c891e01188a6e2db88472d
drh [Thu, 18 Jun 2009 00:41:55 +0000 (00:41 +0000)]
Remove the P3 operand from OP_IsNull since it was not being used. (CVS 6779)
FossilOrigin-Name:
767ef1e4a1b31abef479368d9f960ecfd6fa08c6
drh [Wed, 17 Jun 2009 22:50:41 +0000 (22:50 +0000)]
Avoid an assertion fault if an out-of-memory error occurs while trying
to run the string-concatentation operator on a zero-blob. (This is an
absurd thing to do, but even so, we still should not fault.) (CVS 6778)
FossilOrigin-Name:
0def0b76b9f4de9ee259ab1cbe71051fd58b73be
drh [Wed, 17 Jun 2009 21:42:33 +0000 (21:42 +0000)]
Fix a problem in vdbe.c that could cause a double-free of memory if the
SQLITE_LIMIT_LENGTH is changed after a statement is prepared but before
it is run. Also remove debugging statements from tkt3841.test. (CVS 6777)
FossilOrigin-Name:
3d7327fd6af983d5ce9bc9a2ba869b23c44cc8e6
drh [Wed, 17 Jun 2009 16:20:04 +0000 (16:20 +0000)]
Use caution to avoid integer overflow when doing real to integer affinity
operations. Ticket #3922. (CVS 6776)
FossilOrigin-Name:
392559465d499f491907ef7f42d37a1a6c699511
drh [Wed, 17 Jun 2009 13:57:16 +0000 (13:57 +0000)]
Fix a potential segfault following database corruption. Problem
made visible by check-in (6772). (CVS 6775)
FossilOrigin-Name:
69eb0ff817cff6266c53b79047bcff5e5d54b618
drh [Wed, 17 Jun 2009 13:09:38 +0000 (13:09 +0000)]
Suppress some -Wextra compiler warnings from GCC. (CVS 6774)
FossilOrigin-Name:
59ec937ce226bbf6c48c5e0466d3bab48873c9ea
danielk1977 [Wed, 17 Jun 2009 11:49:52 +0000 (11:49 +0000)]
Fix a bug affecting secure-delete mode introduced by (6768). (CVS 6773)
FossilOrigin-Name:
a433ca821c134caeac0fa16416eb95c647416b95
danielk1977 [Wed, 17 Jun 2009 11:13:28 +0000 (11:13 +0000)]
Fix for #3918. Also, fix the TRACE macros in balance_nonroot(). (CVS 6772)
FossilOrigin-Name:
368e44ec2e648b04f3b817f82586ccd864e60c89
drh [Wed, 17 Jun 2009 01:17:13 +0000 (01:17 +0000)]
A minor simplification to the tokenizer. (CVS 6771)
FossilOrigin-Name:
18f2076ac21dd0ab343a79461837f5591f9d4d87
drh [Wed, 17 Jun 2009 00:35:30 +0000 (00:35 +0000)]
Changes to prepare.c and callback.c to promote better test coverage. (CVS 6770)
FossilOrigin-Name:
08cca219f16efab93cb00f04d2e2f8033893e5f1
drh [Tue, 16 Jun 2009 17:49:36 +0000 (17:49 +0000)]
Changes sqlite3_prepare_v2() (and related routines) so that if it fails due
to a missing table and the schema is out of date, it retries once before
returning SQLITE_SCHEMA. Other changes to prepare.c to facilitate coverage
testing. (CVS 6769)
FossilOrigin-Name:
256ec3c6af41c2324db82e4deb54edbba5b581e8
danielk1977 [Tue, 16 Jun 2009 16:50:22 +0000 (16:50 +0000)]
Changes to balance_nonroot() and BtreeDelete() to simplify delete operations and reduce stack/heap usage while balancing b-tree structures. (CVS 6768)
FossilOrigin-Name:
092b276e7d89bbfa3d8637a90ee5d458935a12a9
shane [Tue, 16 Jun 2009 14:15:22 +0000 (14:15 +0000)]
Fix a link error and warning that can occur in where.c when compiling under MSVC with SQLITE_OMIT_VIRTUALTABLE defined. Ticket #3914. (CVS 6767)
FossilOrigin-Name:
793c93be16af535e102dba147125384f6814cf5f
danielk1977 [Tue, 16 Jun 2009 04:35:39 +0000 (04:35 +0000)]
Leave out a redundant line in build.c. Ticket #3916. (CVS 6766)
FossilOrigin-Name:
d9f997aeb7a2195d0e16fe1555626918902b4f91
danielk1977 [Tue, 16 Jun 2009 04:31:49 +0000 (04:31 +0000)]
Remove a duplicate assert from btree.c. Ticket #3915. (CVS 6765)
FossilOrigin-Name:
d89542cd8b2efaea7c6be6cd7787d183c55ae36a
drh [Mon, 15 Jun 2009 23:15:59 +0000 (23:15 +0000)]
Additional updates to the symbol resolver and expression tree walker to
facilitate test coverage. (CVS 6764)
FossilOrigin-Name:
a49c2d4befcc33dd98543fe7b4d4f0bae56f1a90
drh [Mon, 15 Jun 2009 20:45:34 +0000 (20:45 +0000)]
Changes to allow a clean compile with no floating-point instructions
generated when SQLITE_OMIT_FLOATING_POINT is used. (CVS 6763)
FossilOrigin-Name:
1591b8322babebc45df3b799cc5e457288f28594
drh [Mon, 15 Jun 2009 18:32:36 +0000 (18:32 +0000)]
Updates to resolve.c to facilitate full coverage testing. (CVS 6762)
FossilOrigin-Name:
c50f0f28df1dfdccf1d159c983b616cd9b823955
shane [Mon, 15 Jun 2009 16:27:08 +0000 (16:27 +0000)]
Fix compiler warnings with MSVC build. (CVS 6761)
FossilOrigin-Name:
e1e6430752449a34671b6c89326b03ac36ea6d9a
drh [Mon, 15 Jun 2009 03:28:57 +0000 (03:28 +0000)]
Version 3.6.15 (CVS 6760)
FossilOrigin-Name:
aff34826aa4667d24f0dbc8bea828dc0f84d2108
drh [Mon, 15 Jun 2009 00:04:06 +0000 (00:04 +0000)]
Update the configuration script for version 3.6.15. (CVS 6759)
FossilOrigin-Name:
14df65dc04e1a944baf4fb7185a0df5a96059346
drh [Sun, 14 Jun 2009 12:47:11 +0000 (12:47 +0000)]
Detect database corruption and abort balance_nonroot() before the
corruption causes problems. (CVS 6758)
FossilOrigin-Name:
3448b39dcd580880a9326414e7e4952c4fbc313d
drh [Fri, 12 Jun 2009 17:46:19 +0000 (17:46 +0000)]
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
drh [Fri, 12 Jun 2009 15:47:34 +0000 (15:47 +0000)]
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
drh [Fri, 12 Jun 2009 13:53:51 +0000 (13:53 +0000)]
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
drh [Fri, 12 Jun 2009 12:50:50 +0000 (12:50 +0000)]
In lemon: omit unused entries from the end of the yyFallback array. (CVS 6754)
FossilOrigin-Name:
9cfbe2ba68470a2850a7d7a64eb088f7b422a3e5
drh [Fri, 12 Jun 2009 12:04:16 +0000 (12:04 +0000)]
Enable the SQLITE_LIMIT_FUNCTION_ARG limiter. (CVS 6753)
FossilOrigin-Name:
a17e3317176772446abdc8ebe6fb6f0d3b7ac018
drh [Fri, 12 Jun 2009 11:42:11 +0000 (11:42 +0000)]
Remove a C++-ism from the code. Ticket #3912. (CVS 6752)
FossilOrigin-Name:
bc729bc3e6f6e3570103e646080eb119311b0fa7
drh [Fri, 12 Jun 2009 03:47:36 +0000 (03:47 +0000)]
An additional memory leak in the parser fixed. Ticket #3911. (CVS 6751)
FossilOrigin-Name:
6197b492714e16396941ae6ba61f90f708d54728
drh [Fri, 12 Jun 2009 03:27:26 +0000 (03:27 +0000)]
Make sure nested queries with USING clauses do not leak memory.
Preliminary fix for ticket #3911. (CVS 6750)
FossilOrigin-Name:
bd341a103c25395b1189d05edebfe4af8a943941
drh [Fri, 12 Jun 2009 02:27:14 +0000 (02:27 +0000)]
Modifications to the parser to eliminate unreachable code. (CVS 6749)
FossilOrigin-Name:
457e0b245b1833c0d297bc6f4ff9785e6a2cee02
drh [Thu, 11 Jun 2009 17:32:45 +0000 (17:32 +0000)]
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
drh [Thu, 11 Jun 2009 17:04:28 +0000 (17:04 +0000)]
Add an ALWAYS() to a conditional in where.c. (CVS 6747)
FossilOrigin-Name:
1fdb3e1e9af0672072f133dde06594fea2ef13c5
drh [Thu, 11 Jun 2009 00:47:20 +0000 (00:47 +0000)]
Changes to reenable codec operation and to handle memory allocation
failures within a codec. (CVS 6746)
FossilOrigin-Name:
43a6ca98b1a6aff1f0f674ecabdc929efb314db7
drh [Wed, 10 Jun 2009 19:33:28 +0000 (19:33 +0000)]
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
drh [Wed, 10 Jun 2009 11:07:00 +0000 (11:07 +0000)]
Remove a NEVER() that can sometimes occur on an OOM error. (CVS 6744)
FossilOrigin-Name:
c27f23bbafd2e4fa453c8e3b83667ea8173183a7
danielk1977 [Wed, 10 Jun 2009 09:11:06 +0000 (09:11 +0000)]
Minor tweak to balance_quick() to save a few instructions. (CVS 6743)
FossilOrigin-Name:
9ace995910c8b0b9e95dc20fd70be487199e37af
drh [Tue, 9 Jun 2009 19:53:58 +0000 (19:53 +0000)]
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
shane [Tue, 9 Jun 2009 18:58:52 +0000 (18:58 +0000)]
Fix compiler warnings with MSVC build. (CVS 6741)
FossilOrigin-Name:
0bd84e7387802c58c820369ff27ef54adbdf2e96
shane [Tue, 9 Jun 2009 18:14:18 +0000 (18:14 +0000)]
Avoid a false failure report in the test scripts caused by the vdbe stack "compression" script. (CVS 6740)
FossilOrigin-Name:
9d3329891c2227a1a3ded1c636ac615864010ca7
drh [Tue, 9 Jun 2009 18:02:10 +0000 (18:02 +0000)]
Require that the buffer specified by SQLITE_CONFIG_HEAP be 8-byte aligned. (CVS 6739)
FossilOrigin-Name:
18b78068cc94de51f081824c93f7b14c7c35726d
drh [Tue, 9 Jun 2009 18:01:37 +0000 (18:01 +0000)]
Changes to tokenize.c to facilitate full coverage testing. (CVS 6738)
FossilOrigin-Name:
5e8c48cff7e96e6030b796dba409844f4c758a60
danielk1977 [Tue, 9 Jun 2009 15:25:33 +0000 (15:25 +0000)]
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
drh [Tue, 9 Jun 2009 14:27:41 +0000 (14:27 +0000)]
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
drh [Tue, 9 Jun 2009 13:42:24 +0000 (13:42 +0000)]
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
danielk1977 [Tue, 9 Jun 2009 11:34:10 +0000 (11:34 +0000)]
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
drh [Tue, 9 Jun 2009 10:37:03 +0000 (10:37 +0000)]
Only do the cell overread checks in sqlite3BtreeInitPage if
SQLITE_OVERREAD_CHECK is defined at compile-time. (CVS 6733)
FossilOrigin-Name:
49f544ebae8dc3cf7cf6189536c56ebb7d258a86
danielk1977 [Tue, 9 Jun 2009 09:41:00 +0000 (09:41 +0000)]
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
drh [Mon, 8 Jun 2009 19:44:36 +0000 (19:44 +0000)]
Additional comments to clarify the operation of the LIKE optimizer in
where.c. (CVS 6731)
FossilOrigin-Name:
cc9c12170c3f6f0f485977e47e7fbb75c50e82b1
drh [Mon, 8 Jun 2009 17:11:08 +0000 (17:11 +0000)]
Clarification of the operation of the OR-term optimizer in where.c. (CVS 6730)
FossilOrigin-Name:
6b42dc3d04e98f91c203c277926ed6ead62a9270
danielk1977 [Mon, 8 Jun 2009 14:49:45 +0000 (14:49 +0000)]
Change the btree balance code so that it does not call balance_nonroot() recursively. (CVS 6729)
FossilOrigin-Name:
7863db904d6fc36417c923e3d135eb2c145b9013
drh [Mon, 8 Jun 2009 12:52:47 +0000 (12:52 +0000)]
Increase the version number to 3.6.15 in preparation for the next release. (CVS 6728)
FossilOrigin-Name:
456ea541d67221a573b63e264c83f4448f2ed569
drh [Sun, 7 Jun 2009 23:45:10 +0000 (23:45 +0000)]
Disable the LIKE optimization if the affinity of the LHS column is
not TEXT. Ticket #3901. (CVS 6727)
FossilOrigin-Name:
a255c645c46ae03b65f862858fe57e462076e1fc
drh [Sat, 6 Jun 2009 19:21:13 +0000 (19:21 +0000)]
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
danielk1977 [Sat, 6 Jun 2009 16:08:22 +0000 (16:08 +0000)]
Fix an error in the malloc.test test script causing a small buffer overread. (CVS 6725)
FossilOrigin-Name:
4d129bee696f3a537f7ea5501a387012fc08c27e
drh [Sat, 6 Jun 2009 15:17:27 +0000 (15:17 +0000)]
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
danielk1977 [Sat, 6 Jun 2009 14:13:26 +0000 (14:13 +0000)]
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
drh [Fri, 5 Jun 2009 18:44:15 +0000 (18:44 +0000)]
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
drh [Fri, 5 Jun 2009 17:09:11 +0000 (17:09 +0000)]
Remove leftover "breakpoint" commands from test scripts. Also remove blank
lines at the end of scripts. (CVS 6721)
FossilOrigin-Name:
1fef16ec2b89981770cf44f606a420fbe031a7a4
drh [Fri, 5 Jun 2009 16:46:53 +0000 (16:46 +0000)]
Do not cast an unsigned int into an int for comparison. (CVS 6720)
FossilOrigin-Name:
302ab855e62dfae8507800302dae479e0494b81a
drh [Fri, 5 Jun 2009 14:17:21 +0000 (14:17 +0000)]
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
drh [Thu, 4 Jun 2009 19:06:09 +0000 (19:06 +0000)]
Earlier detection of freelist corruption in the page allocation routines. (CVS 6718)
FossilOrigin-Name:
e557c8e5846f9c4eaaeb3bd07614ac101bb0b3d0
drh [Thu, 4 Jun 2009 17:02:51 +0000 (17:02 +0000)]
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
drh [Thu, 4 Jun 2009 16:14:33 +0000 (16:14 +0000)]
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
danielk1977 [Thu, 4 Jun 2009 14:46:08 +0000 (14:46 +0000)]
Reduce the stack usage of balance_quick(). (CVS 6715)
FossilOrigin-Name:
e7ad68e93b19b59cb16205c4b48fd9d6492dbb02
shane [Thu, 4 Jun 2009 02:47:03 +0000 (02:47 +0000)]
Minor updates to comments in test scripts. (CVS 6714)
FossilOrigin-Name:
453ff88f73a01a54ff464563effdb63014b1972c
shane [Thu, 4 Jun 2009 02:46:19 +0000 (02:46 +0000)]
Minor tweak to test script to ensure every byte in file touched at least once. (CVS 6713)
FossilOrigin-Name:
bc6c2d894b711361808a19b673803186d3a28369
drh [Thu, 4 Jun 2009 00:11:56 +0000 (00:11 +0000)]
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
drh [Wed, 3 Jun 2009 21:04:35 +0000 (21:04 +0000)]
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
danielk1977 [Wed, 3 Jun 2009 17:26:17 +0000 (17:26 +0000)]
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
danielk1977 [Wed, 3 Jun 2009 11:25:07 +0000 (11:25 +0000)]
Define a set of constants to use as the "index" argument to sqlite3BtreeGetMeta and UpdateMeta. This makes some parts of the code easier to follow. (CVS 6709)
FossilOrigin-Name:
6dbf4eca00f845baa7200aba421d0bc158ba96aa
drh [Wed, 3 Jun 2009 01:24:54 +0000 (01:24 +0000)]
Additional changes to reduce stack usage. The SQLITE_SMALL_STACK compile-time
option is now available. (CVS 6708)
FossilOrigin-Name:
baea79fd0cfeb860973846c3f2776776c87f0ae3
drh [Tue, 2 Jun 2009 21:31:38 +0000 (21:31 +0000)]
Further reductions in the amount of stack space required. (CVS 6707)
FossilOrigin-Name:
04bad9eb6dd8bf7cafc9f3918b676e95d5b1c984
drh [Tue, 2 Jun 2009 16:06:03 +0000 (16:06 +0000)]
Tweaks to vdbe.c to further reduce stack space requirements. (CVS 6706)
FossilOrigin-Name:
6f2aab3f7be12710b703eda22b1d5c0e8f85f814
drh [Tue, 2 Jun 2009 15:47:37 +0000 (15:47 +0000)]
Add a test case for ticket #3893 and ticket #3894. (CVS 6705)
FossilOrigin-Name:
2472f6db95cd537a908bdbbbbc41bad2bd987b2f
drh [Tue, 2 Jun 2009 15:21:42 +0000 (15:21 +0000)]
Add the vdbe-compress.tcl script which automatically refactors the
sqlite3VdbeExec() routine to use less stack space. Use this script
when constructing the amalgamation. (CVS 6704)
FossilOrigin-Name:
7f43391831b03e53d967acee6ae02089740aaedb
drh [Mon, 1 Jun 2009 19:53:30 +0000 (19:53 +0000)]
Avoid allocating large objects on the stack in the incremental BLOB I/O
interface. (CVS 6703)
FossilOrigin-Name:
ea7dfde700fb57ed0ecb5000a55abbf45aa1e09d
drh [Mon, 1 Jun 2009 18:18:20 +0000 (18:18 +0000)]
Malloc for space to hold the Parse object in sqlite3_prepare() and friends.
Or, if compiled with SQLITE_USE_ALLOCA, obtain space for the object from
alloca(). (CVS 6702)
FossilOrigin-Name:
c7c0c58e472cd8277b2ad58bb60834190bace4fa
shane [Mon, 1 Jun 2009 17:10:22 +0000 (17:10 +0000)]
Added assert to verify winMutex system is inited before "static" mutexes are used. (CVS 6701)
FossilOrigin-Name:
b126013b5a1d6526810139d19acbec7fd0ab8168
shane [Mon, 1 Jun 2009 17:06:07 +0000 (17:06 +0000)]
Ensure that "static" mutexes are deleted on shutdown so that they are not leaked across restarts. (CVS 6700)
FossilOrigin-Name:
4e75897ee177bd24145f9dbfccd41a03c108440f
shane [Mon, 1 Jun 2009 16:53:09 +0000 (16:53 +0000)]
Fix compiler warnings with MSVC build. (CVS 6699)
FossilOrigin-Name:
0791588520603d106aa0b8ce24d68b740b7b80c8
shane [Mon, 1 Jun 2009 16:42:17 +0000 (16:42 +0000)]
Fix a couple of Windows only issues with test scripts. (CVS 6698)
FossilOrigin-Name:
0f6bc5e1ba6937b36df08ed3b5903839389021bb
drh [Sun, 31 May 2009 21:21:40 +0000 (21:21 +0000)]
Code simplifications to facilitate coverage testing following the recent
changes to the Expr object. (CVS 6697)
FossilOrigin-Name:
ee9a144d448a76f29c3ca03851c1aeef539068e2
drh [Sun, 31 May 2009 17:16:09 +0000 (17:16 +0000)]
Fix the ".genfkey" command of the CLI so that it does not leak memory
if sqlite3_realloc() fails. Ticket #3891. (CVS 6696)
FossilOrigin-Name:
a028d69c70ae961f418052a91aa1518e80a8ddf5
drh [Sat, 30 May 2009 23:35:43 +0000 (23:35 +0000)]
Fix typo reported by ticket #3888. Other minor edits to facilitate
coverage testing. (CVS 6695)
FossilOrigin-Name:
164adf261d2536f16c83e44f6482dfb3d04a45d5
drh [Sat, 30 May 2009 20:49:20 +0000 (20:49 +0000)]
Simplifications to the expr.c source module resulting from structural
testing. (CVS 6694)
FossilOrigin-Name:
f760bb7a0372d11ac7e3287b8a56fc4261e6371c
drh [Sat, 30 May 2009 14:16:31 +0000 (14:16 +0000)]
Fix for ticket #3887. Other unrelated bits of code cleanup in the expr.c
source module. (CVS 6693)
FossilOrigin-Name:
00e7250f11e190cd915870438d172f574d110e6d
danielk1977 [Sat, 30 May 2009 10:46:10 +0000 (10:46 +0000)]
In vacuum.c use "PagerIsMemdb(X)" instead of "PagerFile(X)->pMethods==0". (CVS 6692)
FossilOrigin-Name:
874295ce71380da3f4c9296df0e0ce5ece136220
drh [Fri, 29 May 2009 19:00:12 +0000 (19:00 +0000)]
Enhance the sqlite3VdbeGetOp() routine so that it always returns a pointer
to VdbeOp, even following an OOM fault. This simplifies error handling in
callers. Cleanup to the column cache logic and the expr.c source module. (CVS 6691)
FossilOrigin-Name:
ede06dacdf7acab23cd9666a0a0d092a637bcb78