drh
abb6fcabcb
Combine sqlite3DbOfVdbe() and sqlite3VdbeDb() into a single function. (CVS 4236)
...
FossilOrigin-Name: ba80ee59a72afe36817997de705ef81d876b6f35
2007-08-16 12:24:01 +00:00
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