]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
18 years agoInvalidate prepared SQL statements when rolling back a transaction that includes...
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

18 years agoDisable tests that require 80-bit long doubles when the host only
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

18 years agoFix a page leak in btree balance routines that follows a malloc failure.
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

18 years agoWhen loading a database schema, do not clear the SQLITE_InternChanges flag. This...
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

18 years agoFix the test labels in mallocC.test. (CVS 4212)
drh [Mon, 13 Aug 2007 12:58:18 +0000 (12:58 +0000)] 
Fix the test labels in mallocC.test. (CVS 4212)

FossilOrigin-Name: 7d4cdff444b98b76a34bd85d0a43cda28e7dffe4

18 years agoAdd a new test cases for a problem with malloc failure during the parsing
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

18 years agoRemove a memory allocation from sqlite3VdbeIOTraceSql(). This means that
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

18 years agoUpdates to test scripts for better support of soft-heap-limit testing. (CVS 4209)
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

18 years agoBackout check-in (4206) and replace it with a much better and more
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

18 years agoFix some incorrect asserts() in the pager - problems brought to light by
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

18 years agoFix the corruption problem of ticket #2565 as demonstrated by the test added
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

18 years agoConvert fts2 to use sqlite3_prepare_v2() to prevent certain logic
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

18 years agoAdd a test case to reproduce the database corruption problem reported
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

18 years agoUpdate tests so that they work properly even if the soft-heap-limit
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

18 years agoAdd the --soft-heap-limit=N option to the test scripts. Set this value to
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

18 years agoFix documentation typos. Tickets #2168 and #2560. (CVS 4201)
drh [Thu, 9 Aug 2007 00:00:26 +0000 (00:00 +0000)] 
Fix documentation typos.  Tickets #2168 and #2560. (CVS 4201)

FossilOrigin-Name: 4333b231af8866e3d2d75bc64083b6c36c8da8d8

18 years agoMore tweaking of linkage. Ticket #2554. (CVS 4200)
drh [Wed, 8 Aug 2007 12:11:21 +0000 (12:11 +0000)] 
More tweaking of linkage.  Ticket #2554. (CVS 4200)

FossilOrigin-Name: 3759a38fe8e8a873dc3aae8dc99ca1010551b50b

18 years agoAdditional refinements on the amalgamation: Give a couple of constants
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

18 years agoRemove all tabs from source code files. Ticket #2556. (CVS 4198)
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

18 years agoRevise the amalgamation so that all symbols have file scope except those
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

18 years agoFix some compiler warnings. (CVS 4196)
drh [Sun, 5 Aug 2007 23:52:05 +0000 (23:52 +0000)] 
Fix some compiler warnings. (CVS 4196)

FossilOrigin-Name: 6cc15409ad6baefbe6e2214a4ac1cb3a0433f922

18 years agoChange some (English language) grammar in faq.tcl. Ticket #2480. No code changes...
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

18 years agoAvoid reloading the schema when an expired statement is finalized or reset.
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

18 years agoFix a typo in limits.html. (CVS 4193)
drh [Mon, 30 Jul 2007 23:02:38 +0000 (23:02 +0000)] 
Fix a typo in limits.html. (CVS 4193)

FossilOrigin-Name: c709140b51610a2fbbff15c1fd80783218780f6f

18 years agoMake excess output from the CLI appear inside SQL comments so as not
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

18 years agoFix ticket #2439: the FTS1 and FTS2 extensions use the non-standard,
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

18 years ago"extern" declarations inside function bodies are not every compiler's
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

18 years agoGet rid of the following compile-time warnings:
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

18 years agoGet rid of the following compile-time warning:
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

18 years agoFix a bug with explicit collation sequences attached to a column reference expression...
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

18 years agoTest that an explicit collation sequence overrides an implicit one attached to a...
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

18 years agoFix two obscure memory leaks that can follow a malloc() failure in sqlite3_set_auxdat...
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

18 years agoImplement xRename() for fts1 so that it is possible to rename fts1 tables.
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

18 years agoReplicates http://www.sqlite.org/cvstrac/chngview?cn=4151 which
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

18 years agoSorry, previous check-in included a last-minute "Did it really work?"
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

18 years agoApply change 4095 to fts1. Fix snippet generation when the left-most
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

18 years agoRemove the comment in the documentation that says that incremental vacuum
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

