Commit Graph

4611 Commits

Author SHA1 Message Date
danielk1977
31dad9da7e Fix some more small problems introduced by recent refactoring. (CVS 4235)
FossilOrigin-Name: 5e2795d0eb8ea2a076b3014cfa9096aa7e8f69d7
2007-08-16 11:36:15 +00:00
danielk1977
c6cc77d368 Replace a few sqlite3_malloc() calls that should be sqlite3MallocZero(). (CVS 4234)
FossilOrigin-Name: 384d0ca9bc96309e7057e4a2bd4bac5049485e9b
2007-08-16 10:36:33 +00:00
danielk1977
1e5369531e More work on refactoring of malloc() interfaces. There are still many errors. (CVS 4233)
FossilOrigin-Name: 77b1671351fe94b0ebc126a63140643deae2aa64
2007-08-16 10:09:01 +00:00
danielk1977
9fb3ecbc5b Add a test for malloc() failure when compiling a trigger step of the form "INSERT INTO ... SELECT ...". Currently causes a segfault. (CVS 4232)
FossilOrigin-Name: 161643a694458e76849cd663f277892ae7c6b729
2007-08-16 04:39:01 +00:00
drh
174357527a Half-way through a major refactoring of the memory allocation.
I have not even attempted to compile so I am certain there are
countless errors. (CVS 4231)

FossilOrigin-Name: deb7ecd65f7b83eaf0ba610eeef3b0ede61db1c3
2007-08-16 04:30:38 +00:00
drh
0e6f1546b0 Enhancements and smoke testing of the new memory allocation subsystem.
Have not yet cut it over to the core, though. (CVS 4230)

FossilOrigin-Name: 1dad2c0a1f00596b13b02ccef664bd2346a677a4
2007-08-15 20:41:28 +00:00
drh
2f999a6758 Test infrastructure for the new memory subsystem. (CVS 4229)
FossilOrigin-Name: 9e506656720fb3a3205b8cc398152272ce56f6f3
2007-08-15 19:16:43 +00:00
danielk1977
6207906027 Modify the crash-recovery test code in test6.c for 3.5. Also change some other code to use the new sqlite3_io_methods interface. Lots of things are broken now. (CVS 4228)
FossilOrigin-Name: af9503daf3f7703fcddad754bc1dc9e179830b6e
2007-08-15 17:08:46 +00:00
drh
4c3645c601 Add a debugging memory allocator. (CVS 4227)
FossilOrigin-Name: 8d2d1c4ff9dca61f75e3048107ee9712d346a28c
2007-08-15 17:07:57 +00:00
drh
90f6a5beff Add initial implementations of mutex and memory subsystem modules. (CVS 4226)
FossilOrigin-Name: c0fa3769790af199a4c8715c80bb8ff900730520
2007-08-15 13:04:54 +00:00
drh
d84f946be8 Revisions to the interface design for 3.5. (CVS 4225)
FossilOrigin-Name: 174116f7c0ceeceb5e32868b29fabf8a6943cbf6
2007-08-15 11:28:56 +00:00
drh
871f6ca15a Clarify documentation on sqlite3_interrupt(). (CVS 4224)
FossilOrigin-Name: 0b5b526c9de22a34c5051d14735a062ed3f898eb
2007-08-14 18:03:14 +00:00
danielk1977
0d24e6b876 Add comments describing upcoming changes to crash-test module (test6.c). No code
changes. (CVS 4223)

FossilOrigin-Name: 63631c17376bcb5a7aa305408aaeaf03738d7b95
2007-08-14 17:42:05 +00:00
drh
6d2069d9e8 Add a first cut at the new version 3.5 interface definitions to sqlite.h.in. (CVS 4219)
FossilOrigin-Name: 0a57f3dd4de12278732e3ca9d8a95f85c351da03
2007-08-14 01:58:53 +00:00
drh
60ce3653c1 Version 3.4.2 (CVS 4218)
FossilOrigin-Name: 64989904d44556eee0ea0270f8d4f0e903ffcfdf
2007-08-13 20:31:01 +00:00
drh
d0b567a944 Update version number of documentation in preparation for version 3.4.2. (CVS 4217)
FossilOrigin-Name: 1ed51e3ca04bee887326cb323bc7046ff1a98946
2007-08-13 16:15:29 +00:00
danielk1977
ea4d9e2dc8 Invalidate prepared SQL statements when rolling back a transaction that includes schema modifications. (CVS 4216)
FossilOrigin-Name: a07143fc0578a5fc7c891e94616ee0b353674d6e
2007-08-13 15:28:33 +00:00
drh
a7fba4b055 Disable tests that require 80-bit long doubles when the host only
provides 64-bit long doubles.  Ticket #2570. (CVS 4215)

FossilOrigin-Name: 4f4f8ef416394b7e54e8894f7a0d067d64636fc4
2007-08-13 15:18:27 +00:00
drh
117066ce50 Fix a page leak in btree balance routines that follows a malloc failure.
This problem detected by the new soft-heap-limit testing. (CVS 4214)

FossilOrigin-Name: bad661bb0bfabf982a2d711ea4165af130a4cae0
2007-08-13 14:56:44 +00:00
danielk1977
5814c1a9fc When loading a database schema, do not clear the SQLITE_InternChanges flag. This fixes the problem illustrated by (4211). (CVS 4213)
FossilOrigin-Name: 540a7b28bc37709056cfdb13286274ec5bdd8423
2007-08-13 14:41:19 +00:00
drh
b403574a2d Fix the test labels in mallocC.test. (CVS 4212)
FossilOrigin-Name: 7d4cdff444b98b76a34bd85d0a43cda28e7dffe4
2007-08-13 12:58:18 +00:00
drh
b3226e857c Add a new test cases for a problem with malloc failure during the parsing
of CREATE TABLE statements in autovacuum mode. (CVS 4211)

FossilOrigin-Name: be50387e658a9a73e12b07ca89ae75e871489f16
2007-08-13 12:39:03 +00:00
drh
00a18e476a Remove a memory allocation from sqlite3VdbeIOTraceSql(). This means that
when doing I/O tracing, the text of an SQL statement is truncated to the
first 1000 characters.  But it also means tracing works in an out-of-memory
situation. (CVS 4210)

FossilOrigin-Name: 578da2476e356ea35d272e18faf490efedeaf25c
2007-08-13 11:10:34 +00:00
drh
3aefabaf94 Updates to test scripts for better support of soft-heap-limit testing. (CVS 4209)
FossilOrigin-Name: 990f621f2247f1636e895dcf51fea1e08f202d31
2007-08-12 20:07:58 +00:00
drh
8940f4ee56 Backout check-in (4206) and replace it with a much better and more
general fix for the problem identified in ticket #2565. (CVS 4208)

FossilOrigin-Name: 7961a7385013d74ec78cbdfff6867c505528c163
2007-08-11 00:26:20 +00:00
drh
34f5621ff1 Fix some incorrect asserts() in the pager - problems brought to light by
the new soft-heap-limit testing apparatus of check-in (4202). (CVS 4207)

FossilOrigin-Name: 51f3e01b7486f23b67bdfb6bb19fc5297b2c8cec
2007-08-10 23:56:35 +00:00
drh
fdd30b0e46 Fix the corruption problem of ticket #2565 as demonstrated by the test added
in (4204).  There may yet be other instances of similar problems lurking in
the code. (CVS 4206)

FossilOrigin-Name: 7ed2f59e70e0d9a8ad0c47c8c12fae0aaddcedce
2007-08-10 23:54:16 +00:00
shess
9fa502205d Convert fts2 to use sqlite3_prepare_v2() to prevent certain logic
errors around SQLITE_SCHEMA handling.  This also allows
sql_step_statement() and sql_step_leaf_statement() to be replaced with
sqlite3_step().

Also fix a logic error in flushPendingTerms() which was clearing the
term table in case of error.  This was wrong in the face of
SQLITE_SCHEMA.  Even though the change to sqlite3_prepare_v2() should
cause us not to see SQLITE_SCHEMA any longer, it was still a logic
error... (CVS 4205)

FossilOrigin-Name: 16730cb137eaf576b87cdc17913564c9c5c0ed82
2007-08-10 23:47:03 +00:00
drh
9a47736e47 Add a test case to reproduce the database corruption problem reported
by ticket #2565. (CVS 4204)

FossilOrigin-Name: f267ce809424ec2cc167bf9750989413a8f925c1
2007-08-10 19:46:43 +00:00
drh
b771228e9d Update tests so that they work properly even if the soft-heap-limit
is set low. (CVS 4203)

FossilOrigin-Name: e01eb99edfa3390e97847a210532847cc64803da
2007-08-10 19:46:13 +00:00
drh
3a7fb7c459 Add the --soft-heap-limit=N option to the test scripts. Set this value to
enforce a soft heap limit across all tests.  This changes exposes several
new bugs. (CVS 4202)

FossilOrigin-Name: 8be845981654d2a846c95c699395af222b6c3b43
2007-08-10 16:41:08 +00:00
drh
915d2150f8 Fix documentation typos. Tickets #2168 and #2560. (CVS 4201)
FossilOrigin-Name: 4333b231af8866e3d2d75bc64083b6c36c8da8d8
2007-08-09 00:00:26 +00:00
drh
73be501329 More tweaking of linkage. Ticket #2554. (CVS 4200)
FossilOrigin-Name: 3759a38fe8e8a873dc3aae8dc99ca1010551b50b
2007-08-08 12:11:21 +00:00
drh
f7083bf6d2 Additional refinements on the amalgamation: Give a couple of constants
file scope and add the SQLITE_API prefix to some interfaces that need it.
Ticket #2554. (CVS 4199)

FossilOrigin-Name: c09ec102c4f62e492dd3676ef0aa1a183d6ce3b3
2007-08-08 01:04:52 +00:00
drh
fd131daecd Remove all tabs from source code files. Ticket #2556. (CVS 4198)
FossilOrigin-Name: 7550dd1d5980a399fbb06b4ed69216700f879a0b
2007-08-07 17:13:03 +00:00
drh
0a0e131c7e Revise the amalgamation so that all symbols have file scope except those
that begin with "sqlite3_".  Ticket #2554. (CVS 4197)

FossilOrigin-Name: 73db545289a1a99bd48b22895d2a3ee86540f107
2007-08-07 17:04:59 +00:00
drh
e6e4d6bb1a Fix some compiler warnings. (CVS 4196)
FossilOrigin-Name: 6cc15409ad6baefbe6e2214a4ac1cb3a0433f922
2007-08-05 23:52:05 +00:00
danielk1977
19b26f37b7 Change some (English language) grammar in faq.tcl. Ticket #2480. No code changes. (CVS 4195)
FossilOrigin-Name: e526817f158883f617720fd389741a29454ad483
2007-08-03 08:18:44 +00:00
danielk1977
d42f8fdc7a Avoid reloading the schema when an expired statement is finalized or reset.
This is only necessary when the in-memory schema does not match the file-system schema. (CVS 4194)

FossilOrigin-Name: 61de5b52daa0a862a04147dbaf71fafb696052f6
2007-08-03 07:33:08 +00:00
drh
bb9491293b Fix a typo in limits.html. (CVS 4193)
FossilOrigin-Name: c709140b51610a2fbbff15c1fd80783218780f6f
2007-07-30 23:02:38 +00:00
drh
b695acae1f Make excess output from the CLI appear inside SQL comments so as not
to interfere with generated SQL.  Ticket #2544. (CVS 4192)

FossilOrigin-Name: 49a2e85511e845051cfc6ae4318207b1866d43c9
2007-07-30 20:41:52 +00:00
rse
e21733baa5 Fix ticket #2439: the FTS1 and FTS2 extensions use the non-standard,
unportable and highly deprecated <malloc.h> header on all platforms
except Apple Mac OS X. The <malloc.h> actually is never required on
any OS with an at least partly POSIX-conforming API as the malloc(3) &
friends functions officially live in <stdlib.h> since over 10 years.
Under some platform like FreeBSD the inclusion of <malloc.h> since a few
years even causes an "#error" and this way a build failure. So, just get
rid of the bad <malloc.h> usage in FTS1 and FTS2 extensions at all and
stick with <stdlib.h> there only. (CVS 4191)

FossilOrigin-Name: 3f9a666143a8aafa0b1a5d56ec68f69f2b3d6a21
2007-07-30 18:55:36 +00:00
rse
8f30448a30 "extern" declarations inside function bodies are not every compiler's
favorite, so move to global scope. Additionally, at least under Unix
environment use <unistd.h> to get the proper prototype instead of using
a K&R-style own declaration. (CVS 4190)

FossilOrigin-Name: 5955a77d6c902dc65897ba19d6e06db3e10bd3ee
2007-07-30 18:31:53 +00:00
rse
43e47c8ec1 Get rid of the following compile-time warnings:
tool/mkkeywordhash.c:353: warning: array subscript has type 'char'
tool/mkkeywordhash.c:354: warning: array subscript has type 'char' (CVS 4189)

FossilOrigin-Name: c01d7944799d8a96a29f8d4f6d2bb7c4bb0e14bb
2007-07-30 18:26:19 +00:00
rse
be0a909683 Get rid of the following compile-time warning:
"src/shell.c:112: warning: 'iotracePrintf' defined but not used" (CVS 4188)

FossilOrigin-Name: 271e27fd30f3b99e6d6ad2fc2c6e87f43f4c76c8
2007-07-30 18:24:38 +00:00
danielk1977
eb5453d122 Fix a bug with explicit collation sequences attached to a column reference expression that is on the right-hand-side of a binary comparison operator. (CVS 4187)
FossilOrigin-Name: 7b69968618bfc19f0c1ab25c5f16c9fdff5af094
2007-07-30 14:40:48 +00:00
danielk1977
0c3f607c21 Test that an explicit collation sequence overrides an implicit one attached to a 'new' reference (it does). No code changes. (CVS 4186)
FossilOrigin-Name: a443b07ed659223401ee7acaf613d0b04f33fc89
2007-07-26 10:16:30 +00:00
danielk1977
e0fc52618c Fix two obscure memory leaks that can follow a malloc() failure in sqlite3_set_auxdata(). Ticket #2534. (CVS 4185)
FossilOrigin-Name: b88af1827bec3e8a32450dd0a073ffc3b12a5939
2007-07-26 06:50:05 +00:00
shess
a2d04e9a0f Implement xRename() for fts1 so that it is possible to rename fts1 tables.
See http://www.sqlite.org/cvstrac/chngview?cn=4143 (CVS 4184)

FossilOrigin-Name: febf75f022b9414fc456ddf274d301f95d61e1b8
2007-07-25 00:56:09 +00:00
shess
443ecd036d Replicates http://www.sqlite.org/cvstrac/chngview?cn=4151 which
modified fts2:

Modify handling of SQLITE_SCHEMA in fts2 code. An SQLITE_SCHEMA error
may cause SQLite to reload the internal schema, deleting and
recreating v-table objects. So the sqlite3_vtab structure can be
deleted out from under a v-table implementation. (CVS 4183)

FossilOrigin-Name: f9020cffda02923ef45979bb447ec2e232086ad5
2007-07-25 00:38:05 +00:00
shess
f6e3624cfc Sorry, previous check-in included a last-minute "Did it really work?"
change :-). (CVS 4182)

FossilOrigin-Name: 5db25e369a1a4b5a4d87947abdbf25f96fe64807
2007-07-25 00:27:59 +00:00
shess
9f8a4b43ef Apply change 4095 to fts1. Fix snippet generation when the left-most
column of an fts table is used in the MATCH clause. Fix for ticket
#2429. (CVS 4181)

FossilOrigin-Name: c2ba3cc0f7ac9f5dfe5ffb554f9a1cd96b28335a
2007-07-25 00:25:20 +00:00
drh
75b97c2207 Remove the comment in the documentation that says that incremental vacuum
mode is not persistent because as of 3.4.1 it is persistent.  Ticket #2528. (CVS 4180)

FossilOrigin-Name: 6c4040941e3cf84ac0b1f5797cd700c7a2ce9353
2007-07-24 10:22:57 +00:00
drh
36379e973b Detect nested aggregate functions even if the inner aggregate function is
aliased using an AS clause.  Ticket #2526. (CVS 4179)

FossilOrigin-Name: de000280c6d0b13440d2450eb6ba42073ad46c56
2007-07-23 22:51:15 +00:00
drh
2e06c67c08 The REPLACE conflict resolution falls back to FAIL when on a
CHECK constraint violation.  Ticket #2525. (CVS 4178)

FossilOrigin-Name: b213614abff90c65cc7228c87f4973150e8a9679
2007-07-23 19:39:46 +00:00
drh
95bdbbbd9e Move prototypes for LEMON-generated parser functions into sqliteInt.h.
Ticket #2521. (CVS 4177)

FossilOrigin-Name: bc02c7f1621ff46707f147c75f7e98462b01907f
2007-07-23 19:31:16 +00:00
drh
67f80b67bb Check the return value of sqlite3PagerWrite() when autovacuuming.
Ticket #2524. (CVS 4176)

FossilOrigin-Name: b4a5c62b853f7a7d38863c39be274dccd2640944
2007-07-23 19:26:17 +00:00
drh
6615095629 Rework the UTF8 reader logic in order to avoid the use of malloc().
Ticket #2523. (CVS 4175)

