]>
git.ipfire.org Git - thirdparty/sqlite.git/log
shess [Mon, 20 Aug 2007 17:37:02 +0000 (17:37 +0000)]
Copy fts2 to fts3, renaming, and replacing references to fts2 with
fts3, including capitalization variants. (CVS 4249)
FossilOrigin-Name:
216c91d2fc49792d9ff53596746f1162f5b7f8d4
danielk1977 [Mon, 20 Aug 2007 16:07:00 +0000 (16:07 +0000)]
Call sqlite3OsSleep() with an argument in microseconds, not milliseconds. (CVS 4248)
FossilOrigin-Name:
917790413ced92266bf5c7cca6d130ed7ac6221b
danielk1977 [Mon, 20 Aug 2007 14:23:44 +0000 (14:23 +0000)]
Changes to crash-test io backend (test6.c) so that it works with the sqlite3_vfs interface. (CVS 4247)
FossilOrigin-Name:
40f66ada815fa1043d24c9cd6d898e1797e7044a
drh [Mon, 20 Aug 2007 13:14:28 +0000 (13:14 +0000)]
Bug fix in BTree shared cache locking code. (CVS 4246)
FossilOrigin-Name:
399d3e755253a7b4604a62b9f171e0f1154134e2
drh [Mon, 20 Aug 2007 11:12:40 +0000 (11:12 +0000)]
Get main.c to compile when HAVE_USLEEP is 0. (CVS 4245)
FossilOrigin-Name:
b27f022fb924709f1c5e4642d5d59cab942e826d
danielk1977 [Mon, 20 Aug 2007 06:44:22 +0000 (06:44 +0000)]
Update the locking-style code in os_unix.c. The updates are as yet untested. (CVS 4244)
FossilOrigin-Name:
41f2175b1ed7eccf271b687ee5c3ea262a0cd096
danielk1977 [Mon, 20 Aug 2007 05:36:51 +0000 (05:36 +0000)]
Fix full_fsync() related functionality broken as part of the migration to sqlite3_vfs. (CVS 4243)
FossilOrigin-Name:
cb24cda179c2b526c5ac48be75e372d2b9db808c
danielk1977 [Sat, 18 Aug 2007 10:59:19 +0000 (10:59 +0000)]
Further progress on migration to sqlite3_vfs. (CVS 4242)
FossilOrigin-Name:
a258c4ec240f96bccfe493e98d0827ec7dd12e67
danielk1977 [Fri, 17 Aug 2007 16:50:38 +0000 (16:50 +0000)]
Remove some old OsFile and IoMethod related code. Add the sqlite3OsLockState function. (CVS 4241)
FossilOrigin-Name:
08a0f48028794abbeae1b4852652062b38d37d88
danielk1977 [Fri, 17 Aug 2007 15:53:36 +0000 (15:53 +0000)]
Begin migration to using sqlite3_vfs interface. (CVS 4240)
FossilOrigin-Name:
af3e3c7acdc67013dd733effebe981620d922dd1
drh [Fri, 17 Aug 2007 01:14:38 +0000 (01:14 +0000)]
Begin adding mutexes. Compiles without SQLITE_OMIT_SHARED_CACHE but we
get an assertion fault on the shared cache testing. (CVS 4239)
FossilOrigin-Name:
4c1e9ffebe7c611a8b6a89153ae97ab9bca19ea3
drh [Thu, 16 Aug 2007 19:40:16 +0000 (19:40 +0000)]
Change the design of the mutex interface to allow for
both "fast" and "recursive" mutexes. (CVS 4238)
FossilOrigin-Name:
160593dcc5690af715b775c81137c6e09cca6454
drh [Thu, 16 Aug 2007 13:01:44 +0000 (13:01 +0000)]
Remove the thread specific data subsystem from the unix build. Remove
legacy cruft from sqliteInt.h. Use the new mutex subsystem in the PRNG. (CVS 4237)
FossilOrigin-Name:
3d60c14a32955b69e714a73372924d421899f83b
drh [Thu, 16 Aug 2007 12:24:01 +0000 (12:24 +0000)]
Combine sqlite3DbOfVdbe() and sqlite3VdbeDb() into a single function. (CVS 4236)
FossilOrigin-Name:
ba80ee59a72afe36817997de705ef81d876b6f35
danielk1977 [Thu, 16 Aug 2007 11:36:15 +0000 (11:36 +0000)]
Fix some more small problems introduced by recent refactoring. (CVS 4235)
FossilOrigin-Name:
5e2795d0eb8ea2a076b3014cfa9096aa7e8f69d7
danielk1977 [Thu, 16 Aug 2007 10:36:33 +0000 (10:36 +0000)]
Replace a few sqlite3_malloc() calls that should be sqlite3MallocZero(). (CVS 4234)
FossilOrigin-Name:
384d0ca9bc96309e7057e4a2bd4bac5049485e9b
danielk1977 [Thu, 16 Aug 2007 10:09:01 +0000 (10:09 +0000)]
More work on refactoring of malloc() interfaces. There are still many errors. (CVS 4233)
FossilOrigin-Name:
77b1671351fe94b0ebc126a63140643deae2aa64
danielk1977 [Thu, 16 Aug 2007 04:39:01 +0000 (04:39 +0000)]
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
drh [Thu, 16 Aug 2007 04:30:38 +0000 (04:30 +0000)]
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
drh [Wed, 15 Aug 2007 20:41:28 +0000 (20:41 +0000)]
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
drh [Wed, 15 Aug 2007 19:16:43 +0000 (19:16 +0000)]
Test infrastructure for the new memory subsystem. (CVS 4229)
FossilOrigin-Name:
9e506656720fb3a3205b8cc398152272ce56f6f3
danielk1977 [Wed, 15 Aug 2007 17:08:46 +0000 (17:08 +0000)]
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
drh [Wed, 15 Aug 2007 17:07:57 +0000 (17:07 +0000)]
Add a debugging memory allocator. (CVS 4227)
FossilOrigin-Name:
8d2d1c4ff9dca61f75e3048107ee9712d346a28c
drh [Wed, 15 Aug 2007 13:04:54 +0000 (13:04 +0000)]
Add initial implementations of mutex and memory subsystem modules. (CVS 4226)
FossilOrigin-Name:
c0fa3769790af199a4c8715c80bb8ff900730520
drh [Wed, 15 Aug 2007 11:28:56 +0000 (11:28 +0000)]
Revisions to the interface design for 3.5. (CVS 4225)
FossilOrigin-Name:
174116f7c0ceeceb5e32868b29fabf8a6943cbf6
drh [Tue, 14 Aug 2007 18:03:14 +0000 (18:03 +0000)]
Clarify documentation on sqlite3_interrupt(). (CVS 4224)
FossilOrigin-Name:
0b5b526c9de22a34c5051d14735a062ed3f898eb
danielk1977 [Tue, 14 Aug 2007 17:42:05 +0000 (17:42 +0000)]
Add comments describing upcoming changes to crash-test module (test6.c). No code
changes. (CVS 4223)
FossilOrigin-Name:
63631c17376bcb5a7aa305408aaeaf03738d7b95
drh [Tue, 14 Aug 2007 01:58:53 +0000 (01:58 +0000)]
Add a first cut at the new version 3.5 interface definitions to sqlite.h.in. (CVS 4219)
FossilOrigin-Name:
0a57f3dd4de12278732e3ca9d8a95f85c351da03
drh [Mon, 13 Aug 2007 20:31:01 +0000 (20:31 +0000)]
Version 3.4.2 (CVS 4218)
FossilOrigin-Name:
64989904d44556eee0ea0270f8d4f0e903ffcfdf
drh [Mon, 13 Aug 2007 16:15:29 +0000 (16:15 +0000)]
Update version number of documentation in preparation for version 3.4.2. (CVS 4217)
FossilOrigin-Name:
1ed51e3ca04bee887326cb323bc7046ff1a98946
danielk1977 [Mon, 13 Aug 2007 15:28:33 +0000 (15:28 +0000)]
Invalidate prepared SQL statements when rolling back a transaction that includes schema modifications. (CVS 4216)
FossilOrigin-Name:
a07143fc0578a5fc7c891e94616ee0b353674d6e
drh [Mon, 13 Aug 2007 15:18:27 +0000 (15:18 +0000)]
Disable tests that require 80-bit long doubles when the host only
provides 64-bit long doubles. Ticket #2570. (CVS 4215)
FossilOrigin-Name:
4f4f8ef416394b7e54e8894f7a0d067d64636fc4
drh [Mon, 13 Aug 2007 14:56:44 +0000 (14:56 +0000)]
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
danielk1977 [Mon, 13 Aug 2007 14:41:19 +0000 (14:41 +0000)]
When loading a database schema, do not clear the SQLITE_InternChanges flag. This fixes the problem illustrated by (4211). (CVS 4213)
FossilOrigin-Name:
540a7b28bc37709056cfdb13286274ec5bdd8423
drh [Mon, 13 Aug 2007 12:58:18 +0000 (12:58 +0000)]
Fix the test labels in mallocC.test. (CVS 4212)
FossilOrigin-Name:
7d4cdff444b98b76a34bd85d0a43cda28e7dffe4
drh [Mon, 13 Aug 2007 12:39:03 +0000 (12:39 +0000)]
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
drh [Mon, 13 Aug 2007 11:10:34 +0000 (11:10 +0000)]
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
drh [Sun, 12 Aug 2007 20:07:58 +0000 (20:07 +0000)]
Updates to test scripts for better support of soft-heap-limit testing. (CVS 4209)
FossilOrigin-Name:
990f621f2247f1636e895dcf51fea1e08f202d31
drh [Sat, 11 Aug 2007 00:26:20 +0000 (00:26 +0000)]
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
drh [Fri, 10 Aug 2007 23:56:35 +0000 (23:56 +0000)]
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
drh [Fri, 10 Aug 2007 23:54:16 +0000 (23:54 +0000)]
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
shess [Fri, 10 Aug 2007 23:47:03 +0000 (23:47 +0000)]
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
drh [Fri, 10 Aug 2007 19:46:43 +0000 (19:46 +0000)]
Add a test case to reproduce the database corruption problem reported
by ticket #2565. (CVS 4204)
FossilOrigin-Name:
f267ce809424ec2cc167bf9750989413a8f925c1
drh [Fri, 10 Aug 2007 19:46:13 +0000 (19:46 +0000)]
Update tests so that they work properly even if the soft-heap-limit
is set low. (CVS 4203)
FossilOrigin-Name:
e01eb99edfa3390e97847a210532847cc64803da
drh [Fri, 10 Aug 2007 16:41:08 +0000 (16:41 +0000)]
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
drh [Thu, 9 Aug 2007 00:00:26 +0000 (00:00 +0000)]
Fix documentation typos. Tickets #2168 and #2560. (CVS 4201)
FossilOrigin-Name:
4333b231af8866e3d2d75bc64083b6c36c8da8d8
drh [Wed, 8 Aug 2007 12:11:21 +0000 (12:11 +0000)]
More tweaking of linkage. Ticket #2554. (CVS 4200)
FossilOrigin-Name:
3759a38fe8e8a873dc3aae8dc99ca1010551b50b
drh [Wed, 8 Aug 2007 01:04:52 +0000 (01:04 +0000)]
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
drh [Tue, 7 Aug 2007 17:13:03 +0000 (17:13 +0000)]
Remove all tabs from source code files. Ticket #2556. (CVS 4198)
FossilOrigin-Name:
7550dd1d5980a399fbb06b4ed69216700f879a0b
drh [Tue, 7 Aug 2007 17:04:59 +0000 (17:04 +0000)]
Revise the amalgamation so that all symbols have file scope except those
that begin with "sqlite3_". Ticket #2554. (CVS 4197)
FossilOrigin-Name:
73db545289a1a99bd48b22895d2a3ee86540f107
drh [Sun, 5 Aug 2007 23:52:05 +0000 (23:52 +0000)]
Fix some compiler warnings. (CVS 4196)
FossilOrigin-Name:
6cc15409ad6baefbe6e2214a4ac1cb3a0433f922
danielk1977 [Fri, 3 Aug 2007 08:18:44 +0000 (08:18 +0000)]
Change some (English language) grammar in faq.tcl. Ticket #2480. No code changes. (CVS 4195)
FossilOrigin-Name:
e526817f158883f617720fd389741a29454ad483
danielk1977 [Fri, 3 Aug 2007 07:33:08 +0000 (07:33 +0000)]
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
drh [Mon, 30 Jul 2007 23:02:38 +0000 (23:02 +0000)]
Fix a typo in limits.html. (CVS 4193)
FossilOrigin-Name:
c709140b51610a2fbbff15c1fd80783218780f6f
drh [Mon, 30 Jul 2007 20:41:52 +0000 (20:41 +0000)]
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
rse [Mon, 30 Jul 2007 18:55:36 +0000 (18:55 +0000)]
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
rse [Mon, 30 Jul 2007 18:31:53 +0000 (18:31 +0000)]
"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
rse [Mon, 30 Jul 2007 18:26:19 +0000 (18:26 +0000)]
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
rse [Mon, 30 Jul 2007 18:24:38 +0000 (18:24 +0000)]
Get rid of the following compile-time warning:
"src/shell.c:112: warning: 'iotracePrintf' defined but not used" (CVS 4188)
FossilOrigin-Name:
271e27fd30f3b99e6d6ad2fc2c6e87f43f4c76c8
danielk1977 [Mon, 30 Jul 2007 14:40:48 +0000 (14:40 +0000)]
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
danielk1977 [Thu, 26 Jul 2007 10:16:30 +0000 (10:16 +0000)]
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
danielk1977 [Thu, 26 Jul 2007 06:50:05 +0000 (06:50 +0000)]
Fix two obscure memory leaks that can follow a malloc() failure in sqlite3_set_auxdata(). Ticket #2534. (CVS 4185)
FossilOrigin-Name:
b88af1827bec3e8a32450dd0a073ffc3b12a5939
shess [Wed, 25 Jul 2007 00:56:09 +0000 (00:56 +0000)]
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
shess [Wed, 25 Jul 2007 00:38:05 +0000 (00:38 +0000)]
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
shess [Wed, 25 Jul 2007 00:27:59 +0000 (00:27 +0000)]
Sorry, previous check-in included a last-minute "Did it really work?"
change :-). (CVS 4182)
FossilOrigin-Name:
5db25e369a1a4b5a4d87947abdbf25f96fe64807
shess [Wed, 25 Jul 2007 00:25:20 +0000 (00:25 +0000)]
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
drh [Tue, 24 Jul 2007 10:22:57 +0000 (10:22 +0000)]
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
drh [Mon, 23 Jul 2007 22:51:15 +0000 (22:51 +0000)]
Detect nested aggregate functions even if the inner aggregate function is
aliased using an AS clause. Ticket #2526. (CVS 4179)
FossilOrigin-Name:
de000280c6d0b13440d2450eb6ba42073ad46c56
drh [Mon, 23 Jul 2007 19:39:46 +0000 (19:39 +0000)]
The REPLACE conflict resolution falls back to FAIL when on a
CHECK constraint violation. Ticket #2525. (CVS 4178)
FossilOrigin-Name:
b213614abff90c65cc7228c87f4973150e8a9679
drh [Mon, 23 Jul 2007 19:31:16 +0000 (19:31 +0000)]
Move prototypes for LEMON-generated parser functions into sqliteInt.h.
Ticket #2521. (CVS 4177)
FossilOrigin-Name:
bc02c7f1621ff46707f147c75f7e98462b01907f
drh [Mon, 23 Jul 2007 19:26:17 +0000 (19:26 +0000)]
Check the return value of sqlite3PagerWrite() when autovacuuming.
Ticket #2524. (CVS 4176)
FossilOrigin-Name:
b4a5c62b853f7a7d38863c39be274dccd2640944
drh [Mon, 23 Jul 2007 19:12:41 +0000 (19:12 +0000)]
Rework the UTF8 reader logic in order to avoid the use of malloc().
Ticket #2523. (CVS 4175)
FossilOrigin-Name:
9a059cb6bced5cdc950f7816602ac92d89a899be
drh [Sun, 22 Jul 2007 19:10:20 +0000 (19:10 +0000)]
Fix a bad sizeof in vdbe.c. Ticket #2522. (CVS 4174)
FossilOrigin-Name:
77ebc3feb089c28155cf20873fb4eabd26fa50c1
drh [Sat, 21 Jul 2007 19:41:45 +0000 (19:41 +0000)]
Work around a bug in GCC. Ticket #2469. (CVS 4173)
FossilOrigin-Name:
1924ba5207bdc8d503c17cd9460c1a9f9c357635
aswift [Fri, 20 Jul 2007 20:25:37 +0000 (20:25 +0000)]
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
drh [Fri, 20 Jul 2007 13:42:26 +0000 (13:42 +0000)]
Updates to build scripts. Added scripts for building FTS2 shared libraries. (CVS 4171)
FossilOrigin-Name:
e269f6e9f6273210259a488c356f4996d75c6436
drh [Fri, 20 Jul 2007 10:56:07 +0000 (10:56 +0000)]
Version 3.4.1 (CVS 4170)
FossilOrigin-Name:
81a4dd07c1d7099461e9e6668433dac5d99b1f32
drh [Fri, 20 Jul 2007 10:48:35 +0000 (10:48 +0000)]
Keep sqlite3ext.h backwards compatible. This really should have been part
of the previous check-in. (CVS 4169)
FossilOrigin-Name:
7cf15a5f651f0777972e21e0a96d601cf294f0f3
drh [Fri, 20 Jul 2007 10:33:58 +0000 (10:33 +0000)]
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
drh [Fri, 20 Jul 2007 01:17:28 +0000 (01:17 +0000)]
Documentation change in preparation for version 3.4.1. (CVS 4167)
FossilOrigin-Name:
cf227766aca5065fd68e83f145943fe9d15cd7ef
drh [Fri, 20 Jul 2007 00:35:58 +0000 (00:35 +0000)]
Fix a memory leak in the Rename method of the echo test virtual table.
No changes to the core. (CVS 4166)
FossilOrigin-Name:
e5c132fff3e8a0478622527a7e47d679594f899a
drh [Fri, 20 Jul 2007 00:33:36 +0000 (00:33 +0000)]
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
drh [Thu, 19 Jul 2007 22:30:19 +0000 (22:30 +0000)]
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
drh [Thu, 19 Jul 2007 16:35:17 +0000 (16:35 +0000)]
Preliminary fix for ticket #2518. Make sure the VACUUM command
increments the change counter. (CVS 4163)
FossilOrigin-Name:
75263797e29af437290c09e85cd5fd2aea08694f
drh [Thu, 19 Jul 2007 12:41:39 +0000 (12:41 +0000)]
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
drh [Wed, 18 Jul 2007 18:17:11 +0000 (18:17 +0000)]
Get the min/max optimization working with descending indices. Ticket #2514. (CVS 4161)
FossilOrigin-Name:
a80a3c9d0a5e0a8a3d67bd841e2076893fd5e9aa
drh [Wed, 18 Jul 2007 18:16:29 +0000 (18:16 +0000)]
Additional diagnostics added to the "out" file generated by lemon. (CVS 4160)
FossilOrigin-Name:
7ef2aaf72a8a953df7a763dd94657bb4ff05294f
shess [Tue, 17 Jul 2007 17:22:03 +0000 (17:22 +0000)]
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
drh [Fri, 13 Jul 2007 10:36:47 +0000 (10:36 +0000)]
Add an extra integrity_check to the transaction test script. (CVS 4158)
FossilOrigin-Name:
5ea43b2db1f0263c5f0ab76351bc9ca940d1428a
drh [Fri, 13 Jul 2007 10:35:14 +0000 (10:35 +0000)]
Update documentation to make it clear that VACUUM is free to
change implicit rowids. Ticket #2382. (CVS 4157)
FossilOrigin-Name:
d111b1daa547fea51d9e1fbe49c0b1338298484e
drh [Fri, 13 Jul 2007 10:26:08 +0000 (10:26 +0000)]
"extern" prototypes cause problems for the Digital Mars compiler. So
remove them. Ticket #2502. (CVS 4156)
FossilOrigin-Name:
f35fbf8070d770a603960b2a2afdeae91574ed5f
danielk1977 [Thu, 12 Jul 2007 13:18:05 +0000 (13:18 +0000)]
Fix for #2497. Set the database error code to the return value of sqlite3_step(). (CVS 4155)
FossilOrigin-Name:
b01fda5f50e40b6122faf169c44486bde7ffe16c
pweilbacher [Tue, 3 Jul 2007 23:37:09 +0000 (23:37 +0000)]
Fix compilation warnings shown when using strict GCC options for os_os2.c. (CVS 4154)
FossilOrigin-Name:
22277b7e1b3eb1678280de5d49a6613908ab4bff
danielk1977 [Tue, 3 Jul 2007 05:31:16 +0000 (05:31 +0000)]
Fix a memory leak in shell.c. Reported on the mailing list. This has only been informally tested. (CVS 4153)
FossilOrigin-Name:
a008905b39e7d4cd5b39db4906eb3b678e3ee8b7
drh [Mon, 2 Jul 2007 19:31:27 +0000 (19:31 +0000)]
Fix a comment typo reported on the mailing list. (CVS 4152)
FossilOrigin-Name:
25e6df9cdd7d0cbb2bdee9ce76806cfd08314212
danielk1977 [Mon, 2 Jul 2007 10:16:49 +0000 (10:16 +0000)]
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
drh [Sun, 1 Jul 2007 21:18:40 +0000 (21:18 +0000)]
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
pweilbacher [Sun, 1 Jul 2007 15:41:02 +0000 (15:41 +0000)]
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
pweilbacher [Sat, 30 Jun 2007 16:30:39 +0000 (16:30 +0000)]
Including os2safe.h from os_os2.c is no longer necessary (now that it's including from os.h) (CVS 4148)
FossilOrigin-Name:
6432bbe1c1db1d31bd0057d99a9d6b6a428d8ffc
pweilbacher [Sat, 30 Jun 2007 15:24:37 +0000 (15:24 +0000)]
old emx/gcc sets __EMX__ (with double underscores) as builtin #define (CVS 4147)
FossilOrigin-Name:
d69204fec718a5d6d95351ee7a0c068a1c59222d