18 years agoDetect nested aggregate functions even if the inner aggregate function is
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

18 years agoThe REPLACE conflict resolution falls back to FAIL when on a
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

18 years agoMove prototypes for LEMON-generated parser functions into sqliteInt.h.
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

18 years agoCheck the return value of sqlite3PagerWrite() when autovacuuming.
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

18 years agoRework the UTF8 reader logic in order to avoid the use of malloc().
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

18 years agoFix a bad sizeof in vdbe.c. Ticket #2522. (CVS 4174)
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

18 years agoWork around a bug in GCC. Ticket #2469. (CVS 4173)
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

18 years agoWork around an AFP file system byte-range locking error caused by opening and closing...
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

18 years agoUpdates to build scripts. Added scripts for building FTS2 shared libraries. (CVS...
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

18 years agoVersion 3.4.1 (CVS 4170)
drh [Fri, 20 Jul 2007 10:56:07 +0000 (10:56 +0000)] 
Version 3.4.1 (CVS 4170)

FossilOrigin-Name: 81a4dd07c1d7099461e9e6668433dac5d99b1f32

18 years agoKeep sqlite3ext.h backwards compatible. This really should have been part
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

18 years agoAdd new APIs to the end of the sqlite3_apis structure in loadext.c, in order
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

18 years agoDocumentation change in preparation for version 3.4.1. (CVS 4167)
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

18 years agoFix a memory leak in the Rename method of the echo test virtual table.
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

18 years agoCleanup unused function in pager.c. This is the conclusion of the fix
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

18 years agoDisable tests that use the progress handler when the progress handler
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

18 years agoPreliminary fix for ticket #2518. Make sure the VACUUM command
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

18 years agoClarify the documentation on the nByte parameter to sqlite3_prepare().
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

18 years agoGet the min/max optimization working with descending indices. Ticket #2514. (CVS...
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

18 years agoAdditional diagnostics added to the "out" file generated by lemon. (CVS 4160)
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

18 years agoFix annoying emacs warning about suspicious line. The change removes
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

18 years agoAdd an extra integrity_check to the transaction test script. (CVS 4158)
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

18 years agoUpdate documentation to make it clear that VACUUM is free to
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

18 years ago"extern" prototypes cause problems for the Digital Mars compiler. So
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

18 years agoFix for #2497. Set the database error code to the return value of sqlite3_step()...
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

18 years agoFix compilation warnings shown when using strict GCC options for os_os2.c. (CVS 4154)
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

18 years agoFix a memory leak in shell.c. Reported on the mailing list. This has only been inform...
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

18 years agoFix a comment typo reported on the mailing list. (CVS 4152)
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

18 years agoModify handling of SQLITE_SCHEMA in fts2 code. An SQLITE_SCHEMA error may cause SQLit...
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

18 years agoRemove an unnecessary temporary variable for clarity of presentation in
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

18 years agoChange OS/2 version of sqlite3Os2FullPathname() for cross-compiler compatibility:
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

18 years agoIncluding os2safe.h from os_os2.c is no longer necessary (now that it's including...
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

18 years agoold emx/gcc sets __EMX__ (with double underscores) as builtin #define (CVS 4147)
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

18 years agoSet FD_CLOEXEC on all open files under Unix. Ticket #2475. (CVS 4146)
drh [Fri, 29 Jun 2007 12:04:26 +0000 (12:04 +0000)] 
Set FD_CLOEXEC on all open files under Unix.  Ticket #2475. (CVS 4146)

FossilOrigin-Name: f1e5fed8eb0fb92bd0f040666c017850afe3cf9f

18 years agoAdd a test case to verify that ticket #2470 has been fixed. (CVS 4145)
drh [Wed, 27 Jun 2007 23:52:18 +0000 (23:52 +0000)] 
Add a test case to verify that ticket #2470 has been fixed. (CVS 4145)

FossilOrigin-Name: b3f442698e01ad55666703025c4457445f2efc9b

18 years agoTest error handling when renaming fts2 tables. (CVS 4144)
danielk1977 [Wed, 27 Jun 2007 17:09:24 +0000 (17:09 +0000)] 
Test error handling when renaming fts2 tables. (CVS 4144)

FossilOrigin-Name: 57840eba6a4380a0b71dc9514cdda41e2c455bb0

18 years agoImplement xRename() for fts2 so that it is possible to rename fts2 tables. (CVS 4143)
danielk1977 [Wed, 27 Jun 2007 16:26:07 +0000 (16:26 +0000)] 
Implement xRename() for fts2 so that it is possible to rename fts2 tables. (CVS 4143)

FossilOrigin-Name: 488474fde753c5a7a14ed8f2fad7f16efd236491

18 years agoAllow ALTER TABLE on virtual tables. (CVS 4142)
danielk1977 [Wed, 27 Jun 2007 15:53:34 +0000 (15:53 +0000)] 
Allow ALTER TABLE on virtual tables. (CVS 4142)

FossilOrigin-Name: 37d1f9f37ea9d2e8a4dbe0ec67c0d6eb7fcc5f3f

18 years agorespect $LDFLAGS from env/configure (CVS 4141)
vapier [Wed, 27 Jun 2007 15:01:45 +0000 (15:01 +0000)] 
respect $LDFLAGS from env/configure (CVS 4141)

FossilOrigin-Name: 9c13fc0f4bf22c8e05b11ef5feaaf07d8a8b3f01

18 years agoFix for compiling with OMIT_VIRTUALTABLE defined. (CVS 4140)
danielk1977 [Wed, 27 Jun 2007 11:10:03 +0000 (11:10 +0000)] 
Fix for compiling with OMIT_VIRTUALTABLE defined. (CVS 4140)

FossilOrigin-Name: 850822e2904bc340afd0b7535ef51fbdf9e1f486

18 years agoFix typo in comments of the sqlite.h.in header file - comments from which
drh [Wed, 27 Jun 2007 10:21:38 +0000 (10:21 +0000)] 
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

18 years agoMake sure auto_vacuum is turned off before running the tests in pragma2.test. (CVS...
drh [Wed, 27 Jun 2007 10:20:00 +0000 (10:20 +0000)] 
Make sure auto_vacuum is turned off before running the tests in pragma2.test. (CVS 4138)

FossilOrigin-Name: fc85c8aa160cc46419b9ce83d9eb47970c67118a

18 years agoSet the connection error code when sqlite3_blob_read() or
drh [Wed, 27 Jun 2007 00:36:13 +0000 (00:36 +0000)] 
Set the connection error code when sqlite3_blob_read() or
sqlite3_blob_write() fail.  Ticket #2464. (CVS 4137)

FossilOrigin-Name: 3bd990be3cb8a74be9eaa8d5710852be6733cb58

18 years agoUpdate the FAQ to describe how moving sqlite3 handles across threads is
drh [Wed, 27 Jun 2007 00:08:39 +0000 (00:08 +0000)] 
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

18 years agoMake sure the TCL bindings always use Tcl_GetWideIntFromObj() even if the
drh [Tue, 26 Jun 2007 22:55:37 +0000 (22:55 +0000)] 
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

18 years agoFix a test case so that it (hopefully) works on x86-64. Ticket #2465. (CVS 4134)
drh [Tue, 26 Jun 2007 22:42:56 +0000 (22:42 +0000)] 
Fix a test case so that it (hopefully) works on x86-64.  Ticket #2465. (CVS 4134)

FossilOrigin-Name: 3daf7cae18ae2ee6404f770e69e4cd0c715615e5

18 years agoRemove vestigal code from Makefile.linux-gcc. Ticket #2466. (CVS 4133)
drh [Tue, 26 Jun 2007 22:10:12 +0000 (22:10 +0000)] 
Remove vestigal code from Makefile.linux-gcc.  Ticket #2466. (CVS 4133)

FossilOrigin-Name: 338c18791006bac3709410087316700aad3b332f

18 years agoReorganize comments in fts2_tokenizer.h. No code changes. (CVS 4132)
danielk1977 [Tue, 26 Jun 2007 12:54:07 +0000 (12:54 +0000)] 
Reorganize comments in fts2_tokenizer.h. No code changes. (CVS 4132)

FossilOrigin-Name: b331e30395e9fc90abe40ab802972a67648cf48e

18 years agoUse (((i64)1)<<63) instead of just (1<<63) to compute the most negative 64-bit intege...
danielk1977 [Tue, 26 Jun 2007 12:52:33 +0000 (12:52 +0000)] 
Use (((i64)1)<<63) instead of just (1<<63) to compute the most negative 64-bit integer. (CVS 4131)

FossilOrigin-Name: be2570c061e1e751d1a46450bd1186549146526e

18 years agoFix for #2444: Avoid SIGFPE on 64-bit platforms when evaluating expressions like...
danielk1977 [Tue, 26 Jun 2007 11:13:25 +0000 (11:13 +0000)] 
Fix for #2444: Avoid SIGFPE on 64-bit platforms when evaluating expressions like ((1<<63)/-1). (CVS 4130)

FossilOrigin-Name: c6dfd9e43449b0b3528281d9e2e4971c6ba86ab5

18 years agoRemove the unused EXTSRC variable from the non-configure makefile. (CVS 4129)
danielk1977 [Tue, 26 Jun 2007 10:56:40 +0000 (10:56 +0000)] 
Remove the unused EXTSRC variable from the non-configure makefile. (CVS 4129)

FossilOrigin-Name: bbdcf372c6f2144a62fba742b3f4bd6b2fe58593

18 years agoFix an unitialized variable in fts2. (CVS 4128)
danielk1977 [Tue, 26 Jun 2007 10:55:01 +0000 (10:55 +0000)] 
Fix an unitialized variable in fts2. (CVS 4128)

FossilOrigin-Name: c349cf942534357955f80fc2aa8c96206af97b78

18 years agoAllow virtual tables to mark columns as 'hidden'. Hidden columns do not show
danielk1977 [Tue, 26 Jun 2007 10:38:54 +0000 (10:38 +0000)] 
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

18 years agoTry to work around an MSVC compiler bug. Ticket #2457. (CVS 4126)
drh [Tue, 26 Jun 2007 01:04:48 +0000 (01:04 +0000)] 
Try to work around an MSVC compiler bug.  Ticket #2457. (CVS 4126)

FossilOrigin-Name: 4a7079a19ab5c36ed88cf597c21bf9f8b63bdf86

18 years agoModify the amalgamation generator to identify every API using the
drh [Tue, 26 Jun 2007 00:52:39 +0000 (00:52 +0000)] 
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

18 years agoChange the name of sqlite3_atoi64 back to sqlite3Atoi64 so that it is clearly
drh [Tue, 26 Jun 2007 00:37:27 +0000 (00:37 +0000)] 
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

18 years agoRework the string to integer conversion logic to address tickets
drh [Mon, 25 Jun 2007 17:28:00 +0000 (17:28 +0000)] 
Rework the string to integer conversion logic to address tickets
#2344 and #2454. (CVS 4123)

FossilOrigin-Name: 5b3a490649ab88c168e3e5bf2efbc7f61b1b954d

18 years agoFix for #2445. A bug in the lookupName() logic that could cause a crash when a WHERE...
danielk1977 [Mon, 25 Jun 2007 16:29:33 +0000 (16:29 +0000)] 
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

18 years agoModify the non-configure build system to make it easier to build the library with...
danielk1977 [Mon, 25 Jun 2007 14:28:48 +0000 (14:28 +0000)] 
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

18 years agoPut #ifdefs in fts2_tokenizer so that the build works even when FTS2
drh [Mon, 25 Jun 2007 13:50:03 +0000 (13:50 +0000)] 
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

18 years agoAll the use of MySQL-style quoting in the FTS modules. Ticket #2446. (CVS 4119)
drh [Mon, 25 Jun 2007 12:49:05 +0000 (12:49 +0000)] 
All the use of MySQL-style quoting in the FTS modules.  Ticket #2446. (CVS 4119)

FossilOrigin-Name: 3be2a6d1c342454d93b05c38f3d9a960ab15dae2

18 years agoAdd a test that calls fts2_tokenizer() with an argument set via C code. (CVS 4118)
danielk1977 [Mon, 25 Jun 2007 12:05:40 +0000 (12:05 +0000)] 
Add a test that calls fts2_tokenizer() with an argument set via C code. (CVS 4118)

FossilOrigin-Name: fbcf2d75cd2b88d175c122477aa483f0771870e5

18 years agoAdd some tests for the fts2 icu tokenizer. (CVS 4117)
danielk1977 [Mon, 25 Jun 2007 11:24:38 +0000 (11:24 +0000)] 
Add some tests for the fts2 icu tokenizer. (CVS 4117)

FossilOrigin-Name: b79ced3e0a26b0db13613073c847c2d2ba7e174e