FossilOrigin-Name: 9a059cb6bced5cdc950f7816602ac92d89a899be
2007-07-23 19:12:41 +00:00
drh
ad6b3159be Fix a bad sizeof in vdbe.c. Ticket #2522. (CVS 4174)
FossilOrigin-Name: 77ebc3feb089c28155cf20873fb4eabd26fa50c1
2007-07-22 19:10:20 +00:00
drh
ddb63de659 Work around a bug in GCC. Ticket #2469. (CVS 4173)
FossilOrigin-Name: 1924ba5207bdc8d503c17cd9460c1a9f9c357635
2007-07-21 19:41:45 +00:00
aswift
f6f426be4e Work around an AFP file system byte-range locking error caused by opening and closing a second file descriptor on the database file as RDWR which clears the exclusive byte-range lock and results in an fcntl error when the AFP locking code attempts to clear it afterwards. This error is caused by the test harness and isn't a flaw in the sqlite or its implementation of AFP file locking. (CVS 4172)
FossilOrigin-Name: b2ba3e81fb1015d6f979a490e00a45fb7d5e1a9a
2007-07-20 20:25:37 +00:00
drh
d6e78a2e4f Updates to build scripts. Added scripts for building FTS2 shared libraries. (CVS 4171)
FossilOrigin-Name: e269f6e9f6273210259a488c356f4996d75c6436
2007-07-20 13:42:26 +00:00
drh
cda62a771d Version 3.4.1 (CVS 4170)
FossilOrigin-Name: 81a4dd07c1d7099461e9e6668433dac5d99b1f32
2007-07-20 10:56:07 +00:00
drh
d8a2b3845d Keep sqlite3ext.h backwards compatible. This really should have been part
of the previous check-in. (CVS 4169)

FossilOrigin-Name: 7cf15a5f651f0777972e21e0a96d601cf294f0f3
2007-07-20 10:48:35 +00:00
drh
6bf0ae74c2 Add new APIs to the end of the sqlite3_apis structure in loadext.c, in order
to preserve backwards compatibility.  Fix an incompatibility introduced
by (4108). (CVS 4168)

FossilOrigin-Name: 639993490ea829208b5f309bbe6c166c34e89d14
2007-07-20 10:33:58 +00:00
drh
85d5ef8b78 Documentation change in preparation for version 3.4.1. (CVS 4167)
FossilOrigin-Name: cf227766aca5065fd68e83f145943fe9d15cd7ef
2007-07-20 01:17:28 +00:00
drh
a693bcde02 Fix a memory leak in the Rename method of the echo test virtual table.
No changes to the core. (CVS 4166)

FossilOrigin-Name: e5c132fff3e8a0478622527a7e47d679594f899a
2007-07-20 00:35:58 +00:00
drh
b100391318 Cleanup unused function in pager.c. This is the conclusion of the fix
to ticket #2518. We believe the fix is complete and correct. (CVS 4165)

FossilOrigin-Name: 31dba1e933c523a47fdd007c2c7492133dfe72f2
2007-07-20 00:33:36 +00:00
drh
3260548b53 Disable tests that use the progress handler when the progress handler
is disabled at compile-time.  Followup to ticket #2497. (CVS 4164)

FossilOrigin-Name: cbc56fd4ec60d08a13a3aa181d044e726c49ef3c
2007-07-19 22:30:19 +00:00
drh
f85953edd0 Preliminary fix for ticket #2518. Make sure the VACUUM command
increments the change counter. (CVS 4163)

FossilOrigin-Name: 75263797e29af437290c09e85cd5fd2aea08694f
2007-07-19 16:35:17 +00:00
drh
21f06723fb Clarify the documentation on the nByte parameter to sqlite3_prepare().
Make it clear that nByte is a maximum string length.  Ticket #2516. (CVS 4162)

FossilOrigin-Name: d1ae3de4613d36b5352eb852f1951a09d4a92ac1
2007-07-19 12:41:39 +00:00
drh
309be02483 Get the min/max optimization working with descending indices. Ticket #2514. (CVS 4161)
FossilOrigin-Name: a80a3c9d0a5e0a8a3d67bd841e2076893fd5e9aa
2007-07-18 18:17:11 +00:00
drh
e927818455 Additional diagnostics added to the "out" file generated by lemon. (CVS 4160)
FossilOrigin-Name: 7ef2aaf72a8a953df7a763dd94657bb4ff05294f
2007-07-18 18:16:29 +00:00
shess
d8c1648301 Fix annoying emacs warning about suspicious line. The change removes
a leading space (emacs wants Makefiles to use leading tabs there). (CVS 4159)

FossilOrigin-Name: 4daadf659afe6b2524e1b37347247f233a211950
2007-07-17 17:22:03 +00:00
drh
1ef2ca0fd1 Add an extra integrity_check to the transaction test script. (CVS 4158)
FossilOrigin-Name: 5ea43b2db1f0263c5f0ab76351bc9ca940d1428a
2007-07-13 10:36:47 +00:00
drh
f4c932bb07 Update documentation to make it clear that VACUUM is free to
change implicit rowids.  Ticket #2382. (CVS 4157)

FossilOrigin-Name: d111b1daa547fea51d9e1fbe49c0b1338298484e
2007-07-13 10:35:14 +00:00
drh
eba1a1ebee "extern" prototypes cause problems for the Digital Mars compiler. So
remove them.  Ticket #2502. (CVS 4156)

FossilOrigin-Name: f35fbf8070d770a603960b2a2afdeae91574ed5f
2007-07-13 10:26:08 +00:00
danielk1977
612642de32 Fix for #2497. Set the database error code to the return value of sqlite3_step(). (CVS 4155)
FossilOrigin-Name: b01fda5f50e40b6122faf169c44486bde7ffe16c
2007-07-12 13:18:05 +00:00
pweilbacher
d8e9b6238e Fix compilation warnings shown when using strict GCC options for os_os2.c. (CVS 4154)
FossilOrigin-Name: 22277b7e1b3eb1678280de5d49a6613908ab4bff
2007-07-03 23:37:09 +00:00
danielk1977
2ac2762f37 Fix a memory leak in shell.c. Reported on the mailing list. This has only been informally tested. (CVS 4153)
FossilOrigin-Name: a008905b39e7d4cd5b39db4906eb3b678e3ee8b7
2007-07-03 05:31:16 +00:00
drh
1c55ba094a Fix a comment typo reported on the mailing list. (CVS 4152)
FossilOrigin-Name: 25e6df9cdd7d0cbb2bdee9ce76806cfd08314212
2007-07-02 19:31:27 +00:00
danielk1977
ab9749ebb9 Modify handling of SQLITE_SCHEMA in fts2 code. An SQLITE_SCHEMA error may cause SQLite to reload the internal schema, deleting and recreating v-table objects. So the sqlite3_vtab structure can be deleted out from under a v-table implementation. (CVS 4151)
FossilOrigin-Name: dee1a0fd28e8341af6523ab0c5628b671d7d2811
2007-07-02 10:16:49 +00:00
drh
12e8dcfbf6 Remove an unnecessary temporary variable for clarity of presentation in
a loop that GCC 4.2.0 is miscompiling.  Ticket #2469.  GCC 4.2.0 miscompiles
this loop regardless of whether or not the temporary variable is used, but
by removing the variable, we hope to make it easier to explain the problem
to GCC maintainers.  The error only appears if -ftree-vrp is used (which
is turned on by -O2). (CVS 4150)

FossilOrigin-Name: 35ae398bd37e4abbe362b0b780fc51153145b43d
2007-07-01 21:18:40 +00:00
pweilbacher
503028d61a Change OS/2 version of sqlite3Os2FullPathname() for cross-compiler compatibility:
- allocate zBuff on demand (restricted stack space on old compilers)
- 2 bytes in zDrive in include '\0'
- pass drive number to DosQueryCurrentDir() instead of 0 to make EMX work
- zFull does not need to be preallocated (CVS 4149)

FossilOrigin-Name: cc2105176563c352a6dccef89a429a76b6f3adf5
2007-07-01 15:41:02 +00:00
pweilbacher
2b9ca8d3e4 Including os2safe.h from os_os2.c is no longer necessary (now that it's including from os.h) (CVS 4148)
FossilOrigin-Name: 6432bbe1c1db1d31bd0057d99a9d6b6a428d8ffc
2007-06-30 16:30:39 +00:00
pweilbacher
3f61bc79ae old emx/gcc sets __EMX__ (with double underscores) as builtin #define (CVS 4147)
FossilOrigin-Name: d69204fec718a5d6d95351ee7a0c068a1c59222d
2007-06-30 15:24:37 +00:00
drh
e78669b6b8 Set FD_CLOEXEC on all open files under Unix. Ticket #2475. (CVS 4146)
FossilOrigin-Name: f1e5fed8eb0fb92bd0f040666c017850afe3cf9f
2007-06-29 12:04:26 +00:00
drh
6bd00bfda7 Add a test case to verify that ticket #2470 has been fixed. (CVS 4145)
FossilOrigin-Name: b3f442698e01ad55666703025c4457445f2efc9b
2007-06-27 23:52:18 +00:00
danielk1977
5c55886059 Test error handling when renaming fts2 tables. (CVS 4144)
FossilOrigin-Name: 57840eba6a4380a0b71dc9514cdda41e2c455bb0
2007-06-27 17:09:24 +00:00
danielk1977
c033b64276 Implement xRename() for fts2 so that it is possible to rename fts2 tables. (CVS 4143)
FossilOrigin-Name: 488474fde753c5a7a14ed8f2fad7f16efd236491
2007-06-27 16:26:07 +00:00
danielk1977
182c4ba979 Allow ALTER TABLE on virtual tables. (CVS 4142)
FossilOrigin-Name: 37d1f9f37ea9d2e8a4dbe0ec67c0d6eb7fcc5f3f
2007-06-27 15:53:34 +00:00
vapier
c3d56d1509 respect $LDFLAGS from env/configure (CVS 4141)
FossilOrigin-Name: 9c13fc0f4bf22c8e05b11ef5feaaf07d8a8b3f01
2007-06-27 15:01:45 +00:00
danielk1977
b7865fbc53 Fix for compiling with OMIT_VIRTUALTABLE defined. (CVS 4140)
FossilOrigin-Name: 850822e2904bc340afd0b7535ef51fbdf9e1f486
2007-06-27 11:10:03 +00:00
drh
a6b81bad55 Fix typo in comments of the sqlite.h.in header file - comments from which
documentation is automatically extracted and generated.  Ticket #2468. (CVS 4139)

FossilOrigin-Name: 53b526203c22961447b9c1cebbd885ecc8bc3e09
2007-06-27 10:21:38 +00:00
drh
5db828180c Make sure auto_vacuum is turned off before running the tests in pragma2.test. (CVS 4138)
FossilOrigin-Name: fc85c8aa160cc46419b9ce83d9eb47970c67118a
2007-06-27 10:20:00 +00:00
drh
0e8003dff6 Set the connection error code when sqlite3_blob_read() or
sqlite3_blob_write() fail.  Ticket #2464. (CVS 4137)

FossilOrigin-Name: 3bd990be3cb8a74be9eaa8d5710852be6733cb58
2007-06-27 00:36:13 +00:00
drh
6d31df30d8 Update the FAQ to describe how moving sqlite3 handles across threads is
not safe with SQLITE_ENABLE_MEMORY_MANAGEMENT.  Tickets #2357 and #2463. (CVS 4136)

FossilOrigin-Name: 2640f518deba1d196201fac903ec4d3ab26d4bb3
2007-06-27 00:08:39 +00:00
drh
985e0c63fc Make sure the TCL bindings always use Tcl_GetWideIntFromObj() even if the
reported type is "int" because on x86-64 and "int" type is 64-bits.
Ticket #2465. (CVS 4135)

FossilOrigin-Name: 5c93324b937b4d8394b0eb7d7fe74f7965623cbe
2007-06-26 22:55:37 +00:00
drh
99bcd30bfb Fix a test case so that it (hopefully) works on x86-64. Ticket #2465. (CVS 4134)
FossilOrigin-Name: 3daf7cae18ae2ee6404f770e69e4cd0c715615e5
2007-06-26 22:42:56 +00:00
drh
2f9ad1b47d Remove vestigal code from Makefile.linux-gcc. Ticket #2466. (CVS 4133)
FossilOrigin-Name: 338c18791006bac3709410087316700aad3b332f
2007-06-26 22:10:12 +00:00
danielk1977
9ff802627a Reorganize comments in fts2_tokenizer.h. No code changes. (CVS 4132)
FossilOrigin-Name: b331e30395e9fc90abe40ab802972a67648cf48e
2007-06-26 12:54:07 +00:00
danielk1977
05fdd6c055 Use (((i64)1)<<63) instead of just (1<<63) to compute the most negative 64-bit integer. (CVS 4131)
FossilOrigin-Name: be2570c061e1e751d1a46450bd1186549146526e
2007-06-26 12:52:33 +00:00
danielk1977
42d4ef2acc Fix for #2444: Avoid SIGFPE on 64-bit platforms when evaluating expressions like ((1<<63)/-1). (CVS 4130)
FossilOrigin-Name: c6dfd9e43449b0b3528281d9e2e4971c6ba86ab5
2007-06-26 11:13:25 +00:00
danielk1977
08ada518ff Remove the unused EXTSRC variable from the non-configure makefile. (CVS 4129)
FossilOrigin-Name: bbdcf372c6f2144a62fba742b3f4bd6b2fe58593
2007-06-26 10:56:40 +00:00
danielk1977
4877ef2aae Fix an unitialized variable in fts2. (CVS 4128)
FossilOrigin-Name: c349cf942534357955f80fc2aa8c96206af97b78
2007-06-26 10:55:01 +00:00
danielk1977
034ca14f81 Allow virtual tables to mark columns as 'hidden'. Hidden columns do not show
up in "*" expansion, the implicit column list of an INSERT statement, or the results of a "PRAGMA table_info" statement. (CVS 4127)

FossilOrigin-Name: 7f887a6a00fdd6efc3740bd8a1731bb1abde087c
2007-06-26 10:38:54 +00:00
drh
8605761506 Try to work around an MSVC compiler bug. Ticket #2457. (CVS 4126)
FossilOrigin-Name: 4a7079a19ab5c36ed88cf597c21bf9f8b63bdf86
2007-06-26 01:04:48 +00:00
drh
26b0fc0bc5 Modify the amalgamation generator to identify every API using the
SQLITE_API macro which is normally defined to nothing but which can
be overridden on the compiler command-line to be "static" if desired.
Ticket #2453. (CVS 4125)

FossilOrigin-Name: 474a52347d454ad499d7a78c88eb995c9d3254d1
2007-06-26 00:52:39 +00:00
drh
b6a9eceab2 Change the name of sqlite3_atoi64 back to sqlite3Atoi64 so that it is clearly
and internal API.  Modify the amalgamation to use a macro SQLITE_PRIVATE
instead of the keyword "static" so the macro can be overridden to by nothing. (CVS 4124)

FossilOrigin-Name: 96190cf13dd7219f483308fea92d703328aac4c7
2007-06-26 00:37:27 +00:00
drh
217f49093c Rework the string to integer conversion logic to address tickets
#2344 and #2454. (CVS 4123)

FossilOrigin-Name: 5b3a490649ab88c168e3e5bf2efbc7f61b1b954d
2007-06-25 17:28:00 +00:00
danielk1977
c9cf6e3d31 Fix for #2445. A bug in the lookupName() logic that could cause a crash when a WHERE clause used an alias to refer to an expression in the result-set of the SELECT, and that expression was itself a reference to a table column. (CVS 4122)
FossilOrigin-Name: 044ca1c72a8f4632dc2e6a94690d164d3560ee38
2007-06-25 16:29:33 +00:00
danielk1977
576d3db541 Modify the non-configure build system to make it easier to build the library with the fts2 or icu extensions linked in. (CVS 4121)
FossilOrigin-Name: 02b23c4394da7efb82e9318146f10818b0f68b1f
2007-06-25 14:28:48 +00:00
drh
397aa141ed Put #ifdefs in fts2_tokenizer so that the build works even when FTS2
is omitted.  Add the SQLite blessing to the header comments on all FTS2
source files. (CVS 4120)

FossilOrigin-Name: c795e6fd8f01bcbc1967062632c13d4952abf4d8
2007-06-25 13:50:03 +00:00
drh
5665b3ea44 All the use of MySQL-style quoting in the FTS modules. Ticket #2446. (CVS 4119)
FossilOrigin-Name: 3be2a6d1c342454d93b05c38f3d9a960ab15dae2
2007-06-25 12:49:05 +00:00
danielk1977
46760820a1 Add a test that calls fts2_tokenizer() with an argument set via C code. (CVS 4118)
FossilOrigin-Name: fbcf2d75cd2b88d175c122477aa483f0771870e5
2007-06-25 12:05:40 +00:00
danielk1977
f86643b32f Add some tests for the fts2 icu tokenizer. (CVS 4117)
FossilOrigin-Name: b79ced3e0a26b0db13613073c847c2d2ba7e174e
2007-06-25 11:24:38 +00:00
danielk1977
24e1afa222 Add some documentation for user-defined fts2 tokenizers. (CVS 4116)
FossilOrigin-Name: 5a9eee86587219a68655d548864d129edec969ae
2007-06-25 09:52:31 +00:00
danielk1977
27b1f95f08 Make the auto_vacuum mode peristent in all cases. (CVS 4115)
FossilOrigin-Name: 5b0408ddd0f1c825f402d0f5a3088a61b5ecd2c3
2007-06-25 08:16:58 +00:00
danielk1977
d62e76c792 Fix for #2451. Code comment changes only. (CVS 4114)
FossilOrigin-Name: bc61dcbf64af56d4a1394c8ff46e91245dc16d15
2007-06-24 16:11:03 +00:00
danielk1977
418899a359 Make setting "PRAGMA auto_vacuum = incremental" persistent if it is executed before the database file is created. (CVS 4113)
FossilOrigin-Name: c666fad151f25ab8365c497cd0967f4a5a2adb90
2007-06-24 10:14:00 +00:00
danielk1977
180b56a1bb Add the "(database.)freelist_count" PRAGMA. For querying the size of the
database free-list. (CVS 4112)

FossilOrigin-Name: 1fb4251a707d0b79d250d6ea2022913b371d5f14
2007-06-24 08:00:42 +00:00
danielk1977
f3b863ed07 When expanding '*' in the result set of a SELECT, quote the expanded identifiers. Fix for #2450. (CVS 4111)
FossilOrigin-Name: d5b7224f37db1729dd042d48765d7a79247e1bde
2007-06-24 06:32:17 +00:00
pweilbacher
53b4bd3252 fix linking failure on OS/2 that happens with the amalgamation and the high memory option enabled (CVS 4110)
FossilOrigin-Name: f35e20e19633d7b114fdf145820ca5d61b5aa925
2007-06-22 20:17:37 +00:00
pweilbacher
691902e7d6 fix compilation failure on OS/2 with the amalgamation (CVS 4109)
FossilOrigin-Name: 12327ca049e62922bfb3c2a14e42554fd58265e8
2007-06-22 20:04:36 +00:00
danielk1977
832a58a68c Extend fts2 so that user defined tokenizers may be added. Add a tokenizer that uses the ICU library if available. Documentation and tests to come. (CVS 4108)
FossilOrigin-Name: 68677e420c744b39ea9d7399819e0f376748886d
2007-06-22 15:21:15 +00:00
drh
bf2564f612 Clarify documentation of the column metadata APIs. Make sure that the
new documentation claims are tested. (CVS 4107)

FossilOrigin-Name: 2dafe08a91b5328a9d0df5ab29c3ff2d94ad5f6f
2007-06-21 15:25:05 +00:00
drh
9725daf61d Update the URL to mailing list archives. (CVS 4106)
FossilOrigin-Name: af4b914a2152ce021401b6f78bb88a5323aa6fc2
2007-06-21 13:30:39 +00:00
drh
d3067e8638 Use NAWK everywhere in Makefile.in. Ticket #2437. (CVS 4105)
FossilOrigin-Name: 314669b6cc76ab8984857c3591aa1910aac97694
2007-06-20 16:20:36 +00:00
drh
7e09fe0b81 A column name preceded by a unary "+" operator is considered to be
a column name when computing the collating sequence to be used by
a comparison operator or ORDER BY clause. (CVS 4104)

FossilOrigin-Name: 99a20f6a427b5e0e0a793f59ebca9d17bc633437
2007-06-20 16:13:23 +00:00
drh
7cd6927e7f Remove the dependency on libm for isnan(). Ticket #2436. (CVS 4103)
FossilOrigin-Name: 406675bb1c954dae95b9059f7f533ed57e3947d9
2007-06-20 15:29:25 +00:00
drh
029f3f8924 Remove an unused variable from btree.c. (CVS 4102)
FossilOrigin-Name: cb47a8297fd91becdc4e1c50fd84b3efedd3951f
2007-06-20 15:14:10 +00:00
drh
4c1038388e Fix comment typo in analyze.c. Ticket #2434. (CVS 4101)
FossilOrigin-Name: df9957b94737b76ed7b1de77bb22bb27c7ae2dcf
2007-06-20 13:37:31 +00:00
drh
a959ac4588 Fix a bug in the command-line shell that prevents the
reading of the ".sqliterc" file.  Ticket #2433. (CVS 4100)

FossilOrigin-Name: 6eaf29f5e1e99b066825a1ccf34c82c9da6da826
2007-06-20 13:10:00 +00:00
drh
9245c243b7 Disallow empty GROUP BY clauses. Ticket #2431. (CVS 4099)
FossilOrigin-Name: 9581e7a4a4d74b08ce5380b49862957c804e46bb
2007-06-20 12:18:31 +00:00
drh
647f9ad770 Additional changes for ticket #2426. (CVS 4098)
FossilOrigin-Name: 79debf95cdccdc1f18b6f0fcd213f514e327181c
2007-06-20 11:56:51 +00:00
danielk1977
d84d483322 Fix for #2432 and partial fix for #2427 (documentation change only). (CVS 4097)
FossilOrigin-Name: f025a745319486d858e2831178a86265fd5fcf32
2007-06-20 09:09:47 +00:00
danielk1977
77b03a2ff1 Change main.mk to make it easier to build testfixture and sqlite3 with the icu or fts2 extensions linked in. (CVS 4096)
FossilOrigin-Name: 91719cc8eaf62f64099ff9eb2b48cef6c9c688f7
2007-06-20 08:49:05 +00:00
danielk1977
86889fc3c6 Fix snippet generation when the left-most column of an fts2 table is used in the MATCH clause. Fix for ticket #2429. (CVS 4095)
FossilOrigin-Name: fec56ad2ede53e3e202d9ad869a059eeb315796f
2007-06-20 06:23:54 +00:00
drh
1c747819de Change the TCL bindings so that @aaa always treats the variable aaa as
a bytearray and binds the value as a BLOB.  This change is backwards
compatible since the $ behavior is unchanged and @ was not accepted
until the current round of changes. (CVS 4094)

FossilOrigin-Name: 6f7d55acedc92eeaf988425c719addd56209187f
2007-06-19 23:01:41 +00:00
drh
59fffd02de Cleanup the TCL interface source code and add documentation for recently
added methods on the SQLite object of TCL. (CVS 4093)

FossilOrigin-Name: d88b79818a6a9e0413b9560687ec3c79fcb3dacc
2007-06-19 17:48:57 +00:00
drh
4f5e80f94b In the TCL bindings, if a TCL variable has a bytearray representation and
the host parameter starts with @ instead of $, then always store the
content as a BLOB not as a string even if a string representation is also
available. (CVS 4092)

FossilOrigin-Name: dcb104bd41f5e992d4c84b8947cb5099ae746891
2007-06-19 17:15:46 +00:00
drh
c551dd804a Change the name of the "limits.h" source file to "sqliteLimit.h".
Ticket #2428. (CVS 4091)

FossilOrigin-Name: 64bcc41f12e902fd025c9ba36c09dd6e4cf25923
2007-06-19 15:23:48 +00:00
drh
b21f87dda1 Do not segfault even if sqlite is misused by requesting query results
after the query has been reset.  ticket #2426. (CVS 4090)

FossilOrigin-Name: 783f19be387561fbca3ac7e223bdb7dedb5450c8
2007-06-19 10:58:24 +00:00
drh
63fff5f7a5 Cast the 2nd parameter of ftruncate to off_t to work around bugs in
some unix implementations.  Ticket #2425. (CVS 4089)

FossilOrigin-Name: 0b20a69609c64af922bedab381f7d075e9da4fc5
2007-06-19 10:50:38 +00:00
drh
74792b2f91 Another attempt to fix the build process for TCL windows bindings. (CVS 4088)
FossilOrigin-Name: 1fd2a358d6361768981d0c7efbcf30b47c52a732
2007-06-18 17:44:16 +00:00
drh
8ffa817305 Bring the pager_datahash() macro into sync with its function definition.
Ticket #2422. (CVS 4087)

FossilOrigin-Name: ba967bbb62ccf29438db352c573773ae741d0daf
2007-06-18 17:25:17 +00:00
drh
455cd796f6 Fix the build scripts so that they generate Tcl bindings for windows
correctly. (CVS 4086)

FossilOrigin-Name: c7be8b419fdfe6561331485f5f866610457e44ad
2007-06-18 16:06:20 +00:00
drh
e91f2b75d6 Version 3.4.0 (CVS 4085)
FossilOrigin-Name: 2647980fba92a453ef8afb48c80405d023177ab6
2007-06-18 13:33:58 +00:00
drh
44548eccb9 Documentation updates prior to release 3.4.0. Enhanced support for
soak testing in the test scripts. (CVS 4084)

FossilOrigin-Name: eec387103869940697487ec5226eaed0b51ede7a
2007-06-18 12:22:43 +00:00
drh
4f0aee41c3 Fix a faulty assert() in the pager. (CVS 4083)
FossilOrigin-Name: 4cff47b06132768e92ba2235cab5c17d1082f8f9
2007-06-16 18:39:41 +00:00
danielk1977
68a6b5ec98 Modify the tests in exclusive2.test to account for the fact that the pager cache may be very small by default. These tests are only valid if the entire database fitting in the cache. (CVS 4082)
FossilOrigin-Name: 04a13fe43e61bd0dbff42c448e763078503b00bf
2007-06-16 14:43:51 +00:00
drh
b3905ab5e1 Add another scenario to the soak1.tcl script. (CVS 4081)
FossilOrigin-Name: 10e6822d4f1e0a94d5033b7b9efc1d8ed1e957d1
2007-06-16 14:19:36 +00:00
drh
732c817f8b A minor logic correction in the previous check-in. Also added a lengthy
comment describing the meanings of various flags in the 
{quote: PgHdr} structure. (CVS 4080)

FossilOrigin-Name: 57bf8204cde47dfeb31c064f2b128b9a8d94189f
2007-06-16 11:17:45 +00:00
drh
5e3853112a Fix a database corruption problem that can occur in auto-vacuum mode when
a malloc() failure causes a statement rollback, additional statements
are run in the same transaction, then the total transaction rolls back. (CVS 4079)

FossilOrigin-Name: c9dcf2b926c99ff9cee68589f364461ab2a1d11f
2007-06-16 04:42:12 +00:00
drh
477731b52d Additional debugging instrumentation added to the pager. (CVS 4078)
FossilOrigin-Name: dcdb20f81ae923f6f56d75c7b8b89a0b3abff954
2007-06-16 03:06:27 +00:00
drh
7d7f17b6a8 Make arrangements to optionally print a debug message at the point
of a simulated malloc() failure when SQLITE_MEMDEBUG is defined. (CVS 4077)

FossilOrigin-Name: 7d3c1f08a34fcf2ca5c79d6e58f713ae6a4b34e8
2007-06-15 20:29:20 +00:00
drh
341ae48332 Fix more documentation typos. Ticket #2416. (CVS 4076)
FossilOrigin-Name: b55318b12d026abd5a32469a19c36abbd6250137
2007-06-15 18:59:08 +00:00
drh
daf276d466 Remove a C++ism from the test harness. Get the TCL interface working with
older versions of TCL. (CVS 4075)

FossilOrigin-Name: c8beb8674e5a1effc2785f205124628fbdaf57e0
2007-06-15 18:53:14 +00:00
drh
2df37c0390 Add a script for "soak" testing. (CVS 4074)
FossilOrigin-Name: d4ea1287a8b013a97fcb55bb7f7feba427222bab
2007-06-15 18:43:37 +00:00
danielk1977
3586110b4a Fix a race condition in test_server.c/test7.c (test changes only). (CVS 4073)
FossilOrigin-Name: d0de32e4c630c43ecd9d5e5296ae84aeff80c083
2007-06-15 17:50:04 +00:00
drh
bc9c9b9964 Fix typo in change comments for 3.4.0. Ticket #2416 (CVS 4072)
FossilOrigin-Name: 1f6f0330000ca564e75cd930afb9f9ce23551d89
2007-06-15 17:04:37 +00:00
drh
43b788260e Fix a memory leak in the parser that can occur following a malloc failure. (CVS 4071)
FossilOrigin-Name: d0b6e9a07e99cc1a7d7f61877918c9a247899996
2007-06-15 17:03:14 +00:00
danielk1977
edaaec223c Fix an obscure memory leak in the SQL compiler.. (CVS 4070)
FossilOrigin-Name: d4ab94288b1e3d3d069ccc75d0fc2fbe6c1383c5
2007-06-15 16:37:29 +00:00
drh
5bd1bf2ebc Fix a memory leak that was discovered by the tests that were added to
cover ticket #2339. (CVS 4069)

FossilOrigin-Name: 1d10a489340718cc708e11e28e7bb31c67e00ad8
2007-06-15 15:31:49 +00:00
danielk1977
ca306519bc Fix a test suite bug. To accommadate the fact that handles returned by (db incrblob) change for the second test suite iteration of full.test. (CVS 4068)
FossilOrigin-Name: 32218834b80b1ba900c52e43a2e59783a2553897
2007-06-15 15:08:08 +00:00
danielk1977
de523acceb Fix for #2415. The progress handler should abandon only the current query, not all active queries. (CVS 4067)
FossilOrigin-Name: 115e19fe22b9e79fcc400f3a59c80dd9828100e7
2007-06-15 14:53:53 +00:00
drh
9142a83dd4 Do not try to run the fuzz_malloc tests if SQLITE_MEMDEBUG is not enabled. (CVS 4066)
FossilOrigin-Name: 452115959f1bd22bfe64ed10724d6d08d4cbe3f5
2007-06-15 13:57:19 +00:00
drh
1a3a188ac7 Clean up a variable in tkt2409.test that would cause subsequent tests to fail. (CVS 4065)
FossilOrigin-Name: 0f944cb9fbe30c2a7ec36b7dc7e21fb39a60e810
2007-06-15 12:41:02 +00:00
drh
711ffd8c76 Documentation updates in preparation for 3.4.0. (CVS 4064)
FossilOrigin-Name: 5232fd29d01d48d70b6d8f34ad5d0e2dde115fa0
2007-06-15 12:16:31 +00:00
drh
8030869589 Update the btree file format description in btreeInt.h. (CVS 4063)
FossilOrigin-Name: 1ac160d3dc0f8723a1e2007cf45351dd8242c8c2
2007-06-15 12:06:58 +00:00
drh
6ed48bf6d7 The C-api reference documentation is now generated directly from
comments in the sqlite3.h header file. (CVS 4062)

FossilOrigin-Name: d93c41e9a97882bf90217d60744d62dece6d10d3
2007-06-14 20:57:18 +00:00
danielk1977
3fe11f3021 Have queries interrupted by the progress-handler return SQLITE_INTERRUPT. Rollback any active transaction if a DML statement returns SQLITE_INTERRUPT. (CVS 4061)
FossilOrigin-Name: 33454b5691637da7ded7d18d7f5726b796260c6b
2007-06-13 16:49:48 +00:00
danielk1977
e965ac7773 Fix for #2409. Return SQLITE_IOERR_BLOCKED instead of SQLITE_BUSY in cases where failure to obtain a database lock leaves the cache in an inconsistent state.
See additional information at CorruptionFollowingBusyError. (CVS 4060)

FossilOrigin-Name: ce2c9925d06315d73fb5fd0c7265fb4cd65665aa
2007-06-13 15:22:28 +00:00
drh
109b43507d In the "transaction" command of the TCL interface, if a COMMIT fails finish
it with a rollback. (CVS 4059)

FossilOrigin-Name: 6da39fa4429400e21924074f5f219f4cb32415ff
2007-06-12 18:50:13 +00:00
shess
401b80656d Minor comment edits from my prefix development client. No code changes. (CVS 4058)
FossilOrigin-Name: 6953cd0935b5526756ab745545420e40adc3c56d
2007-06-12 18:20:04 +00:00
drh
cd81dc4b13 Fix typo in the limits.html document. Ticket #2410. (CVS 4057)
FossilOrigin-Name: d3fe186c330d74209ac291972b09883b06e0e143
2007-06-11 23:23:24 +00:00
drh
9c86df5269 Fix a bug in the LIKE optimization that was causing the pattern string
to be dequoted twice.  Ticket #2407. (CVS 4056)

FossilOrigin-Name: abf64d1d0ae3e84c4482b38198eeb44b62cc5d9e
2007-06-11 12:56:15 +00:00
danielk1977
b39fa65289 Add a README.txt file for the ICU extension. (CVS 4055)
FossilOrigin-Name: 7b6927829f18d39052e67eebca4275e7aa496035
2007-06-11 08:00:00 +00:00
drh
7361cb1f2c Define isnan() on windows. Ticket #2399. (CVS 4054)
FossilOrigin-Name: fed9373e27b9d5338159a41772f8983420b902b0
2007-06-10 22:57:33 +00:00
drh
b0e64f33da Documentation updates, in particular in the new limits.html file is added. (CVS 4053)
FossilOrigin-Name: 4ca6cdae94f6d0a2c95755d4a250f9f3bc7a0d7b
2007-06-09 09:53:51 +00:00
drh
3b62b2fa8b Use C-sylte comments exclusively, never C++ comments. Ticket #2406. (CVS 4052)
FossilOrigin-Name: 8f5b789fea23d76128c10b37158de2525a54ce20
2007-06-08 18:27:03 +00:00
drh
b70429577f Additional test cases for comparisons against NULL in the WHERE clause
and elsewhere in a SELECT. (CVS 4051)

FossilOrigin-Name: 72612a0373c7abf8aadfdeb46358c0b0ae7b07a0
2007-06-08 08:43:10 +00:00
drh
f07b484449 Make sure rowid comparisons against NULL work correctly. Ticket #2404. (CVS 4050)
FossilOrigin-Name: 11ee8ea43f20f6146f4e4fcd9299468b3a99f998
2007-06-08 08:39:01 +00:00
drh
0a168377ad Fix the query optimizer so that it correctly handles constant expressions
in the ON clause of a LEFT JOIN.  Ticket #2403. (CVS 4049)

FossilOrigin-Name: 46fdd195483787eef209a9b8ad108eba147be6fa
2007-06-08 00:20:47 +00:00
drh
98640a3fa1 Make sure zeroblob does reasonable things with a negative argument or
an argument that is larger than the maximum blob size. (CVS 4048)

FossilOrigin-Name: f40218434e549144ddb48303df30e5191d44d3fc
2007-06-07 19:08:32 +00:00
danielk1977
6c900c3df7 Fix an error in test file sqllimits1.test that was causing a test to fail when SQLITE_MAX_EXPR_DEPTH was defined. (CVS 4047)
FossilOrigin-Name: e66aa2c34a5c767554c022d01386a95558083e84
2007-06-07 15:45:35 +00:00
drh
0325d8731b Add the SQLITE_MAX_COMPOUND_SELECT compile-time parameter for limiting
the number of terms in a compound select statement.  Set the default limit
to 100. (CVS 4046)

FossilOrigin-Name: 0d71ad4591eae9de8749fb2da6455ac661587f7a
2007-06-07 10:55:35 +00:00
danielk1977
39984cdc8b Fix a vdbe stack leak that could occur where one side of a WHERE clause inequality evaluated to SQL null. (CVS 4045)
FossilOrigin-Name: 17152bf1a268e130f0c43046bb438b617a747ff5
2007-06-02 07:54:37 +00:00
danielk1977
9afe689ea4 Extend out-of-memory testing with fuzzily generated sql some. One fix for a problem found by the same. (CVS 4044)
FossilOrigin-Name: d2282e64f1320913797dfb4dae4db0428a15a200
2007-05-31 08:20:43 +00:00
danielk1977
c9cf901d8c Add some extra tests for malloc failure during expression parsing and execution using fuzzily generated SQL. (CVS 4043)
FossilOrigin-Name: 7522d2fb3204d107b8b4816d7f39c88741f20230
2007-05-30 10:36:47 +00:00
danielk1977
5453b8da9e Add the start of the soak-test infrastructure. (CVS 4042)
FossilOrigin-Name: 5d0b247ca1667f5d773bda337cb6f58c3b14676a
2007-05-30 08:18:04 +00:00
danielk1977
6b28f053fd Fix a problem with zeroblob() and CAST(...) expressions that could cause an assert() to fail. (CVS 4041)
FossilOrigin-Name: 03750a2a6b5186689f7db6650c0a889429790b03
2007-05-30 06:19:32 +00:00
danielk1977
bcbb04e501 Consider explicit collate clauses when matching WHERE constraints to indices. Fix for #2391. (CVS 4040)
FossilOrigin-Name: f9a95e92dfaaa61ec0a44b9b7017b07929c94d26
2007-05-29 12:11:29 +00:00
danielk1977
331bf02e0e Add some tests to verify that the parameter to the incremental_vacuum pragma is working. It is. (CVS 4039)
FossilOrigin-Name: 1abf784fe27cdc61b6b944b79d024ea98eb5289e
2007-05-24 10:18:22 +00:00
danielk1977
e48b1f1e9b Fix a typo in comments in sqlite.h.in. No code changes. Ticket #2384. (CVS 4038)
FossilOrigin-Name: e8ae6214bfef4230096b6b56e688e9d4cd93f1b8
2007-05-24 09:44:10 +00:00
danielk1977
369f3a050c Remove an assert() statement that may not be true if an IO or malloc error has occured. (CVS 4037)
FossilOrigin-Name: 16c8e9c20cd2a7628c20a31c3e9605fe2d92ba2e
2007-05-24 09:41:20 +00:00
danielk1977
deb403e797 Fix a page reference leak that could occur after an IO error. (CVS 4036)
FossilOrigin-Name: d00c8242c610476c15d6eb4dc53fecab3971fea1
2007-05-24 09:20:16 +00:00
danielk1977
d3a29ce7dc Remove an incorrect assert() statement that was being triggered by ioerr tests run in utf-16 mode. (CVS 4035)
FossilOrigin-Name: c6575173be13296fbe57932f2d24a568f6d552ff
2007-05-24 07:47:06 +00:00
danielk1977
2df71c742c Fix an assert() failure occuring in corrupt.test. (CVS 4034)
FossilOrigin-Name: 3c54cddf23e3b9f62815d1b825110563f78cc325
2007-05-24 07:22:42 +00:00
danielk1977
7677c0cc62 Add some code to MemTranslate() to prevent the READ_UTF8() macro from overreading a buffer. (CVS 4033)
FossilOrigin-Name: 0595319cd716611bb5a12eb952e395283ea749bb
2007-05-23 16:23:09 +00:00
danielk1977
17a240a25e Make sure the database schema has been read before compiling an incrmental_vacuum pragma. (CVS 4032)
FossilOrigin-Name: efd7bcb34c1b4a0a3d4b954b90dfee93ac87bc86
2007-05-23 13:50:23 +00:00
danielk1977
89a4be8af1 Fix a leaked page reference that could occur after an IO error in auto-vacuum databases. Also modify incrvacuum.test to work with DEFAULT_AUTOVACUUM=1 builds. (CVS 4031)
FossilOrigin-Name: e691f2fa3d8c1bbb66d27eea299ae2fb1ea1a16d
2007-05-23 13:34:32 +00:00
danielk1977
4ef24490a1 Fix a database corrupting bug in the optimistic overflow chain. Exposed by running bigrow.test with auto-vacuum enabled. (CVS 4030)
FossilOrigin-Name: 10ee2d50cbcdcbbd8141ff2aba4fd2c0c0b70d67
2007-05-23 09:52:41 +00:00
drh
7a4f5023a4 Additional comments ono the SQLITE_MIXED_ENDIAN_64BIT_FLOAT issue. (CVS 4029)
FossilOrigin-Name: dd48a31e671de09f59661b2ba1a20e7b9f09099a
2007-05-23 07:20:08 +00:00
drh
50027d1c0c Make sure zeroblob() works with the concatenation operator. Ticket #2379. (CVS 4028)
FossilOrigin-Name: 6e19ef758207cedd6db8b2796ef5d4d688cc0b62
2007-05-23 06:31:38 +00:00
danielk1977
76f559689a Increase the number of repititions in crash.test. (CVS 4027)
FossilOrigin-Name: f3c3412afa95e7e4b2e6477718785b51f5352c39
2007-05-23 06:25:13 +00:00
shess
8a7de08a8b Fix overzealous fts2 assertions WRT rowid 0 or lower. Only check that
docids are ascending if there was a prior docid set for the doclist,
ignore the initial docid of 0. (CVS 4026)

FossilOrigin-Name: ed3a131f1d3fe51d1e79bdfe1bfafa55f825afa9
2007-05-21 21:59:18 +00:00
drh
a408adc5cb Add the larger SQLite icon to the repository. (CVS 4025)
FossilOrigin-Name: d7539c6e8b66d537307e70aac5f2001135151c78
2007-05-19 11:50:36 +00:00
danielk1977
f85f935431 Add a few extra words to the sqlite3_finalize() documentation. (CVS 4024)
FossilOrigin-Name: 315dc71b921ffba514271a2ed571d5f4162c775f
2007-05-19 06:48:42 +00:00
danielk1977
b39f70b04a Change the way overflow pages are allocated from the free-list to increase the chance that they are a contiguous block. Much more can still be done. (CVS 4023)
FossilOrigin-Name: b7391892041eb72b0ebcbb7a9a6721ae3482dd80
2007-05-17 18:28:11 +00:00
danielk1977
6338c762a5 Bring the autoconf based build system up to date with the recent changes. #2366, #2367 and #2368. (CVS 4022)
FossilOrigin-Name: ae644bc7aad229f2d219ea20eb4774318feb3051
2007-05-17 16:38:30 +00:00
danielk1977
5b159dc312 Fix a problem with casting blobs to numeric types. (CVS 4021)
FossilOrigin-Name: f2ce727c4d798c666e95876a2b67e8a305d82e3a
2007-05-17 16:34:43 +00:00
danielk1977
63c64f3b8c Add speed3.test file. For testing performance issues related to overflow pages. (CVS 4020)
FossilOrigin-Name: 684f765df3e8a4836f254717d175a4a7b5e7d15f
2007-05-17 14:45:12 +00:00
danielk1977
f12737da7e Modify test scripts to allow for the fact that zeroblob() is not available when compiled with OMIT_INCRBLOB. Ticket #2365. (CVS 4019)
FossilOrigin-Name: 2ee959be4afa2cf05d183ff92a31dd1b5a84becf
2007-05-17 06:44:28 +00:00
danielk1977
92182323e0 Remove the SKIP_UTF16 macros (they are no longer in use). (CVS 4018)
FossilOrigin-Name: 73e654fbdc791daa10c49557bf479f152586ac28
2007-05-16 18:23:05 +00:00
danielk1977
a9c16b0a38 Fix handling of utf-16 encoding of code point 0xE000. (CVS 4017)
FossilOrigin-Name: bfc35ce8673ce51f726535b90c1d86be272848bb
2007-05-16 18:11:41 +00:00
danielk1977
2be2be92c4 Avoid passing a negative value to isspace() in a couple places. (CVS 4016)
FossilOrigin-Name: d5db8be3680e16a74edb385dfa3730c66d5f4fd6
2007-05-16 17:50:45 +00:00
danielk1977
1cc5ed8150 Change a few selected functions to macros to speed things up. (CVS 4015)
FossilOrigin-Name: 93f811ec747f6a42daf9ee27cd8b013f248552a1
2007-05-16 17:28:43 +00:00
danielk1977
246ad31db6 Omit some extra code when OMIT_INCRBLOB is defined. (CVS 4014)
FossilOrigin-Name: 1d89be287d34423b1a405cde0490260e7c731f07
2007-05-16 14:23:00 +00:00
drh
b36d20d4ae Add a --nostatic option to mksqlite3c.tcl. With this option turned on,
the extra "static" storage class markers are not inserted into the
amalgamation. (CVS 4013)

FossilOrigin-Name: 57e17c7cda23a3b3e1d0a691af07c35c1c644dcc
2007-05-16 13:55:26 +00:00
drh
cd7b46db84 Keep the full precision of integers if possible when casting to "numeric".
Ticket #2364. (CVS 4012)

FossilOrigin-Name: 2ac985a38034da87b0fa3837976e1f2164b22672
2007-05-16 11:55:56 +00:00
drh
056c8f782e Additional tests for malformed UTF-8. (CVS 4011)
FossilOrigin-Name: 448d3ef670dce6d27c7d7b1be58088d45f8b6274
2007-05-15 18:35:21 +00:00
drh
7e326c09c2 Make sure pParse->rc gets set whenever sqlite3ErrorMsg() is called. This is
added insurance that parsing will stop quickly after an error.  This change
did make the parser stop faster in some cases, which required some revisions
to tests. (CVS 4010)

FossilOrigin-Name: f84d9dab110c4415d9b772f8043397640162b6b2
2007-05-15 16:51:37 +00:00
drh
f076504b1c Remove the alternative UTF-16 implementation of SUBSTR(). It does not
work anymore and the UTF-8 version can do everything that the UTF-16
version does. (CVS 4009)

FossilOrigin-Name: 9b91502ef0ea9c0bfb8362c4b70314dc8449eb9e
2007-05-15 14:40:11 +00:00
drh
9a087a99e5 Relax the restriction on using bytes 0x80 through 0xbf as the first
character of an identifier.  Enhancements to ALTER TABLE tests for
tables with strange names or stange column names. (CVS 4008)

FossilOrigin-Name: 262a3e6339b31f269f8f07e43d295b90827e2779
2007-05-15 14:34:32 +00:00
drh
76cb812d25 Change the documentation to clearly state that the result of
sqlite3_column_type() is undefined following a type conversion. (CVS 4007)

FossilOrigin-Name: 960be575e2b062a34c96d006e411ad34ded58063
2007-05-15 14:17:25 +00:00
drh
150dbacea4 Fix to check-in (4005). A call to sqlite3_column_blob() should not make
subsequent calls to sqlite3_column_type() return SQLITE_BLOB.
Sqlite3_column_type() returns the initial type. (CVS 4006)

FossilOrigin-Name: b5e85deb5a0316781a6f39d6085b9fcfb9f88c6d
2007-05-15 14:10:40 +00:00
drh
1f0feef80b Clarification on the best practices for using the _bytes() APIs.
Change sqlite3_value_blob() to force the representation to be purely
a BLOB and not a dual BLOB/String.  Ticket #2360. (CVS 4005)

FossilOrigin-Name: cf2dd45b58380de7f3e167b5357848d12872caa3
2007-05-15 13:27:07 +00:00
drh
4a919118d3 A new approach for UTF-8 translation. (CVS 4004)
FossilOrigin-Name: 6c8ad2790eaede90b3f1ef62614e667178b2a8c4
2007-05-15 11:55:09 +00:00
drh
eab7f3fe8d Do not allow bytes 0x80 through 0xBF to be the first character of an
identifer because no valid UTF-8 character can begin with those bytes.
If we allowed an identifier to begin with one of those bytes, then the
substr() function in ALTER TABLE will not work correctly. (CVS 4003)

FossilOrigin-Name: 252810424d8c4dcd19b369d62027094df7cf0bcc
2007-05-15 09:00:14 +00:00
danielk1977
1ee506d792 Fix some test script errors in fuzz.test. (CVS 4002)
FossilOrigin-Name: 51eeae7b7ad5a0fbdd9d4418120dbdb6cd577cd5
2007-05-15 07:14:32 +00:00
danielk1977
15d7982ad8 A fix for queries that used correlated, compound sub-queries in the HAVING clause. Also update fuzz.test some more. (CVS 4001)
FossilOrigin-Name: da0c1ab4deedd2b952a43b3af6962a9403f8c9ee
2007-05-15 07:00:34 +00:00
drh
4e5dd85135 Fix problems in ALTER TABLE that occur when column or table names are
invalid UTF encodings. (CVS 4000)

FossilOrigin-Name: 9ff382f4584ff685a78b39f24424319709efb382
2007-05-15 03:56:49 +00:00
drh
e279195400 Fix a typo in a comment. Ticket #2359. (CVS 3999)
FossilOrigin-Name: 1fbbc108a9e7ad1dc22c08ee990e2b6b949784eb
2007-05-15 02:45:18 +00:00
drh
eaad32b1df Fix a bug in sqlite3_mprintf() which could have caused a buffer
overrun if malloc() failed. (CVS 3998)

FossilOrigin-Name: 5af49a57d4866be21c0206f34584bcc63adc1315
2007-05-15 02:34:09 +00:00
drh
f764e6fc3d The built-in substr() function applied to a BLOB counts bytes, not characters. (CVS 3997)
FossilOrigin-Name: 75d573080d03ee48fe88710f70c6875ff9cae19c
2007-05-15 01:13:47 +00:00
drh
2a9abf61c7 Make sure the parser aborts quickly following a syntax error. (CVS 3996)
FossilOrigin-Name: d07cdd3c096c120d104ae13f7932c0a955324517
2007-05-15 00:09:13 +00:00
danielk1977
a670b22641 Fix a problem with ORDER BY and compound SELECT queries. (CVS 3995)
FossilOrigin-Name: af76928fc5891f9a222ac0c39f8b443a9707b9e3
2007-05-14 16:50:48 +00:00
danielk1977
fa2bb6da24 Fix a bug in "flattening" optimization. Occured if the parent of the flattened sub-query is also the parent of a sub-query that uses a compound op (i.e. UNION, INTERSECT etc.). (CVS 3994)
FossilOrigin-Name: 1c33829c9ebcf1ff1bd21b161c73a642471b613a
2007-05-14 15:49:43 +00:00
danielk1977
1e4eaeb515 Prevent sub-queries with "LIMIT 0" from leaving an extra value on the vdbe stack. Also updates to fuzz.test. (CVS 3993)
FossilOrigin-Name: b1d1b16e9857a1c05f60cf2ae15f5a534b0dd0ac
2007-05-14 14:04:59 +00:00
drh
8fea1285f0 In the windows driver, reacquire the shared lock if an exclusive lock
fails.  Ticket #2354. (CVS 3992)

FossilOrigin-Name: fc489b53829aa25bc10cc47d679c81d95c746abf
2007-05-14 12:12:11 +00:00
drh
4f07e5fbdf Remove terms with operator TK_AS from the expression tree. Ticket #2356. (CVS 3991)
FossilOrigin-Name: 5627ff74be9242418434a06fe5c104d1f9128cab
2007-05-14 11:34:46 +00:00
drh
84f31128b2 Make REINDEX robust in the face of malloc() errors. (CVS 3990)
FossilOrigin-Name: dbe417745d3d4ed875715ad7083d7345d1b6a56f
2007-05-12 15:00:14 +00:00
drh
cf1be45fe2 Make the ANALYZE command robust in the face of malloc() failures. (CVS 3989)
FossilOrigin-Name: c08658e1f8598941ebddddb98942b98cfcb86e7a
2007-05-12 12:08:51 +00:00
danielk1977
39c9604a02 Fix another variant of the "IN (...)" b-tree problem. (CVS 3988)
FossilOrigin-Name: 260338c4b2b18c9f4da8bc7fe3eda306dcaa4e38
2007-05-12 10:41:47 +00:00
danielk1977
4aeff62ee0 Fix an obscure b-tree bug that applied to transient trees used for IN(...) expressions. (CVS 3987)
FossilOrigin-Name: 96c7232f8b208cd1c50063f7946bb6dbc386abd6
2007-05-12 09:30:47 +00:00
danielk1977
cdbd8eff21 Bugfixes for assert() failures found by fuzz.test. (CVS 3986)
FossilOrigin-Name: 2e80736d57fde55b112864d8b198a9a2fe0eaa38
2007-05-12 06:11:12 +00:00
danielk1977
1f7c83e286 Check in some changes to fuzz.test. Still failing. (CVS 3985)
FossilOrigin-Name: 6f346a6be9803b84260509352315f8fa1e820490
2007-05-11 16:58:03 +00:00
drh
6e736838bf Avoid multiple storage class specifiers ("static extern") in the amalagmation. (CVS 3984)
FossilOrigin-Name: 2f70159b1d6ded4a1ac446faa3baf7269f37703f
2007-05-11 12:30:03 +00:00
danielk1977
bcfc4bc769 Expand the expressions tested by fuzz.test. Fix for (CAST zeroblob() AS text). (CVS 3983)
FossilOrigin-Name: 4e1bb41f302c13095aa9c638e59ae11417f49682
2007-05-11 10:10:33 +00:00
danielk1977
d908f5ab7f Fix a problem with inserting zeroblob() into an indexed column. (CVS 3982)
FossilOrigin-Name: ccef5d2daaa5a88dd3f23666f022296ef42f9d73
2007-05-11 07:08:28 +00:00
drh
4e05c83bc3 Additional parsing bugs fixed. (CVS 3981)
FossilOrigin-Name: d12a8924c6083cdff14990b4fd036ca386c2e34a
2007-05-11 01:44:50 +00:00
drh
db83f8231f Make sure that the REGISTER token generates a valid Expr. REGISTER will
cause the tokenizer to abort, but the parser might do several reduce
actions prior to that abort and those reduce actions sometimes need a
valid Expr. (CVS 3980)

FossilOrigin-Name: d146f01a02579339c5dc86bbe59f246bd6c05c63
2007-05-11 00:20:08 +00:00
drh
e718efe113 When converting literal BLOBs to text using the encoding of the main
database.  Ticket #2349. (CVS 3975)

FossilOrigin-Name: a57afaff424448ffed8f2344e5eb461f503bfb6e
2007-05-10 21:14:03 +00:00
danielk1977
639f45ff06 Simplify failing case in fuzz.test. (CVS 3974)
FossilOrigin-Name: a54c74990caf22c0008a7029e24594e83048ffbc
2007-05-10 17:38:57 +00:00
danielk1977
f75232f748 Add cases to fuzz.test. Some tests in this file fail at the moment. (CVS 3973)
FossilOrigin-Name: 1e8fcb3fbed7beb8bb1370953ecf3d4b9db01ede
2007-05-10 17:32:48 +00:00
drh
53c1402157 Add some UTF-8 test infrastructure. Treat NaN as NULL. The printf routines
print infinity as "Inf" not as "NaN".  Ticket #2345. (CVS 3972)

FossilOrigin-Name: ffe615a71107a38b6f60c7baf4284a5b0aecdc22
2007-05-10 17:23:11 +00:00
danielk1977
def0fec8e0 Add new test file fuzz.test, to test SQLite with fuzzily generated SQL. (CVS 3971)
FossilOrigin-Name: 1e9e6fe75d01d8cf4e1a23505c45f28491f1e902
2007-05-10 15:37:52 +00:00
drh
85892bde6f Fix a C++ism in func.c. (CVS 3970)
FossilOrigin-Name: 9c0050a10c6bea75ada902c16eb28eb3cf864718
2007-05-10 13:23:22 +00:00
danielk1977
89a43bc588 Another test for overflow in strftime(). It was not broken. (CVS 3969)
FossilOrigin-Name: 5800d0327ebc122e679ef860b58098b3c08eb709
2007-05-10 11:43:53 +00:00
danielk1977
fc9760654a Add code to enforce the MAX_EXPR_DEPTH limit. (CVS 3968)
FossilOrigin-Name: 2c9c94a24d52a1c9f5d1b32cbdff794a2dd74126
2007-05-10 10:46:56 +00:00
drh
e305f43f17 Make sure compound queries inside a subquery only return a single result
column.  Ticket #2347. (CVS 3967)

FossilOrigin-Name: 66954bdd81dabfb60306de8480b5477a4acb1d9e
2007-05-09 22:56:39 +00:00
drh
6fa51035c3 Fix a typo in a comment. Ticket #2348. (CVS 3966)
FossilOrigin-Name: c0dbac46301039246afd4bebb71dd8184fc5c0c7
2007-05-09 20:35:31 +00:00
drh
b63f274589 Fix a problem with strange expressions being fed to an ATTACH or DETACH
statement. (CVS 3965)

FossilOrigin-Name: 0c91dc9ee0c5d441a7789b631476515260cb887f
2007-05-09 20:31:29 +00:00
danielk1977
de3bea7ba4 Fix an obscure cache corruption that could occur after an SQLITE_FULL error. (CVS 3964)
FossilOrigin-Name: e8e879aca67dee959bab42627028964c474da72f
2007-05-09 15:56:39 +00:00
danielk1977
832b2664e6 Add further test cases for compile time limits. (CVS 3963)
FossilOrigin-Name: 9bf2c594a48a4661700f0833562ee2b3ff7b761c
2007-05-09 11:37:22 +00:00
danielk1977
b56fe1ff27 Fix enforcement of the LIKE_PATTERN limit. (CVS 3962)
FossilOrigin-Name: 8819617b7cf7ccd64bf6bb4ba208f37126964ec2
2007-05-09 08:24:44 +00:00
drh
37cd66a6a0 Remove a keyword from the header comment in date.c (CVS 3961)
FossilOrigin-Name: 03349ec0be208fd8701d94515a2ed13129cb8422
2007-05-08 21:56:00 +00:00
drh
87cc3b3180 Remove compiler warnings in the amalgamation. (CVS 3960)
FossilOrigin-Name: c5754530c6b1a8151c558f33d27fed70c95a988b
2007-05-08 21:45:27 +00:00
drh
cf1023c08d Disable tracing pragmas when not in debug mode. This eliminates an external
dependency on stdout. (CVS 3959)

FossilOrigin-Name: 5a0fe9854849bf3f04008a5dbb7a74e7d0d815ca
2007-05-08 20:59:49 +00:00
drh
ee85813c94 Fix the amalgamation generator so that all non-API functions have file scope. (CVS 3958)
FossilOrigin-Name: e9f56ead0514f3eac75807ea710c1f035b8add4f
2007-05-08 20:37:38 +00:00
drh
52d19f65e3 Update the release builder script. (CVS 3957)
FossilOrigin-Name: 21299b917812920c70001c2d3d9b65f66eca6b24
2007-05-08 18:30:36 +00:00
danielk1977
b4fc679463 Fix a null-pointer dereference that follows a malloc() failure introduced in (3954). (CVS 3956)
FossilOrigin-Name: 251ba1981e32fb80818965ffe1ef455069e88abd
2007-05-08 18:04:46 +00:00
drh
84708bc93b Update the amalgamation builder for the latest changes. (CVS 3955)
FossilOrigin-Name: becd64d3615fc5738da4c70610d8849e0a70bed8
2007-05-08 17:59:42 +00:00
danielk1977
7a15a4beef Add a few more tests to sqllimit1.test. (CVS 3954)
FossilOrigin-Name: eeee6b71e5643511320cbe15bafa170cfd02877f
2007-05-08 17:54:43 +00:00
danielk1977
428de1c03a Add a test case that uses a trigger to insert many rows to sqllimits1.test. (CVS 3953)
FossilOrigin-Name: 6368222558d00f968b49f862bfe672573e86fbcf
2007-05-08 16:13:45 +00:00
danielk1977
b0ab63cd8e Add new test file sqllimits1.test. (CVS 3952)
FossilOrigin-Name: c8974603976ebc02edbc9ab271e87e57f8eb365e
2007-05-08 15:59:05 +00:00
drh
2e6400ba9e Do not allocate so much surplus memory in the implementation of the
replace() function. (CVS 3951)

FossilOrigin-Name: 0cf518ceebda8e7421d054813f97cc447d292344
2007-05-08 15:46:18 +00:00
drh
beb818d1fd Limit the length of the patterns on LIKE and GLOB to avoid problems with
deep recursion and N^2 behavior. (CVS 3950)

FossilOrigin-Name: 42e6c826998e69462462b0787d3650246d36f3b5
2007-05-08 15:34:47 +00:00
drh
a0206bc81c Introduce the (experimental) sqlite3_result_error_toobig() API that
function implementations can use to signal SQLite that the function
result is too big to represent. (CVS 3949)

FossilOrigin-Name: 17c4235c492f746867c1d2b8621043b93f8aa10e
2007-05-08 15:15:02 +00:00
drh
f8e632b630 Add the max_page_count pragma used to limit the maximum size of a database
file.  Untested. (CVS 3948)

FossilOrigin-Name: b1b74f06688fd90fcaf54cf95e2e7beeb5fc1040
2007-05-08 14:51:36 +00:00
danielk1977
17374e8f94 Fix a potential buffer overrun in the replace() function. (CVS 3947)
FossilOrigin-Name: b0fb4a3cf6ddbc17ccd0c719b34a720d9090bc93
2007-05-08 14:39:04 +00:00
drh
e5c941b83b Add more code to enforce the limits specified in limits.h. (CVS 3946)
FossilOrigin-Name: c59d436095b5258d7132a432c0cb6cd5a7990d85
2007-05-08 13:58:26 +00:00
danielk1977
4b5710e486 Avoid evaluating (INT_MIN/-1) with 32 bit signed numbers. It can cause SIGFPE. (CVS 3945)
FossilOrigin-Name: 2f186e916c982cde557e0bc1b925b10e6d58f8a1
2007-05-08 13:57:34 +00:00
danielk1977
dce872b94e Do not crash in the internal functions sqlite_rename_table() or sqlite_rename_trigger() if they are somehow passed unexpected input. (CVS 3944)
FossilOrigin-Name: c2f90b465e37ea49c9e44415f6461e4f636bb64f
2007-05-08 12:37:45 +00:00
drh
023ae03a72 Begin adding code to explicitly limit the size of strings and blobs. (CVS 3943)
FossilOrigin-Name: 031a5915b68ec6827fee38b8b9dc74a9e0e09302
2007-05-08 12:12:16 +00:00
drh
7a7364cee8 Fix a bug in the test logic introduced by check-in (3928). (CVS 3942)
FossilOrigin-Name: 47d1678d2d795196e51b7f0f185198f2b338636b
2007-05-08 11:27:15 +00:00
drh
c797d4dccd Begin implementing a new system of upper bounds on the capabilities
of SQLite.  By clearly defining the upper bounds, we make those
upper bounds explicitly testable.  This check-in is just infrastructure.
The upper bounds are not yet enforced. (CVS 3941)

FossilOrigin-Name: 93b623b232a43f78d2c90bfa2389dd5b28ad7280
2007-05-08 01:08:49 +00:00
drh
02d858364b Fix an NULL deref in the randomblob() function following a malloc failure. (CVS 3940)
FossilOrigin-Name: 011e7db253f9a60c19977215eab1687930f15637
2007-05-07 19:31:15 +00:00
danielk1977
7de68a097e Add a version of the LIKE operator to the icu extension. Requires optimisation. (CVS 3939)
FossilOrigin-Name: 3e96105c1f084a4ab4dad4de6f4759e43fc497f7
2007-05-07 16:58:02 +00:00
danielk1977
a393c03686 Change the name of create_collation_x() to create_collation_v2(). Also add some tests for it. (CVS 3938)
FossilOrigin-Name: ddc4e4797ff902692c4f0d86ec5f4e94cc7f0741
2007-05-07 14:58:53 +00:00
drh
9e91c756a1 Fix typo in Makefile.in. Ticket #2343 (CVS 3937)
FossilOrigin-Name: db51f59a7bb7530f919858e2c51057839f6c9f4d
2007-05-07 13:11:10 +00:00
danielk1977
2559136971 Add interface to configure SQLite to use ICU collation functions. (CVS 3936)
FossilOrigin-Name: b29a81b4fbb926fa09186340342848b9fe589033
2007-05-07 11:53:13 +00:00
drh
6885390791 Change sqlite3_snprintf() so that it does not write a zero-terminator if
the buffer size argument is less than 1.  Ticket #2341.  Added documentation
about the sqlite3_snprintf() function. (CVS 3935)

FossilOrigin-Name: f3ae4ac5fe0bfa2f91e76a6def86c444e51fe80b
2007-05-07 11:24:30 +00:00
danielk1977
a9808b31a8 Add the experimental create_collation_x() api. (CVS 3934)
FossilOrigin-Name: ff49d48f2f025898a0f4ace1fc227e1d367ea89f
2007-05-07 09:32:45 +00:00
drh
a58906a8dd Fix missing word in the copyright.html web page. (CVS 3933)
FossilOrigin-Name: 2d1348dda2cbdf958a15267432063f359550c303
2007-05-06 21:20:43 +00:00
drh
ad91c6cd40 Do not flatten subqueries that are part of a compound SELECT and which
have both an ORDER BY and a LIMIT clause.  Ticket #2339. (CVS 3932)

FossilOrigin-Name: 9600a998043c6dd1d5ecb03d1ee9a9273910243d
2007-05-06 20:04:24 +00:00
danielk1977
83852acc44 Add the start of the ICU extension. (CVS 3931)
FossilOrigin-Name: f473e8526770b6a332dfde3e1fd1ddf8df493e9a
2007-05-06 16:04:11 +00:00
drh
d230f648de Add "Powered By SQLite" logo contributed by Alberto Simoes. (CVS 3930)
FossilOrigin-Name: 25cfa7740a0899511d9200d99c2617c45ff00f32
2007-05-05 22:45:00 +00:00
drh
db6f6a7737 Fix a header problem introduced in the previous check-in. (CVS 3929)
FossilOrigin-Name: bece7a6bae3a52da03c25b577e15a648eb91805a
2007-05-05 18:49:53 +00:00
drh
16a9b8363d Factor out btree test logic into a separate test_btree.c file. (CVS 3928)
FossilOrigin-Name: d51274f1cc3a75f6a03e90259ce829ac1dacf78f
2007-05-05 18:39:25 +00:00
drh
59df4cda00 Fix a sprintf() problem introduced by (3916). (CVS 3927)
FossilOrigin-Name: 54a1d275aa0154a88d433a3c4df538d52c2c3ecb
2007-05-05 12:06:24 +00:00
drh
c4c6b2a23d Refactoring. Split btreeInt.h off from btree.c. Split malloc.c off from
util.c.  Expect much more to follow. (CVS 3926)

FossilOrigin-Name: ad549a40ed3500fb3d552ed19ff791d1280e0b62
2007-05-05 11:48:52 +00:00
drh
a315289571 Refactoring. Split btreeInt.h off from btree.c. Split malloc.c off from
util.c.  Expect much more to follow. (CVS 3925)

FossilOrigin-Name: 16041116aaaa2d52a289aa02a24bef579ba60896
2007-05-05 11:48:52 +00:00
drh
4500c430b0 Add documentation on the incremental vacuum feature. (CVS 3924)
FossilOrigin-Name: b3e2cdaed3638f033437b5561705cb253449c392
2007-05-04 19:16:30 +00:00
danielk1977
32a0d8bb8c Fix compilation and testing with OMIT_INCRBLOB defined. (CVS 3923)
FossilOrigin-Name: a0f8adc692839d0645daf0630533a87b0543f6e8
2007-05-04 19:03:02 +00:00
danielk1977
dcbb5d3f47 Test interaction of incremental io and other database writes. (CVS 3922)
FossilOrigin-Name: 4516416b4d38679ea7d259155f241e54c4c58d7d
2007-05-04 18:36:44 +00:00
drh
ca5557f91d Change incremental vacuum to be triggered by a pragma rather than a command.
We have a lot to learn about this yet and we do not want to paint ourselves
into a corner by commiting to specific syntax too early. (CVS 3921)

FossilOrigin-Name: b13e497a326697ab42b429993a1eee7df3c0c3eb
2007-05-04 18:30:40 +00:00
drh
744f2f4658 Tighter compression of the keyword hash table. (CVS 3920)
FossilOrigin-Name: 681216767d7fabfccb0b12f6a81b18b6d1c252bf
2007-05-04 17:07:52 +00:00
drh
9c61cd77a5 Optional parameter in the INCREMENTAL VACUUM statement specifies how many
pages to vacuum from the database. (CVS 3919)

FossilOrigin-Name: ed713f9ccb5d0f306a79ab9931e43db2327fb435
2007-05-04 16:14:38 +00:00
drh
847d3ab43d Get tests working with SQLITE_OMIT_AUTOVACUUM=1. (CVS 3918)
FossilOrigin-Name: b94d39e4d903bc34a9d0bbedd971677abc0ddfc0
2007-05-04 14:36:22 +00:00
drh
4f5c74e6ec Make "incremental" a fallback token so that you can set
"auto_vacuum=incremental"
without having to quote the "incremental". (CVS 3917)

FossilOrigin-Name: 9d7a2e2bb41e7baed2cdcf199cb04d7aef19c010
2007-05-04 14:14:45 +00:00
drh
5bb3eb9b9a Eliminate all uses of sprintf() and strcpy(). These were not being
misused.  But getting rid of them removes a library dependency.  And
it avoids warnings from the OpenBSD compiler.  Ticket #2336. (CVS 3916)

FossilOrigin-Name: ba4845b32bdf38e623c4f7246e6e327715bbba4b
2007-05-04 13:15:55 +00:00
danielk1977
92d4d7a92e Test cases and corrections to IO and malloc() error handling in incremental blob IO functions. (CVS 3915)
FossilOrigin-Name: 641e55284e1ba6070073c83ac6ed78ffb29f7e60
2007-05-04 12:05:56 +00:00
drh
126afe6b59 Fix a formatting errror in I/O logging. (CVS 3914)
FossilOrigin-Name: 2d37687a08a7b6b3a7f77f55a7c2e29a1f8731a8
2007-05-04 12:01:02 +00:00
drh
110daac9a1 Add compile-time option -DSQLITE_MIXED_ENDIAN_64BIT_FLOAT=1 that uses
mixed-endian doubles.  This is needed on ARM7 to make database file
formats compatible with all other processors.  Tickets #2278 and #2335. (CVS 3913)

FossilOrigin-Name: 2a178d0c7950c9d403c0bc43c2043de945fb24e0
2007-05-04 11:59:31 +00:00
danielk1977
da10719890 Rework accessPayload() function for clarity. (CVS 3912)
FossilOrigin-Name: 42d07c70ec1eb6dd9619c97d753c9d2824aeae32
2007-05-04 08:32:13 +00:00
vapier
acf1a933ca fix from Gentoo for allowing TCLLIBDIR to be overridden in env (CVS 3911)
FossilOrigin-Name: e54a49e264ecd54083587f8d3b17cce4c811fddc
2007-05-03 20:06:11 +00:00
danielk1977
f1819244aa Test some more incremental IO error cases. (CVS 3910)
FossilOrigin-Name: 64705410bdf43b6283f7a7e59ce8c20d09cd46e4
2007-05-03 18:14:10 +00:00
drh
ae5e445b34 Improvements to I/O tracing output. Require -DSQLITE_ENABLE_IOTRACE when
compiling shell.c in order to link in the I/O tracing capability. (CVS 3909)

FossilOrigin-Name: 8a43e1676fdd29903e0b3f9d3b05d217d42962b8
2007-05-03 17:18:36 +00:00
drh
3f75584a30 Get the amalgamation builder working with incremental I/O. (CVS 3908)
FossilOrigin-Name: 92b53601657be3f1be70873b2960cd97b97f72a1
2007-05-03 16:55:32 +00:00
danielk1977
8cbadb0211 Test cases and minor bugfixes for incremental blob APIs. (CVS 3907)
FossilOrigin-Name: e12c522383bd40af375a52d2e68612c4dc7fd4db
2007-05-03 16:31:26 +00:00
danielk1977
44e6c8d3cf Fix a bug where accessPayload() was calling PagerWrite() on the wrong page handle. Ticket #2332. (CVS 3906)
FossilOrigin-Name: cf9eeba7be64ad29cddd320832db10c799fb6e8e
2007-05-03 13:11:32 +00:00
drh
f68d7d17a1 Use memmove() instead of memcpy() when moving between memory regions that
might overlap.  Ticket #2334. (CVS 3905)

FossilOrigin-Name: 678d672b73cc7b7f563c15daee3831cb5bbd890e
2007-05-03 13:02:26 +00:00
danielk1977
cdf1c4d21f Minor bugfixes for incrblob mode. (CVS 3904)
FossilOrigin-Name: b84d597c902d60341607bc405440603868ac52c8
2007-05-03 11:43:34 +00:00
danielk1977
20713f34a5 Minor bugfixes for incrblob mode. (CVS 3903)
FossilOrigin-Name: db54a9466e3bea9c03740ce0b755cfa02bafaccd
2007-05-03 11:43:33 +00:00
drh
b7af4452d9 Allow CREATE TABLE to occur while other queries are running. DROP TABLE is
still prohibited, however, since we do not want to delete a table out
from under an running query. (CVS 3902)

FossilOrigin-Name: 5b4bf1fce4d589337cfb1b46d75c751bbdc607d5
2007-05-02 17:54:55 +00:00
danielk1977
9f8d64009e Combine the internal btree functions BtreePutData() and getPayload(). (CVS 3901)
FossilOrigin-Name: a100a5304b0e7cbbdb6dac71a39c78eb71d44a03
2007-05-02 17:48:45 +00:00
drh
ae7e151a24 More fixes and improvements to the zeroblob() mechanism. (CVS 3900)
FossilOrigin-Name: 83ab25014e890b1cc6ea08ca1ebeeee0078da466
2007-05-02 16:51:59 +00:00
danielk1977
2dec97077b Cache the location of overflow pages in cursors used for incremental blob IO. (CVS 3899)
FossilOrigin-Name: 349f1ea7895f06c40affc985a13aa6686dfdea07
2007-05-02 16:48:37 +00:00
drh
7a928d75f4 Fix an invalid UTF8 encoding in the tests for the trim function. (CVS 3898)
FossilOrigin-Name: 4dbbfff4a7d4be197aac19c80400dafe10dd5e58
2007-05-02 15:36:01 +00:00
drh
fdf972a9ba Add support for zero-blobs to the OP_MakeRecord opcode.
First test cases of zeroblob functionality. (CVS 3897)

FossilOrigin-Name: e6d560ddeeb48fb0cbd9f5a10612280b055baef7
2007-05-02 13:30:27 +00:00
danielk1977
d04417963f Use the pointer-map pages to make the incremental blob API more efficient. (CVS 3896)
FossilOrigin-Name: 93a3bf71d576096f4b5a3db256ca6f9b5521d137
2007-05-02 13:16:30 +00:00
drh
8cff382e7d Fix some compiler warnings. Add the (untested) zeroblob() SQL function. (CVS 3895)
FossilOrigin-Name: 6f4f8ba7ec15f214f36fa78e593dd4522ab717f5
2007-05-02 02:08:28 +00:00
drh
b026e05eb2 Begin adding the zeroblob API to support incremental blob i/o. (CVS 3894)
FossilOrigin-Name: 7a01836dde45098796693bc6cb6045c4059adf1a
2007-05-02 01:34:31 +00:00
shess
290283fe69 Enable prefix-search in query-parsing and snippet generation. If the
character immediately after the end of a term is '*', that term is
marked for prefix matching.  Modify term comparison in
snippetOffsetsOfColumn() to respect isPrefix.  fts2n.test runs prefix
searching through some obvious test cases. (CVS 3893)

FossilOrigin-Name: 7c4c65924035d9f260f6b64eb92c5c6cf6c04b7b
2007-05-01 18:25:52 +00:00
danielk1977
b4e9af9ff9 First approximation of incremental blob IO API. (CVS 3892)
FossilOrigin-Name: c444836e7b690c16dd6acff571c613a23beb42dc
2007-05-01 17:49:49 +00:00
shess
cc3e986643 Modify loadSegmentLeavesInt() to correctly handle prefix searching.
The new function docListUnion() is used to accumulate a union of the
hits for the matching terms, which will be merged across segments
using docListMerge(). (CVS 3891)

FossilOrigin-Name: 72c796307338c2751a91c30f6fb16989afbf3816
2007-05-01 17:14:59 +00:00
drh
c80f058db3 The pager takes the sector size to be the larger of the sector size
reported by sqlite3OsSectorSize() and the page size. (CVS 3890)

FossilOrigin-Name: e5e6af55ccc5c1a8a9206b42f1dd7bf547cb97ca
2007-05-01 16:59:48 +00:00
shess
0b6212090f Propagate prefix flag through implementation of doclist query code.
Also implement correct prefix-handling for traversal of interior nodes
of segment tree.  A given prefix can span multiple children of an
interior node, and from there the branches need to be followed in
parallel. (CVS 3889)

FossilOrigin-Name: cae844a01a1d87ffb00bba8b4e7b62a92e633aa9
2007-04-30 22:09:36 +00:00
drh
276fdbfd61 Fix a potential segfault following a malloc() failure during a call
to sqlite3_prepare() where the nBytes parameter is positive but less than
the length of the input SQL string. (CVS 3888)

FossilOrigin-Name: 27bf3fc3cf3c9c7acdbf9281a4669c9f642b0097
2007-04-30 21:39:16 +00:00
shess
f055154108 Lift docListMerge() call out of loadSegmentLeavesInt() for prefix
search.  Doclists from multiple prefix matches will need a union merge
function, which will have to logically happen across a segment before
doclists are merged between segments. (CVS 3887)

FossilOrigin-Name: 7ddb82668906e33e2d6a796f2da1795032e036d5
2007-04-30 17:52:51 +00:00
danielk1977
8c0a959f35 Try to avoid reading pages when moving overflow chains to the free-list. (CVS 3886)
FossilOrigin-Name: 8cccec68bd9073b2b19d3d31cf0b77b0ce76172e
2007-04-30 16:55:00 +00:00
danielk1977
b4626a3e16 Add some tests (and 2 resulting bug fixes) to incr vacuum mode. (CVS 3885)
FossilOrigin-Name: 89b1b3f897bda1fffceb9cf72fa4d42b809ccb8e
2007-04-28 15:47:43 +00:00
shess
8ffcadb57e Break interior-node and leaf-node readers apart in loadSegment().
Previously, the code looped until the block was a leaf node as
indicated by a leading NUL.  Now the code loops until it finds a block
in the range of leaf nodes for this segment, then reads it using
LeavesReader.  This will make it easier to traverse a range of leaves
when doing a prefix search. (CVS 3884)

FossilOrigin-Name: 9466367d65f43d58020e709428268dc2ff98aa35
2007-04-27 22:02:57 +00:00
drh
d1e3a616ca Internationalize the TRIM functions. Ticket #2323. (CVS 3883)
FossilOrigin-Name: ff1f4e744728c8f55afae265246797b30fe98fb0
2007-04-27 21:59:52 +00:00
shess
ac7b2dd518 Lift code to traverse interior nodes out of loadSegment().
Refactoring towards prefix searching. (CVS 3882)

FossilOrigin-Name: 25935db73877c0cb132acb30c2fed2544d0e5e32
2007-04-27 21:24:18 +00:00
shess
1c7ebb0805 Refactor fts2 loadSegmentLeaf() in preparation for prefix-searching.
Prefix-searching will want to accumulate data across multiple leaves
in the segment, using LeavesReader instead of LeafReader is the first
step in that direction. (CVS 3881)

FossilOrigin-Name: 22ffdae4b6f3d0ea584dafa5268af7aa6fdcdc6e
2007-04-27 21:01:59 +00:00
drh
9310ef23e2 Make sure sqlite3_value_bytes() does not reformat the content after a
call to sqlite3_value_blob().  Add documentation to explain this hazard.
Add many new tests.  Ticket #2321. (CVS 3880)

FossilOrigin-Name: e92bd97a3726bbb7978489e2994747127c4aefcf
2007-04-27 17:16:20 +00:00
danielk1977
ba6d351486 Extra tests for incremental vacuum. (CVS 3879)
FossilOrigin-Name: 40ba6493e9e8ba135552a2a0943ab499713ac001
2007-04-27 07:55:37 +00:00
danielk1977
e5321f0e75 Modifications to btree integrity check so that it can be run inside a transaction after an incr vacuum. (CVS 3878)
FossilOrigin-Name: 4d4180d6474d8d74460fb9333580b9b60c89f353
2007-04-27 07:05:44 +00:00
drh
709cff33dc The replace() function should return NULL if the second argument is an
empty string.  Ticket #2324. (CVS 3877)

FossilOrigin-Name: e6a0c90dd9b4f7efe2153dd0c899b6e3d9846bd8
2007-04-27 01:18:02 +00:00
danielk1977
dddbcdcc68 Add largely untested code for the incremental vacuum function. (CVS 3876)
FossilOrigin-Name: f6a6d2b8872c05089810b1e095f39011f3035408
2007-04-26 14:42:34 +00:00
drh
d33d5a8978 In the pager, load the content of pages which were initialized with
noContent==1 if they are subsequently requested with noContent==0. (CVS 3875)

FossilOrigin-Name: d0745a43b6e037d16e1ec38c7c4d961a80d1ef48
2007-04-26 12:11:28 +00:00
drh
7a521cfb79 Fix segfaults that can occur if a malloc failure happens just before
a built-in function calls sqlite3_value_text(). (CVS 3874)

FossilOrigin-Name: 9cb0ed6ee9827bc6884a0195044d5b6ad0de698e
2007-04-25 18:23:52 +00:00
drh
0b3d55d4f9 Disable tests in misc7 that do not work on windows due to limitations of
the windows file system. (CVS 3873)

FossilOrigin-Name: 66646d6fda067e19240808aef65fafd8fa177cdd
2007-04-25 15:42:25 +00:00
drh
c9d96efd0b Version 3.3.17 (CVS 3872)
FossilOrigin-Name: 16979f4525652bfd6c6e5306eafc883bef3880aa
2007-04-25 12:07:22 +00:00
drh
2824d55a99 Fix a file descriptor leak in the exclusive2 test script. (CVS 3871)
FossilOrigin-Name: 2d2e68da74459340c262a6454fdd05149bc94c59
2007-04-25 12:06:58 +00:00
drh
cd9b721eb6 Preparing for the release of 3.3.17. (CVS 3870)
FossilOrigin-Name: e278c4ef601eebeb5a4f89baf8b29a6794c403f1
2007-04-25 11:42:32 +00:00
drh
b556ce15ca Fix duplicate test IDs in the test suite. No changes to code. Ticket #2319. (CVS 3869)
FossilOrigin-Name: 0935cdf82a0be599421881117a981d315933bb7e
2007-04-25 11:32:30 +00:00
drh
e0e11e2df6 Fix a bug in the sqlite3_changes() function reported on the mailing list. (CVS 3868)
FossilOrigin-Name: 58ea768c3e9905bd9db137f1b31dd3dd6c6001d0
2007-04-25 11:28:16 +00:00
drh
1831f18c84 This fixes a missed case in check-in (3866). Do not apply patch (3866)
without also applying this patch. (CVS 3867)

FossilOrigin-Name: 66c2fa0836089f360b1c3343df84b73e8d89b293
2007-04-24 17:35:59 +00:00
drh
309169a118 When the write_version flag in the database header is larger than what
the library understands, make the database read-only.  The old behavior
was to make the database unreadable. (CVS 3866)

FossilOrigin-Name: 10648e99929b4f640855433b6e47702687039286
2007-04-24 17:27:51 +00:00
drh
af30469d67 Get the build working with -DSQLITE_OMIT_UTF16=1. Ticket #2314. (CVS 3865)
FossilOrigin-Name: 25c1c7aaa8ef203120c2c242cf72ce4750f78abd
2007-04-23 23:56:31 +00:00
drh
6ed34c59c5 Add the ability to turn the FTS2 module into an amalgamation. (CVS 3864)
FossilOrigin-Name: 94374654ccabb391f5dcccfc88176ca677c5804e
2007-04-21 16:37:48 +00:00
drh
cad651e022 Remove the ARRAYSIZE macro from where.c to avoid a name conflict with
microsoft header files.  Ticket #2311 (CVS 3863)

FossilOrigin-Name: 9389a15f35f854c88440e365d85b48af3ff76b00
2007-04-20 12:22:01 +00:00
shess
3b2f10cd8f Fix bug in fts2 handling of OR queries. When one doclist ends before
the other, the code potentially tries to read past the end of the
doclist.  http://www.sqlite.org/cvstrac/tktview?tn=2309 (CVS 3862)

FossilOrigin-Name: dfac6082e8ffc52a85c4906107a7fc0e1aa9df82
2007-04-19 18:36:32 +00:00
danielk1977
0b83fa8297 Better fix than (3860) for the same problem. (3860) could leave file-handles open in some circumstances. (CVS 3861)
FossilOrigin-Name: 5ad645339b2a3a280651447dceda67645ff8e96d
2007-04-19 14:48:37 +00:00
danielk1977
4ea0d2e528 Fix a crash that can occur if an error happens in a virtual table xSync() function. (CVS 3860)
FossilOrigin-Name: d1afdd8c9c756409275c116e662fc1e04bbe829e
2007-04-19 14:28:08 +00:00
drh
5f7b5bf419 Comment changes in the ioerr tests. No changes to code. (CVS 3859)
FossilOrigin-Name: b7ed0e1e88a019c830f56abb14658104a30a1c43
2007-04-19 12:30:54 +00:00
danielk1977
7e29e9561c Fix a bug whereby sqlite3_prepare_v2() could return both an out-of-memory error and a valid statement handle. (CVS 3858)
FossilOrigin-Name: 8795d11c3c5bb39d34bc5194621ce97097a320e7
2007-04-19 11:09:01 +00:00
drh
e960153ba2 Get the build working with SQLITE_OMIT_SHARED_CACHE. Ticket #2307. (CVS 3857)
FossilOrigin-Name: b623538c559498b858fd9088faf0f3457b024968
2007-04-19 00:24:34 +00:00
drh
5ffb3ac844 Fix a && where & was intended. This is a real problem, but it would be
very difficult to devise a test case where it might lead to an unexpected
result.  Ticket #2306. (CVS 3856)

FossilOrigin-Name: 7f9f0444ed1a85ed682b604fded535bff5be1535
2007-04-18 17:07:57 +00:00
danielk1977
7fa5dd1a8f Better handle malloc() failures in the "echo" virtual table test module. (CVS 3855)
FossilOrigin-Name: 6881f9212fea0e0a98045b0acc60151eeaf5839e
2007-04-18 17:04:00 +00:00
drh
83968c44a5 The sqlite3_step() routine reports SQLITE_ERROR after a commit failure,
not SQLITE_DONE.  This fix only effects the legacy sqlite3_prepare()
interface.  It already worked correctly with sqlite3_prepare_v2(). (CVS 3854)

FossilOrigin-Name: 165dc72d7024258e225c8a7d60118071282f0f44
2007-04-18 16:45:24 +00:00
drh
bc3d2b6ac9 Version 3.3.16 (CVS 3853)
FossilOrigin-Name: 8c6b5adb5c9e0322098e15a162e80a98259d7f60
2007-04-18 15:33:52 +00:00
danielk1977
417d724069 Fix an assertion failure caused by (3851). (CVS 3852)
FossilOrigin-Name: 24683f1d29c5d312d6cabe2dde52d7c0424f629a
2007-04-18 14:47:23 +00:00
danielk1977
0125683288 Minor changes (mainly to assert() macros) to handle malloc failure in vtab operations. (CVS 3851)
FossilOrigin-Name: 175156d1fcaadab3b955597abb27f6b9043bbb5b
2007-04-18 14:24:32 +00:00
drh
0403f54a8a Bump the version number and update documents in preparation for 3.3.16. (CVS 3850)
FossilOrigin-Name: 852100a332d9f602e5f6285d2b7e19a3060c6162
2007-04-18 13:49:37 +00:00
danielk1977
896e792463 Avoid reloading the db schema after a failed OP_VerifyCookie if the in-memory schema cookie already matches the database file. (CVS 3849)
FossilOrigin-Name: 61c1d06d10257575e1406303af331bcc4d00deb0
2007-04-17 08:32:33 +00:00
drh
5ea2df9107 Fix a memory leak introduced by (3842) associated with ticket #2296. (CVS 3848)
FossilOrigin-Name: cdc7608b8d590b2ca19be37f94f2cd17423ba8ac
2007-04-16 17:07:55 +00:00
danielk1977
113e545f45 Add test cases to make sure virtual tables cannot be used in shared-cache mode. (CVS 3847)
FossilOrigin-Name: 66e468adfcf0132e558a666b847ce7c1e024d6fd
2007-04-16 15:49:41 +00:00
drh
505a112384 Make it clear in the docs that virtual tables and shared cache do not
play well together. (CVS 3846)

FossilOrigin-Name: 62ef2b1127e76eae0f76ac51f8238446763a3aac
2007-04-16 15:35:23 +00:00
danielk1977
a04a34ff1a Ensure sqlite3_finalize() can be called from within the xDisconnect() method of virtual tables. (CVS 3845)
FossilOrigin-Name: 8d6c3bfc4dfdd380a2915d778e256d3e49d22d72
2007-04-16 15:06:25 +00:00
drh
86a88114fa Detect database file changes using a 128-bit segment of the file header
that includes the change counter.  Ticket #2303. (CVS 3844)

FossilOrigin-Name: e44995debf2456e55b502783849e93a045a527c8
2007-04-16 15:02:19 +00:00
drh
9e4e6e502f Update the whentouse.html document to mention that less bitmap memory
is used for larger page sizes. (CVS 3843)

FossilOrigin-Name: 2c8e2a5be34cdfe11ef22bd6f78ec0519f497392
2007-04-14 12:04:39 +00:00
drh
94ccde58d0 Match ORDER BY terms to columns using names in compound queries. Make sure
this works for subqueries, especially in the right-hand side of an IN
operator. Ticket #2296. (CVS 3842)

FossilOrigin-Name: cfc6f933dc60ca88ae848f7f0c402e820437c2ff
2007-04-13 16:06:32 +00:00
drh
d215acf1f4 Fix a bug in autovacuum introduced by (3839). (CVS 3841)
FossilOrigin-Name: e39efa195a28f1cd7431b0811bd908dc7af3c8b1
2007-04-13 04:01:58 +00:00
drh
6558db80c0 Additional tests designed to detect future performance regressions. (CVS 3840)
FossilOrigin-Name: 764e7262b93a7a5073128ecd4db265b0c728a701
2007-04-13 03:23:21 +00:00
drh
538f570cd1 Fix multiple performance regressions (ticket #2298 among them)
and add tests to make sure they do not come back. (CVS 3839)

FossilOrigin-Name: 32bb2d5859906b4fb0f6083eedd7f3a81b9cf5e2
2007-04-13 02:14:30 +00:00
drh
994c80af27 Changes toward fixes for tickets #2296 and #2291. (CVS 3838)
FossilOrigin-Name: 0dd3e2e47b09156838edfa4dea0d82f9cf22d94d
2007-04-12 21:25:01 +00:00
drh
6c1426fd14 Get the column affinities right when processing an IN operator where
the right-hand side is a subquery with an ORDER BY clause.  Ticket #2295.
This bug has likely been present since version 3.0.0 and it has just now
been noticed, so it seems to be a obscure case. (CVS 3837)

FossilOrigin-Name: 4062ddf3c7f4fd150292304fa33ca76dc35571a1
2007-04-12 03:54:38 +00:00
drh
694b19d86e Blind check-in of changes to fix #2294 - I have no ability to test.
Gentle wince users: please test this change and if it works leave a remark
on the #2294 ticket.  Tnx. (CVS 3836)

FossilOrigin-Name: ca56c3e2250eda0b312ab6f801b0fd95fb136bfa
2007-04-11 17:54:03 +00:00
drh
f33c9fad35 Preliminary fix for ticket #2291. This fixes the immediate problem. But
we really need to write more tests for the xfer optimization in order to
look for other related problems before closing this ticket. (CVS 3835)

FossilOrigin-Name: 34fec312fd1aeabb04e07d6aa061991775c7b8a1
2007-04-10 18:17:55 +00:00
drh
1eb2538a33 Be careful not to use the result of sqlite3_value_blob() after changing
the representation of an object.  Ticket #2290. (CVS 3834)

FossilOrigin-Name: e14374e4e6f14a90ecb53c2e7c86908a220c6d68
2007-04-10 13:51:17 +00:00
shess
6b6ab13353 Fix crash in delete when existing row has null fields. Previous code
assumed that the row had values in all columns, sigh.  Fixes bug
http://www.sqlite.org/cvstrac/tktview?tn=2289 . (CVS 3833)

FossilOrigin-Name: 81be7290a4db7b74a533aaf95c7389eb4bde6a88
2007-04-09 20:45:40 +00:00
drh
431e853715 Fix stack buffer overrun problem in the test harness. (CVS 3832)
FossilOrigin-Name: cad9faf3ad99b68be4618dff4b3497b15b9e6d9d
2007-04-09 20:30:11 +00:00
drh
a7e9c97a5a Version 3.3.15 (CVS 3831)
FossilOrigin-Name: ba5f4a55fad183a1698555b256f43f63451f5fc6
2007-04-09 13:49:33 +00:00
drh
860d3af3b6 Perparations for the release of 3.3.15. (CVS 3830)
FossilOrigin-Name: 8d0dea873d00404ad252d056422da2630f5e525f
2007-04-09 13:18:46 +00:00
drh
f53454438a Fix an obscure pager refcnt leak that occurs following a transient I/O
error. (CVS 3829)

FossilOrigin-Name: ce6f56ece8eab743d20cd2c0a84b4a266c4da2ff
2007-04-09 12:45:02 +00:00
danielk1977
9038bb647f Have the pager call xReiniter() instead of xDestructor() to restore btree level state after rolling back a page. (CVS 3828)
FossilOrigin-Name: 4e8941333ef053442877a2a696a2c68d403c7f4d
2007-04-09 11:20:54 +00:00
drh
e6895112fb Work around buggy TCL implementations in the exclusive2 test file. Ticket #2287 (CVS 3827)
FossilOrigin-Name: 5424fcc5f82e864e0a85a71e0ae39209200386c6
2007-04-08 16:52:22 +00:00
drh
271d8cb003 Make sure autovacuum is turned off for malloc5.test. (CVS 3826)
FossilOrigin-Name: 105a7efb090a5619e82a7e2931d4d3e080e6465a
2007-04-07 17:44:27 +00:00
danielk1977
f35843b578 For filesystem databases, do not store a list of pages in the statement journal in main memory. (CVS 3825)
FossilOrigin-Name: 0af764a02695281b0a7d70ef4e7f8229fd3d6a30
2007-04-07 15:03:17 +00:00
drh
1e9daa6ab5 Changes to test scripts to support alternative configurations. (CVS 3824)
FossilOrigin-Name: 3471a2269fb6b3769b59b70992e6da3bdebea7df
2007-04-06 21:42:22 +00:00
drh
bb5f18d2ca Additional coverage testing. (CVS 3823)
FossilOrigin-Name: 26b2e1aede3f776134b2d6e941d17a907843e650
2007-04-06 18:23:17 +00:00
drh
15926590ed Binary file I/O infrastructure added and used to increase test coverage
for detection of corrupt database files. (CVS 3822)

FossilOrigin-Name: 479b3d965b19c3ec4cb72542718751debf8ff75c
2007-04-06 15:02:13 +00:00
drh
60218d2a0e The FOR EACH STATEMENT clause in a trigger is now a syntax error. It used
to be silently ignored.  STATEMENT is no longer a keyword. (CVS 3821)

FossilOrigin-Name: 8e2559b4da6329d7c21925d0850f7f91a3731975
2007-04-06 11:26:00 +00:00
drh
05f7c19a6e Test coverage improvements. Over 90% of branches are now executed in
both directions. (CVS 3820)

FossilOrigin-Name: a776d93ccae3bfa6e992cdd1387571dd21561f98
2007-04-06 02:32:33 +00:00
drh
77a2a5e73c Changes to increase test coverage. (CVS 3819)
FossilOrigin-Name: fd4da6b13499af2397d52cb0f25f8ff6f2192431
2007-04-06 01:04:39 +00:00
drh
8c4d3a6b42 Make sure the sqlite3BtreePrevious() routine terminates properly if the
table is deleted out from under it.  Ticket #2286.  This bug was discovered
while trying to increase test coverage from 98.5% to 99% - once again
showing the value of full coverage testing. (CVS 3818)

FossilOrigin-Name: bebf8d2f886ed9fe1b96e4cb11ab3de2f2f7d2c8
2007-04-06 01:03:32 +00:00
drh
bd08af4871 Fix the amalgamation so that it works with -DSQLITE_ENABLE_REDEF_IO. Change
tclsqlite.c so that it can be appended to the amalgamation.  Create a new
amalgamation of header files for use by projects that want to redefine their
own I/O interface using -DSQLITE_ENABLE_REDEF_IO. (CVS 3817)

FossilOrigin-Name: f2caff870c81c08ec85aae72986c231ee986b251
2007-04-05 21:58:33 +00:00
drh
93d57531f7 Add a target to the autoconf-generated makefile for amalgamation. (CVS 3816)
FossilOrigin-Name: 204e7d38aeb40d126b80a869958ca79cd0902d83
2007-04-05 18:34:58 +00:00
drh
c6ba55f4e0 New testfixture command: sqlite3_pager_refcounts. Returns a list of
integers which is the pager refcount for each pager in the database. (CVS 3815)

FossilOrigin-Name: 7338e68e0fd9263236f12f8911cb8293747dd1a4
2007-04-05 17:36:18 +00:00
danielk1977
e180dd9396 Always truncate the pager cache when truncating the database file. Also reorganize the code to check the change-counter after first obtaining a shared lock. (CVS 3814)
FossilOrigin-Name: 9dc4100eff71be579480ce7939c7da712d28f0ae
2007-04-05 17:15:52 +00:00
danielk1977
38ec0cb263 Use the MEMDB macro instead of OMIT_MEMORYDB in pager_recycle(). (CVS 3813)
FossilOrigin-Name: 97c5159816e211d9c71aa68db7c5e01df535d6a4
2007-04-05 14:29:42 +00:00
danielk1977
c551edc2c3 Avoid attempting to reclaim memory from in-memory databases in sqlite3_release_memory(). (CVS 3812)
FossilOrigin-Name: c20f7563c0ffa1df47df5464f1f1cc4703ffa9b4
2007-04-05 13:12:13 +00:00
danielk1977
5bb16fe41b Add some assert() statements to pager.c. (CVS 3811)
FossilOrigin-Name: 973b2a5fb56a1ed1fd10d062edcb6e6dad13f001
2007-04-05 11:54:42 +00:00
drh
7c4ac0c555 Improvements to coverage testing. (CVS 3810)
FossilOrigin-Name: 38af156da83a8469080ddb75a9a286be33ff6bef
2007-04-05 11:25:58 +00:00
danielk1977
3997b9bb6b Catch an IO error case introduced by (3808). (CVS 3809)
FossilOrigin-Name: 383a08e26083964e79bfe22156f5f554522fa1fb
2007-04-05 08:40:32 +00:00
danielk1977
2026cefaf8 Zero cached pages located beyond the end of the file before returning them. Ticket #2285. (CVS 3808)
FossilOrigin-Name: 5180810eeaa3dfe3d934af0732a920ae117ec69f
2007-04-05 05:46:14 +00:00
drh
5f9c1a2cbd Test coverage improvements. (CVS 3807)
FossilOrigin-Name: 25f49acc5662ed8dd321b83a60aeeab93a37e129
2007-04-04 01:27:44 +00:00
danielk1977
3fb79c8346 Add Tcl (flush) commands to exclusive2.test, which is failing on some systems but not others. (CVS 3806)
FossilOrigin-Name: 9e004c519a30257fe3230ac7af630d296e139c9e
2007-04-03 16:13:51 +00:00
drh
3f400ea5da Fix to Makefile.in so that "make test" works. (CVS 3805)
FossilOrigin-Name: f592dd2d997064cda57b549901a2bcc14498b650
2007-04-02 22:19:38 +00:00
drh
bdcc276e94 Do not use the second parameter to gettimeofday() on unix. Pass it a NULL. (CVS 3804)
FossilOrigin-Name: 96b678818c9a536b77f10b25256facf4bff1ff65
2007-04-02 18:06:57 +00:00
drh
c94d9c776c Fix a union initializer so that it works with the Borland compiler. (CVS 3803)
FossilOrigin-Name: a067f78bf6a45d68ee1337115704cda2041919f4
2007-04-02 17:54:56 +00:00
danielk1977
8d96eb0fac Add a different form of I/O tests. So far has failed to expose new bugs. (CVS 3802)
FossilOrigin-Name: 9e1295428f476dba21c28149c7983f66a9134559
2007-04-02 16:46:23 +00:00
drh
ee2ce18189 If preprocessor macro OS_OTHER is defined, then ignore OS_UNIX, OS_WIN, and
OS_OS2.  This makes it easier to add proprietary backends.. (CVS 3801)

FossilOrigin-Name: 4fdafd3f583b1ec4aa7fb6a9b5de2f52a375832b
2007-04-02 16:45:12 +00:00
drh
8fd5bd3608 Provide a compile-time option to enable exclusive access mode by default. (CVS 3800)
FossilOrigin-Name: 93a41510f02dc5649dbbc22c4e4fbee545bd76d8
2007-04-02 16:40:37 +00:00
drh
4cfaceb8b0 Version 3.3.14 (CVS 3799)
FossilOrigin-Name: 3dbf4f98accf3f4fd78e39448e68dd3bd85bdf10
2007-04-02 15:31:48 +00:00
drh
aaecb467e9 Changes to the download page. (CVS 3798)
FossilOrigin-Name: de8055bcd678034b1ba1fe40d46a7fb60ee598f8
2007-04-02 15:29:32 +00:00
drh
611c8caec3 Update the build scripts and the homepage in preparation for version 3.3.14. (CVS 3797)
FossilOrigin-Name: a154224b329423aef622be539f6e7dfb76dc4c21
2007-04-02 15:04:34 +00:00
danielk1977
aeba431fa9 Cover an extra case in sqlite3PagerMovepage(). (CVS 3796)
FossilOrigin-Name: 7313688bd03141381067c36800edf1621a2ea05e
2007-04-02 14:19:16 +00:00
danielk1977
cd1aa9000f Fix for #2281. This was a problem with the test-case only. (CVS 3795)
FossilOrigin-Name: c036db6251ca4671fc3388a4f37955c18adeca1d
2007-04-02 12:29:01 +00:00
danielk1977
ead8e3f45e Cover a corrupt-db case in pager.c. (CVS 3794)
FossilOrigin-Name: 84077fa1602756339a262bc4ab51b6b487edc637
2007-04-02 12:28:27 +00:00
drh
a55ca9e109 In the amalgamation, put date.c before os.c so that the time_t typedef
can be correctly resolved by windows compilers. (CVS 3793)

FossilOrigin-Name: 9c5697c70fa850ea700e8cc0c918791a1628ab10
2007-04-02 12:22:44 +00:00
drh
01fa4c349f If an IO error is encountered on a commit, close the journal so that it
persists and can (hopefully) rollback the failed transaction later. (CVS 3792)

FossilOrigin-Name: 22e10cc24e4407feb276abfa8cc9964f20c6e54a
2007-04-02 11:22:22 +00:00
danielk1977
08d31a2a6d Correctly handle the obscure case of a read-only hot-journal file. (CVS 3791)
FossilOrigin-Name: 4d8c6bf44ec00ec04e615983cb33425ca2c3998a
2007-04-02 11:08:58 +00:00
danielk1977
241687280b Fix a resource leak introduced by the change-counter optimisation. Also add some test coverage. (CVS 3790)
FossilOrigin-Name: ba0538a4977aefd6645554f1989f0a98b540b9cd
2007-04-02 05:07:47 +00:00
drh
3057aaaa9c Update the version number and change comments in preparation for the
release of 3.3.14. (CVS 3789)

FossilOrigin-Name: d9f6fdb72b29354921e6de40df5ed4f86b158a01
2007-04-02 00:53:18 +00:00
drh
61fc595fdd Fix some warnings about unused and uninitialized variables. (CVS 3788)
FossilOrigin-Name: 18aec1ddfb08b74f0ef9cf1215eac7af71449db3
2007-04-01 23:49:51 +00:00
drh
2c547df6cf Make unix builds threadsafe by default. (CVS 3787)
FossilOrigin-Name: ddfc3b2df0b37be66fc55bb216cdcb6ba67aa7fd
2007-04-01 18:46:19 +00:00
drh
19df335841 Fix typos in the amalgamation builder script. (CVS 3786)
FossilOrigin-Name: a5070a2d11b4dad550a889d5fc005302208b6d75
2007-04-01 01:57:41 +00:00
drh
dd92431a03 Improvements to the output of the speed tests. (CVS 3785)
FossilOrigin-Name: 1a4d8024b06488f17831b5d3d47e41c5f1134800
2007-03-31 22:34:16 +00:00
drh
e1521f4c05 Remove unreachable code from util.c. (CVS 3784)
FossilOrigin-Name: 82b7a6f05c737f6ad4a21f354e55ec268fa1b032
2007-03-31 22:33:48 +00:00
drh
98495b4a91 Add the amalgamation generator to the makefile. (CVS 3783)
FossilOrigin-Name: a0f3c960fa3e958e12bc488451ee2d637562909b
2007-03-31 22:29:05 +00:00
drh
970f72478a Fix the amalgamation so that it can be compiled with REDEF_IO enabled. (CVS 3782)
FossilOrigin-Name: 6a3d6142d8be18bf2a9913f0329bcce48867304b
2007-03-31 16:29:06 +00:00
drh
38def05454 Increase test coverage by statically defining SQLITE_BIGENDIAN and related
macros for ix86 platforms.  Still a run-time test for other architectures.
Need to add additional cases to cover other popular processors. (CVS 3781)

FossilOrigin-Name: 476e7c3fcc69d8b21d161c758aaa5ef7163abb15
2007-03-31 15:27:59 +00:00
drh
b3738b6c85 Improved test coverage for printf.c. (CVS 3780)
FossilOrigin-Name: c2badb208ff1207a1471410965947893b070ea50
2007-03-31 15:02:49 +00:00
drh
bd36ba69b0 The XFER optimization works if the target table lacks an integer primary
key and is not empty as long as it has no indices.  It always has and
continues to work if the target table was empty. (CVS 3779)

FossilOrigin-Name: 2c62ffcb865655e8b91aaf81601548ea540c6088
2007-03-31 13:00:26 +00:00
danielk1977
393f068912 More coverage for pager.c. (CVS 3778)
FossilOrigin-Name: 665b119a241a5a95f236b3ace1b25fc18ae6f0a3
2007-03-31 10:00:48 +00:00
drh
93553ad05b Fix a long-standing memory leak in the hash table. The leak only appears
following a malloc failure of a hash that copies its keys, which rarely
happens and so we have not previously noticed it. (CVS 3777)

FossilOrigin-Name: 2aae1964572f4d4d1eae090a997e0bd9a82a69b2
2007-03-31 03:59:23 +00:00
drh
bf700f3d3d Fix a large memory leak in the btree layer
that occurs following an I/O error when in shared cache mode. (CVS 3776)

FossilOrigin-Name: dce4cb84930116db99275f77141fd933bc84288e
2007-03-31 02:36:44 +00:00
drh
b63a53dcf7 Fix memory leaks in WHERE clause processing and in TRIGGER parsing. (CVS 3775)
FossilOrigin-Name: 6736f4547c0cc2123d1a19ed2d6915712718d22e
2007-03-31 01:34:44 +00:00
drh
331e8d6216 Remove vestiges of SQLITE_PROTOCOL from the test scripts. (CVS 3774)
FossilOrigin-Name: e5e8d56397acf041aeaf5361381eb22eb1554759
2007-03-30 20:46:13 +00:00
drh
4f0ee686c5 Remove vestiges of the SQLITE_PROTOCOL error. (CVS 3773)
FossilOrigin-Name: 6dfd4a12a8a03c204505e7a211e179b7dd47e4fb
2007-03-30 20:43:40 +00:00
drh
0e3a6f3f53 Fix a memory leak that occurs after a malloc failure in trigger parsing. (CVS 3772)
FossilOrigin-Name: 407a85e69b7a1229218a5ce9a9e31255c7070294
2007-03-30 20:40:34 +00:00
drh
c416ba97bf Fix a memory leak in multi-database commit. Also enhance a comment that
explains why a particular valgrind error is harmless. (CVS 3771)

FossilOrigin-Name: 28c7ed1eb799203a569cdae97da974b347f39579
2007-03-30 18:42:55 +00:00
danielk1977
3546947df3 Coverage testing for a few lines in pager.c. (CVS 3770)
FossilOrigin-Name: c1aca18fad35be60066a08f5bd09772d24375af6
2007-03-30 18:21:52 +00:00
drh
1abd422d99 Remove asserts on the existing of journal files in pager - asserts that
are not valid for certain kinds of simulated I/O errors or for async I/O. (CVS 3769)

FossilOrigin-Name: f5fad52a97a16faddc2701ea0e05a301974eda1a
2007-03-30 17:18:50 +00:00
drh
a817e42a21 Get the memleak.test script working again after recent changes. (CVS 3768)
FossilOrigin-Name: cd6ca078e3402f06836b6b510a4a431f576f7219
2007-03-30 17:17:51 +00:00
danielk1977
95b289b684 Coverage tests for some pragmas. (CVS 3767)
FossilOrigin-Name: eec7ab63beed875a3b16c3bf8d28ac4f296dfb4c
2007-03-30 17:11:12 +00:00
drh
369339db34 Always enable exclusive access mode for TEMP databases. This cannot be
changed.  The locking_mode pragma has not effect on the TEMP database. (CVS 3766)

FossilOrigin-Name: 04d3b9098ed06d5be24253edde50ea61b4641df8
2007-03-30 16:01:55 +00:00
danielk1977
9bb8aecc35 Coverage improvements for where.c. (CVS 3765)
FossilOrigin-Name: df64894bacd8023cf3c5939f062c8463ff5cdc04
2007-03-30 14:56:34 +00:00
danielk1977
780b1d9416 Coverage improvements for where.c. (CVS 3764)
FossilOrigin-Name: 7e0aa964129612e2bad6fa45139d124f19cacd48
2007-03-30 14:56:34 +00:00
drh
3cdd7d37c6 Tease apart the two phases of pager commit. (CVS 3763)
FossilOrigin-Name: e5f17078a28b6a47d6943d40c526390c36258392
2007-03-30 14:46:01 +00:00
drh
80e35f4640 Refactoring the btree and pager routines into distinct two-phase commit
routines.  We've always done a two-phase commit - this change is just
making that more apparent in the code. (CVS 3762)

FossilOrigin-Name: 66b3ad09ea657d25d48cb75ec2671ea2dc1b6005
2007-03-30 14:06:34 +00:00
drh
b601861cc3 Make yypMinor available to the stack overflow callbacks in lemon
generated parsers.  This does not effect SQLite. (CVS 3761)

FossilOrigin-Name: 70c8c7e2ce5213778e63c200a6637849920deea6
2007-03-30 13:35:05 +00:00
drh
073d3efae4 Avoid using the "clock" command in test scripts since it is a proc in Tcl8.5
and is thus not available to testfixture. (CVS 3760)

FossilOrigin-Name: 339941d83ae397d69084f41483afb1ea44d44967
2007-03-30 13:01:32 +00:00
drh
a16313e505 Move the sqlite3_temp_directory global variable out of the OS porting layer
and into main.c so that it is more accessible to non-standard OS porting
layers. (CVS 3759)

FossilOrigin-Name: 23653f7aab6609f69948a7366bef9ebd0fd4d0b1
2007-03-30 11:29:32 +00:00
drh
3c024d6973 Remove the anonymous union from the sqlite3_value structure since some
compilers are unable to deal with it. (CVS 3758)

FossilOrigin-Name: 6b995259bc974519379dee55c1ef00d28c76bf21
2007-03-30 11:23:45 +00:00
drh
6e34599b33 Comment changes in btree.c and added a missing "else" in pragma.c. (CVS 3757)
FossilOrigin-Name: 9a7d7e31908e9bac14a68bbc2fb4e1ca593ea234
2007-03-30 11:12:08 +00:00
danielk1977
935ed5eafd Test coverage a few extra lines in where.c. (CVS 3756)
FossilOrigin-Name: ea49ddf64aa6073b8018dc2faaf199704d359412
2007-03-30 09:13:13 +00:00
danielk1977
b5584c0c69 Extra test cases to improve coverage of main.c. (CVS 3755)
FossilOrigin-Name: 19fc3d78962d225d42372b9298be5921ec1fc8a1
2007-03-30 07:10:50 +00:00
drh
e2396a1090 Assume any return code from fcntl() other than -1 is success. Formerly we
only assumed that 0 was success.  Ticket #2173. (CVS 3754)

FossilOrigin-Name: 8d0073c0e8408558dae39f789ac3fa2622b52365
2007-03-29 20:19:58 +00:00
drh
19c9e5694c Fix to token destructors in Lemon. This does not impact SQLite. Ticket #2175. (CVS 3753)
FossilOrigin-Name: 6195af49828bf04b61d24f116339780d3eb926a1
2007-03-29 20:13:53 +00:00
drh
a92993ca13 Add the sqlite3_clear_bindings() API to the loadable extension interface.
Ticket #2135. (CVS 3752)

FossilOrigin-Name: 3111b43ec333f3342f9609bf441160040f3d1501
2007-03-29 18:46:00 +00:00
shess
06c69d2ed6 Buffer updates per-transaction rather than per-update. If lots of
updates happen within a single transaction, there was a lot of wasted
encode/decode overhead due to segment merges.  This code buffers
updates in memory and writes out larger level-0 segments.  It only
works when documents are presented in ascending order by docid.
Comparing a test set running 100 documents per transaction, the total
runtime is cut almost in half. (CVS 3751)

FossilOrigin-Name: 0229cba69698ab4b44f8583ef50a87c49422f8ec
2007-03-29 18:41:03 +00:00
drh
3ceeb75680 Change the name of PAGER_SECTOR_SIZE to SQLITE_DEFAULT_SECTOR_SIZE. Make
the new OS-layer interface routine for finding sector size optional. (CVS 3750)

FossilOrigin-Name: 0fb9af1d6e20bf25511c6d2097937cc11137776e
2007-03-29 18:19:52 +00:00
drh
2ecad3b443 Make sure the strftime() date conversions put in leading zeros correctly.
Ticket #2276. (CVS 3749)

FossilOrigin-Name: e853067ec4db3eedfb4adcdd4172de2c55b9ac58
2007-03-29 17:57:21 +00:00
danielk1977
7152de8dd2 Avoid calling OsDelete() on journal files when they are opened for temporary databases. Fix for #2255. (CVS 3748)
FossilOrigin-Name: e746832f5f3e1c58e6f6456866156824d23dd846
2007-03-29 17:28:14 +00:00
danielk1977
69b637b56b Add a couple of test cases to improve coverage testing. (CVS 3747)
FossilOrigin-Name: 0b22ce3637f87c453084c5bd994b6b19a0b014c0
2007-03-29 17:07:52 +00:00
shess
194f8972d5 Don't call ctype functions on hi-bit chars. Some platforms raise
assertions when this occurs, and it's almost certainly not the right
thing to do in the first place. (CVS 3746)

FossilOrigin-Name: f6c3abdc6c5e916e5366ba28fb1cd06ca3554303
2007-03-29 16:30:38 +00:00
danielk1977
ae7fc49def Assume the malloc-failed flag cannot already be set when calling sqlite3_errmsg(16)(). (CVS 3745)
FossilOrigin-Name: 54fa22273d551e00e1abd86992ff7c62ec4e0daf
2007-03-29 15:00:52 +00:00
drh
42242ded5e Fix a bug in XFER optimization introduced by check-in (3736). (CVS 3744)
FossilOrigin-Name: 3714ac173289e580a0302a5a3beac05823d92c5b
2007-03-29 13:35:35 +00:00
danielk1977
8c8eba1087 Explicitly test some error cases that up until now have not been checked. (CVS 3743)
FossilOrigin-Name: 0b7bd9c315501743e2364ecccefeeba326d5df51
2007-03-29 12:24:16 +00:00
danielk1977
a713f2c331 Explicitly test some error cases that up until now have not been checked. (CVS 3742)
FossilOrigin-Name: f26b014109b1b20367044c5d3fcb347af73d07aa
2007-03-29 12:19:11 +00:00
drh
e4d9081307 Change BtreeMoveto so that it can be biased to the right or to the center.
Use a right bias when appending and a center bias when searching.  This
gives about a 15% reduction in calls to sqlite3VdbeRecordCompare. (CVS 3741)

FossilOrigin-Name: ad4a6b1a91bcefd8a4c75e8dc99c1153c72c31a3
2007-03-29 05:51:49 +00:00
drh
f1d68b3096 Bias the b-tree binary search toward the high end. The common case is to
append data and this heuristic makes append run much faster because there
are fewer comparisons. (CVS 3740)

FossilOrigin-Name: a9877f616b24737152627841fcbd80cc28426f1e
2007-03-29 04:43:26 +00:00
drh
b7bac72350 Get LEMON working again when YYSTACKDEPTH is greater than zero. (CVS 3739)
FossilOrigin-Name: e72c81dbb309709462e49c4e3e90c3e16ead1265
2007-03-29 02:26:45 +00:00
drh
b19fd012b0 Lemon change: compile the resulting parser with -DYYSTACKDEPTH=0 or set
the "%stack_size" parameter to 0 in the grammar and the parser stack
will be dynamically allocated using realloc() and free().  The default
behavior is to have a finite depth stack. (CVS 3738)

FossilOrigin-Name: 06719b741ab1a2df0371f6d587563cc81eb8880a
2007-03-29 01:44:45 +00:00
drh
7fc2f41bef Patch so the the code compiles with -DSQLITE_OMIT_CHECK=1. (CVS 3737)
FossilOrigin-Name: 72cea358da4bd38af322f18f2a753171f7decaf8
2007-03-29 00:08:24 +00:00
drh
95bad4c751 Improvements to the XFER Optimization of the INSERT statement. (CVS 3736)
FossilOrigin-Name: 53fff7d1f2f829010a2641c7738538b3155da4b2
2007-03-28 18:04:10 +00:00
drh
72e8fa42f9 Correctly handle NULLs in IN operators. Ticket #2273.
The changes in where.c and in the WhereLevel.aInLoop structure are
not strictly necessary to fix this problem - they just make the code
easier to read.  Only the change in OP_Next/OP_Prev operator of vdbe.c
is required. (CVS 3735)

FossilOrigin-Name: 26348556d824c032851e409ac510cddb55c200bf
2007-03-28 14:30:06 +00:00
drh
930cc5864e Update comments in sqlite3.h. No changes to code. (CVS 3734)
FossilOrigin-Name: 1c2656fdf6176a7365db4e11f4bbf47721da72b4
2007-03-28 13:07:40 +00:00
drh
600e46a021 Fix an memory allocation error revealed by malloc3.test. (CVS 3733)
FossilOrigin-Name: 0f7fdb022ca7c94f7d264192e18b6e2bd1e8cff4
2007-03-28 01:59:33 +00:00
drh
56424db419 The SQLITE_ENABLE_LOAD_EXTENSION macro enables the load_extension() SQL
function by default without having to invoke sqlite3_enable_load_extension()
first. (CVS 3732)

FossilOrigin-Name: 113aab2cdf4480683cd5e844b5a48dcc093792ff
2007-03-27 22:24:11 +00:00
drh
3262cb24ff Fix the prototype of the CodecAttach function in attach.c. (CVS 3731)
FossilOrigin-Name: 902413e81b1ae8bee09987c798622a55ab2a1504
2007-03-27 21:47:06 +00:00
danielk1977
3dedc1985e Remove a c++ comment in pager.c. (CVS 3730)
FossilOrigin-Name: e4452e8aede9282feaeeac19d0cdf82b01c3cc19
2007-03-27 17:37:31 +00:00
danielk1977
979f38e5ee Test handling of IO errors that occur in OsDelete() or OsTruncate() operations. Also use an anonymous file for temporary storage during a VACUUM. (CVS 3729)
FossilOrigin-Name: b24a6e7b024c8b9a0b6fd15bd8f247e458781ca2
2007-03-27 16:19:51 +00:00