]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
18 years agoWebsite changes for version 3.3.8. Remove a C++-ism from test8.c. (CVS 3468)
drh [Sun, 8 Oct 2006 18:56:57 +0000 (18:56 +0000)] 
Website changes for version 3.3.8.  Remove a C++-ism from test8.c. (CVS 3468)

FossilOrigin-Name: 465ce5b2fe4462191dd02672838f3f903cd0f976

18 years agoFix incorrect doclist initialization in term_select_all().
shess [Thu, 5 Oct 2006 21:48:56 +0000 (21:48 +0000)] 
Fix incorrect doclist initialization in term_select_all().
docListRestrictColumn() generates a DL_POSITIONS doclist, which means
that after the first doclist is processed, the second doclist is
initialized as DL_POSITIONS, but with DL_POSITIONS_OFFSETS data.
(Note that DL_DEFAULT is now DL_POSITIONS, which masks this bug.) (CVS 3467)

FossilOrigin-Name: 144e3f11e22c6efd6f2d960599ab2d93542db406

18 years agoFix another UTF conversion problem on x64. Ticket #2008. (CVS 3466)
drh [Thu, 5 Oct 2006 11:43:53 +0000 (11:43 +0000)] 
Fix another UTF conversion problem on x64.  Ticket #2008. (CVS 3466)

FossilOrigin-Name: d16523e555afa1e6e89409f614fd665261fa3865

18 years agoThe snippet generator adds ellipsis between text from different columns. (CVS 3465)
drh [Wed, 4 Oct 2006 17:35:28 +0000 (17:35 +0000)] 
The snippet generator adds ellipsis between text from different columns. (CVS 3465)

FossilOrigin-Name: 6cf1fb9f801dc1b2865c0d1f9afb1b2076d4246e

18 years agoFix UTF conversions for -O2 on gcc 4.1.1. Ticket #2008. (CVS 3464)
drh [Wed, 4 Oct 2006 15:23:21 +0000 (15:23 +0000)] 
Fix UTF conversions for -O2 on gcc 4.1.1.  Ticket #2008. (CVS 3464)

FossilOrigin-Name: 86a08bb7c5da42fbeb5a026287d67912a2ffb7f1

18 years agoTests cases automatically remove many of their temporary files. (CVS 3463)
drh [Wed, 4 Oct 2006 11:55:49 +0000 (11:55 +0000)] 
Tests cases automatically remove many of their temporary files. (CVS 3463)

FossilOrigin-Name: eef0ec0d7ae0743d29454567f539e46ad2d5008e

18 years agoMake DL_POSITION the default mode in FTS1. Remove the need to compile
drh [Tue, 3 Oct 2006 19:37:37 +0000 (19:37 +0000)] 
Make DL_POSITION the default mode in FTS1.  Remove the need to compile
with SQLITE_CORE when SQLITE_ENABLE_FTS1 is used. (CVS 3462)

FossilOrigin-Name: df1a4b4834fdc88056371bcc767c5dfde2eaab72

18 years agoModify the makefile(s) to know about the FTS1 module - however FTS1 is
drh [Tue, 3 Oct 2006 19:12:32 +0000 (19:12 +0000)] 
Modify the makefile(s) to know about the FTS1 module - however FTS1 is
turned off by default.  Bump the version number to 3.3.8. (CVS 3461)

FossilOrigin-Name: 288ff63783725a5d8f86b6171473bb4ae3c4e37b

18 years agoReport the error SQLITE_CORRUPT instead of SQLITE_IOERR if unable
drh [Tue, 3 Oct 2006 19:05:18 +0000 (19:05 +0000)] 
Report the error SQLITE_CORRUPT instead of SQLITE_IOERR if unable
to rollback a hot journal that was damaged (for example) by filesystem
corruption following a power failure. (CVS 3460)

FossilOrigin-Name: 70501e4ea588ed762e4f6bc211ce63397faa3367

18 years agoAdd the OS-X locking style patches to os_unix.c. Disabled by default. (CVS 3459)
drh [Tue, 3 Oct 2006 17:40:40 +0000 (17:40 +0000)] 
Add the OS-X locking style patches to os_unix.c.  Disabled by default. (CVS 3459)

FossilOrigin-Name: f4103dea5e1a87adccccca715946e174d1cc7450

18 years agoFix sqlite3_analyzer so that it works when compiled against Tcl8.5. (CVS 3458)
drh [Tue, 3 Oct 2006 12:08:54 +0000 (12:08 +0000)] 
Fix sqlite3_analyzer so that it works when compiled against Tcl8.5. (CVS 3458)

FossilOrigin-Name: e774adce8e461a70ead9474cd64cb05c2d633eb9

18 years agoFix sqlite3_analyzer so that it works on databases containing virtual tables. (CVS...
drh [Tue, 3 Oct 2006 12:04:11 +0000 (12:04 +0000)] 
Fix sqlite3_analyzer so that it works on databases containing virtual tables. (CVS 3457)

FossilOrigin-Name: 47c8567fcb6b184ca13fcb67f80d261205c66fc8

18 years agoAdd the option to omit offset information from posting lists in FTS1. (CVS 3456)
drh [Tue, 3 Oct 2006 11:42:28 +0000 (11:42 +0000)] 
Add the option to omit offset information from posting lists in FTS1. (CVS 3456)

FossilOrigin-Name: fdcea7b1ffd821f3f2b6d30997d3957f705a6d0c

18 years agoAnother typo in the Porter stemmer check-in. (CVS 3455)
drh [Sun, 1 Oct 2006 20:41:03 +0000 (20:41 +0000)] 
Another typo in the Porter stemmer check-in. (CVS 3455)

FossilOrigin-Name: 6696bda11ccad9663b15206592116d638aa3ff0a

18 years agoTypo in previous check-in. (CVS 3454)
drh [Sun, 1 Oct 2006 18:59:56 +0000 (18:59 +0000)] 
Typo in previous check-in. (CVS 3454)

FossilOrigin-Name: a7350bf86c41c428adbfe42dc9cbb3ecf0045c25

18 years agoRemove one non-working test case fromthe Porter stemmer tests and add
drh [Sun, 1 Oct 2006 18:58:31 +0000 (18:58 +0000)] 
Remove one non-working test case fromthe Porter stemmer tests and add
an acknowledgement for the source of the test data (Martin Porter himself.) (CVS 3453)

FossilOrigin-Name: 1a2df2a61b3c84feae7587fa5b1eebf9c7e73daa

18 years agoAdd a Porter stemmer option to the FTS1 module. (CVS 3452)
drh [Sun, 1 Oct 2006 18:41:19 +0000 (18:41 +0000)] 
Add a Porter stemmer option to the FTS1 module. (CVS 3452)

FossilOrigin-Name: 936b06aaa8133e83104de87e03dc94e286a31f86

18 years agoMake sure memory does not leak when patching up column names so that
drh [Fri, 29 Sep 2006 14:01:04 +0000 (14:01 +0000)] 
Make sure memory does not leak when patching up column names so that
they are unique in a join or view.  Tickets #1952 and #2002. (CVS 3451)

FossilOrigin-Name: fcde639119c309c699ee9dd60ed60fd6e9c8c077

18 years agoFix a bug in the handling of the OR operator in FTS1. Test cases added to
drh [Thu, 28 Sep 2006 19:43:31 +0000 (19:43 +0000)] 
Fix a bug in the handling of the OR operator in FTS1.  Test cases added to
prevent a repeat. (CVS 3450)

FossilOrigin-Name: 8cdf1d6ae018dfc93f8f0962b2530e31aa0bebff

18 years agoMore snippet generator improvements and test cases. (CVS 3449)
drh [Thu, 28 Sep 2006 18:57:59 +0000 (18:57 +0000)] 
More snippet generator improvements and test cases. (CVS 3449)

FossilOrigin-Name: 0934d220b33c52024f42c89fa13326bd52333f39

18 years agoBug fix in the FTS1 snippet generator. Improvements in the way the snippet
drh [Thu, 28 Sep 2006 18:37:15 +0000 (18:37 +0000)] 
Bug fix in the FTS1 snippet generator.  Improvements in the way the snippet
generator handles whitespace. (CVS 3448)

FossilOrigin-Name: d3f4ae827582bd0aac54ae3211d272a1429b6523

18 years agoAvoid segfaults when inserted NULL values into FTS1. (CVS 3447)
drh [Thu, 28 Sep 2006 11:41:41 +0000 (11:41 +0000)] 
Avoid segfaults when inserted NULL values into FTS1. (CVS 3447)

FossilOrigin-Name: 165645d30115f3171fc45489823f85639fe2bfcd

18 years agoFix to the previous check-in. (CVS 3446)
drh [Tue, 26 Sep 2006 00:37:11 +0000 (00:37 +0000)] 
Fix to the previous check-in. (CVS 3446)

FossilOrigin-Name: 944d5f812004e2dc0065fce267accf8907235a50

18 years agoPerformance improvement and bug fix in sqlite3WinDelete(). (CVS 3445)
drh [Tue, 26 Sep 2006 00:34:17 +0000 (00:34 +0000)] 
Performance improvement and bug fix in sqlite3WinDelete(). (CVS 3445)

FossilOrigin-Name: 46ac1ac2d10cf2f1ebfb8dd4bb9a2ccffd85e816

18 years agoCVS malfunctioned on the previous check-in. Make sure the revision to
drh [Mon, 25 Sep 2006 18:05:04 +0000 (18:05 +0000)] 
CVS malfunctioned on the previous check-in.  Make sure the revision to
date.c was received.  Ticket #1991. (CVS 3444)

FossilOrigin-Name: 433dac1f2924d00282ef952668b21a9c023c93cb

18 years agoFix a roundoff error in the %f converter of strftime(). Ticket #1991. (CVS 3442)
drh [Mon, 25 Sep 2006 18:03:28 +0000 (18:03 +0000)] 
Fix a roundoff error in the %f converter of strftime().  Ticket #1991. (CVS 3442)

FossilOrigin-Name: 51b9c755ea01528e32690aabe91236ed917369f1

18 years agoAdd a pragma for activating proprietary extensions. (CVS 3441)
drh [Mon, 25 Sep 2006 18:01:57 +0000 (18:01 +0000)] 
Add a pragma for activating proprietary extensions. (CVS 3441)

FossilOrigin-Name: c63d34ce0c7412852fdcf047bc388d2f9710f297

18 years agoFix a round-off problem in the %f conversion of strftime(). Ticket #1991. (CVS 3443)
drh [Mon, 25 Sep 2006 18:01:31 +0000 (18:01 +0000)] 
Fix a round-off problem in the %f conversion of strftime(). Ticket #1991. (CVS 3443)

FossilOrigin-Name: bf4608406a3246fe7a214cb31b79e51f86b7ee18

18 years agoBug fix in pragma table_info(). (CVS 3440)
drh [Mon, 25 Sep 2006 13:48:30 +0000 (13:48 +0000)] 
Bug fix in pragma table_info(). (CVS 3440)

FossilOrigin-Name: c037403bae0d78f9dd2703ff05cc3cd3ac54e062

18 years agoRemove legacy cruft from shell.c. (CVS 3439)
drh [Mon, 25 Sep 2006 13:09:22 +0000 (13:09 +0000)] 
Remove legacy cruft from shell.c. (CVS 3439)

FossilOrigin-Name: 815d8f84b317d26a3ca87405d27376e1e4493d8b

18 years agoFix a bug in the handling of I/O errors introduced by the addition
drh [Sat, 23 Sep 2006 21:44:23 +0000 (21:44 +0000)] 
Fix a bug in the handling of I/O errors introduced by the addition
of extended error codes in check-in (3422). (CVS 3438)

FossilOrigin-Name: 20d7b29443ea7d9ec1ef81219c74ba725e8711e3

18 years agoFix documentation typo. Ticket #1986 (CVS 3437)
drh [Sat, 23 Sep 2006 20:46:23 +0000 (20:46 +0000)] 
Fix documentation typo.  Ticket #1986 (CVS 3437)

FossilOrigin-Name: 58c32ce35a04838b4a8e4210299bac935e60bfb9

18 years agoBe sure to ignore PRAGMA encoding pragmas if the encoding has already been
drh [Sat, 23 Sep 2006 20:36:01 +0000 (20:36 +0000)] 
Be sure to ignore PRAGMA encoding pragmas if the encoding has already been
set for a database.  Ticket #1987.  This patch also includes some cleanup
of the schema parser and initialization logic. (CVS 3436)

FossilOrigin-Name: dc797bf4fa96deabd9ceb6cc062b98d2ac49a574

18 years agoFix a build problem around sqlite3_overload_function. Only affects
shess [Fri, 22 Sep 2006 23:38:21 +0000 (23:38 +0000)] 
Fix a build problem around sqlite3_overload_function.  Only affects
so/dll builds. (CVS 3435)

FossilOrigin-Name: 791d70936b9c4fed57c95f61e3b4dfdd24221ee4

18 years agoImplemented UPDATE for full-text tables.
adamd [Fri, 22 Sep 2006 00:06:39 +0000 (00:06 +0000)] 
Implemented UPDATE for full-text tables.

We handle an UPDATE to a row by performing an UPDATE on the content table and by building new position lists for each term which appears in either the old or new versions of the row.  We write these position lists all at once; this is presumably more efficient than a delete followed by an insert (which would first write empty position lists, then new position lists). (CVS 3434)

FossilOrigin-Name: 757fa22400b363212b4d5f648bdc9fcbd9a7f152

18 years agoWhen gathering a doclist for querying, don't discard empty position lists until the...
adamd [Thu, 21 Sep 2006 20:56:52 +0000 (20:56 +0000)] 
When gathering a doclist for querying, don't discard empty position lists until the end; this allows empty position lists to override non-empty lists encountered later in the gathering process.  This fixes #1982, which was caused by the fact that for all-column queries we weren't discarding empty position lists at all. (CVS 3433)

FossilOrigin-Name: 111ca616713dd89b5d1e114de29c83256731c482

18 years agoBe more aggressive with the SQLITE_OMIT_VACUUM macro. Saves about 150
drh [Thu, 21 Sep 2006 11:02:16 +0000 (11:02 +0000)] 
Be more aggressive with the SQLITE_OMIT_VACUUM macro.  Saves about 150
bytes of code space. (CVS 3432)

FossilOrigin-Name: 7e618db4579d752cc6d775c664c93e141217948f

18 years agoImplementation of the snippet() function for FTS1. Includes a few
drh [Thu, 21 Sep 2006 02:03:08 +0000 (02:03 +0000)] 
Implementation of the snippet() function for FTS1.  Includes a few
simple test cases but more testing is needed. (CVS 3431)

FossilOrigin-Name: c7ee60d00976efab25a830e7416538010c734129

18 years agoFixed a build problem in sqlite3_extension_init(). (CVS 3430)
adamd [Mon, 18 Sep 2006 21:14:40 +0000 (21:14 +0000)] 
Fixed a build problem in sqlite3_extension_init(). (CVS 3430)

FossilOrigin-Name: bb2e1871cb10b470f96c793bb137c043ef30e1da

18 years agoConvert all names to lower case before sending them to the xFindFunction
drh [Mon, 18 Sep 2006 20:24:02 +0000 (20:24 +0000)] 
Convert all names to lower case before sending them to the xFindFunction
method of a virtual table.  In FTS1, use strcmp instead of strcasecmp.
Ticket #1981. (CVS 3429)

FossilOrigin-Name: cd4e1de896ef715c444071f758b74dbb607e0572

18 years agoConvert all names to lower case before sending them to the xFindFunction
drh [Mon, 18 Sep 2006 20:24:02 +0000 (20:24 +0000)] 
Convert all names to lower case before sending them to the xFindFunction
method of a virtual table.  In FTS1, use strcmp instead of strcasecmp.
Ticket #1981. (CVS 3428)

FossilOrigin-Name: efa8fb32a596c7232bb1754b3231e4f2421df75b

18 years agoModify FTS1 so that the "magic" column has the same name as the virtual
drh [Mon, 18 Sep 2006 02:12:47 +0000 (02:12 +0000)] 
Modify FTS1 so that the "magic" column has the same name as the virtual
table.  Offsets are retrieved using a special "offsets" function whose
first argument is the magic column.  Snippets will ultimately be retrieved
in the same way. (CVS 3427)

FossilOrigin-Name: 5e35dc1ffadfe7fa47673d052501ee79903eead9

18 years agoAdd the sqlite3_overload_function() API - part of the virtual table
drh [Sat, 16 Sep 2006 21:45:14 +0000 (21:45 +0000)] 
Add the sqlite3_overload_function() API - part of the virtual table
interface. (CVS 3426)

FossilOrigin-Name: aa7728f9f5b80dbb1b3db124f84b9166bf72bdd3

18 years agoAdd documentation for the sqlite3_extended_result_codes() API. (CVS 3425)
drh [Fri, 15 Sep 2006 16:58:48 +0000 (16:58 +0000)] 
Add documentation for the sqlite3_extended_result_codes() API. (CVS 3425)

FossilOrigin-Name: a6b3f6bed209dc27d36cd4e159159f73266e9911

18 years agoFix an initialization problem in FTS1. Ticket #1977. (CVS 3424)
drh [Fri, 15 Sep 2006 16:08:59 +0000 (16:08 +0000)] 
Fix an initialization problem in FTS1.  Ticket #1977. (CVS 3424)

FossilOrigin-Name: 5a18dd88498ca35ca1333d88c4635868d0b61073

18 years agoBug fix and better testing of the extended result codes. (CVS 3423)
drh [Fri, 15 Sep 2006 12:29:16 +0000 (12:29 +0000)] 
Bug fix and better testing of the extended result codes. (CVS 3423)

FossilOrigin-Name: 78ae74db1cbf605cd421e7ea321e879d3638968e

18 years agoAdd support for extended result codes - additional result information
drh [Fri, 15 Sep 2006 07:28:50 +0000 (07:28 +0000)] 
Add support for extended result codes - additional result information
carried in the higher bits of the integer return codes.  This must be
enabled using the sqlite3_extended_result_code() API.  Only a few extra
result codes are currently defined. (CVS 3422)

FossilOrigin-Name: ba579ddc4361fc6e8ea66f9385770d70dfe94751

18 years agoNew FTS1 test data based on enron emails. (CVS 3421)
drh [Thu, 14 Sep 2006 21:08:54 +0000 (21:08 +0000)] 
New FTS1 test data based on enron emails. (CVS 3421)

FossilOrigin-Name: 01651a32c6e67c4ac2cd23f1da7f3cc3adad1b33

18 years agoRemove file containing real email addresses. Ticket #1978. (CVS 3420)
drh [Thu, 14 Sep 2006 18:25:28 +0000 (18:25 +0000)] 
Remove file containing real email addresses.  Ticket #1978. (CVS 3420)

FossilOrigin-Name: 373a575f745dc2002090328f30539bbfef3119d5

18 years agoMinor build fixes. (CVS 3419)
adamd [Thu, 14 Sep 2006 16:57:19 +0000 (16:57 +0000)] 
Minor build fixes. (CVS 3419)

FossilOrigin-Name: 3564b07c40ab4563482a9aa36850757963f44238

18 years agoEnhanced I/O error simulation. (CVS 3418)
drh [Thu, 14 Sep 2006 13:47:11 +0000 (13:47 +0000)] 
Enhanced I/O error simulation. (CVS 3418)

FossilOrigin-Name: 86931854fc5a63571719639d9a23b1d6614a6153

18 years agoThe FTS1 tables have a new automatic column named "offset" that returns
drh [Thu, 14 Sep 2006 01:17:30 +0000 (01:17 +0000)] 
The FTS1 tables have a new automatic column named "offset" that returns
a string containing byte offset information for all matching terms.
Also added a large test case based on SQLite mailing list entries. (CVS 3417)

FossilOrigin-Name: f25cfa1aec0e4c1fe07176039a1b7f4e6a2c66ec

18 years agoModify the ".dump" command in the command-line shell so that it works
drh [Wed, 13 Sep 2006 20:22:02 +0000 (20:22 +0000)] 
Modify the ".dump" command in the command-line shell so that it works
with virtual tables. (CVS 3416)

FossilOrigin-Name: afd40184b752f641b423ceffac2476f2cfbdfd31

18 years agoRemove unused malloc failure test. (Ticket #1976)
drh [Wed, 13 Sep 2006 19:21:28 +0000 (19:21 +0000)] 
Remove unused malloc failure test.  (Ticket #1976)
Also include fixes for other problems
discovered while investigating ticket #1976. (CVS 3415)

FossilOrigin-Name: f4ab546b2e8105422fb1baa2b86e688b5d19f20e

18 years agoIn FTS1: Retain the Query structure as part of the cursor. It will be used
drh [Wed, 13 Sep 2006 19:18:29 +0000 (19:18 +0000)] 
In FTS1: Retain the Query structure as part of the cursor.  It will be used
laster as part of snippet generation. (CVS 3414)

FossilOrigin-Name: 607d928ce91f3efa9c7019fc789a9cd3c41cfc92

18 years agoEarlier refactoring changed name in fts1.c but not fts1.h. (CVS 3413)
shess [Wed, 13 Sep 2006 18:40:25 +0000 (18:40 +0000)] 
Earlier refactoring changed name in fts1.c but not fts1.h. (CVS 3413)

FossilOrigin-Name: d4edb8035c8abbdb301893557934dd644ef3c950

18 years agoMinor code cleanup in FTS1. (CVS 3412)
drh [Wed, 13 Sep 2006 17:17:48 +0000 (17:17 +0000)] 
Minor code cleanup in FTS1. (CVS 3412)

FossilOrigin-Name: fca592816767de397fbaf22cccdf1028fc5dfc91

18 years agoImplementation of "column:" modifiers in FTS1 queries. (CVS 3411)
drh [Wed, 13 Sep 2006 16:02:43 +0000 (16:02 +0000)] 
Implementation of "column:" modifiers in FTS1 queries. (CVS 3411)

FossilOrigin-Name: 820634f71e3a3499994f82b56b784d22a7e3cdcf

18 years agoModule spec parser enhancements for FTS1. Now able to cope with column
drh [Wed, 13 Sep 2006 15:20:13 +0000 (15:20 +0000)] 
Module spec parser enhancements for FTS1.  Now able to cope with column
names in the spec that are SQL keywords or have special characters, etc.
Also added support for additional control lines.  Column names can be
followed by a type specifier (which is ignored.) (CVS 3410)

FossilOrigin-Name: adb780e0dc8bc7dcd1102efbfa4bc17eefdf968e

18 years agoFix the FTS1 test cases and add new tests. Comments added to the FTS1 code. (CVS...
drh [Wed, 13 Sep 2006 12:36:08 +0000 (12:36 +0000)] 
Fix the FTS1 test cases and add new tests.  Comments added to the FTS1 code. (CVS 3409)

FossilOrigin-Name: 528036c828c93c78ca879bf89a52131b72e24067

18 years agoAllow virtual tables to contain multiple full-text-indexed columns. Added a magic...
adamd [Wed, 13 Sep 2006 02:18:20 +0000 (02:18 +0000)] 
Allow virtual tables to contain multiple full-text-indexed columns.  Added a magic column "_all" which can be used for querying all columns in a table at once.

For now, each posting list stores position/offset information for multiple columns.  We may implement separate posting lists for separate columns at some future point. (CVS 3408)

FossilOrigin-Name: 366a70b086c817bddecd83053472ec76ef20f309

18 years agoAnswer queries for a particular rowid in a full-text table by looking up
adamd [Tue, 12 Sep 2006 23:36:45 +0000 (23:36 +0000)] 
Answer queries for a particular rowid in a full-text table by looking up
that rowid directly rather than by performing a table scan. (CVS 3407)

FossilOrigin-Name: 877d5558b1a6f65201b1825336935b146583bffa

18 years agoAdd support for IF EXISTS on CREATE/DROP TRIGGER/VIEW. Ticket #1899. (CVS 3406)
drh [Mon, 11 Sep 2006 23:45:48 +0000 (23:45 +0000)] 
Add support for IF EXISTS on CREATE/DROP TRIGGER/VIEW.  Ticket #1899. (CVS 3406)

FossilOrigin-Name: e4fe736cfbbdc081581911a01690576034877b72

18 years agoRe-use deleted rowids for new segments. This has a somewhat
shess [Mon, 11 Sep 2006 21:39:21 +0000 (21:39 +0000)] 
Re-use deleted rowids for new segments.  This has a somewhat
surprising impact on performance, I believe because it keeps the index
smaller (by keeping rowids smaller), and also because it improves
locality in the table (deleting a row means we've already touched the
pages leading to that rowid). (CVS 3405)

FossilOrigin-Name: 2f5f6290c9ef99c7b060aecc4d996c976c50c9d7

18 years agoGet VACUUM working with virtual tables. (CVS 3404)
drh [Mon, 11 Sep 2006 11:13:26 +0000 (11:13 +0000)] 
Get VACUUM working with virtual tables. (CVS 3404)

FossilOrigin-Name: d5ffef3870f06d2dd744ce9470d3c0e68062e804

18 years agoAdd a rudimentary tokenizer and parser to FTS1 for parsing the module
drh [Mon, 11 Sep 2006 00:34:22 +0000 (00:34 +0000)] 
Add a rudimentary tokenizer and parser to FTS1 for parsing the module
arguments during initialization.   Recognized arguments include a
tokenizer selector and a list of virtual table columns. (CVS 3403)

FossilOrigin-Name: 227dc3feb537e6efd5b0c1d2dad40193db07d5aa

18 years agoAdd pzErr parameters to the xConnect and xCreate methods of virtual tables
drh [Sun, 10 Sep 2006 17:31:58 +0000 (17:31 +0000)] 
Add pzErr parameters to the xConnect and xCreate methods of virtual tables
in order to provide better error reporting.  This is an interface change
for virtual tables.  Prior virtual table implementations will need to be
modified and recompiled. (CVS 3402)

FossilOrigin-Name: f44b8bae97b6872524580009c96d07391578c388

18 years agoAdd a new zErrMsg field to the sqlite3_vtab structure to support returning
drh [Sun, 10 Sep 2006 17:08:29 +0000 (17:08 +0000)] 
Add a new zErrMsg field to the sqlite3_vtab structure to support returning
error messages from virtual table constructors.  This change means that
virtual table implementations compiled as loadable extensions for version
3.3.7 will need to be recompile for version 3.3.8 and will not be usable
by both versions at one.  The virtual table mechanism is still considered
experimental so we feel justified in breaking backwards compatibility
in this way.  Additional interface changes might occurs in the future. (CVS 3401)

FossilOrigin-Name: 36693a5cb72b4363010f9ab0866e1f7865f65275

18 years agoAdd some simple test cases for the OR and NOT logic of the fts1 module.
drh [Sun, 10 Sep 2006 03:34:06 +0000 (03:34 +0000)] 
Add some simple test cases for the OR and NOT logic of the fts1 module.
Fix lots of bugs discovered while developing these test cases. (CVS 3400)

FossilOrigin-Name: 70bcff024b44d1b40afac6eba959fa89fb993147

18 years agoAdd support for OR and NOT terms in fts1. (CVS 3399)
drh [Sat, 9 Sep 2006 23:11:51 +0000 (23:11 +0000)] 
Add support for OR and NOT terms in fts1. (CVS 3399)

FossilOrigin-Name: ae50265791d1a7500aa3c405a78a9bca8ff0cc08

18 years agoWrite doclists using a segmented technique to amortize costs better.
shess [Fri, 8 Sep 2006 17:00:17 +0000 (17:00 +0000)] 
Write doclists using a segmented technique to amortize costs better.
New items for a term are merged with the term's segment 0 doclist,
until that doclist exceeds CHUNK_MAX.  Then the segments are merged in
exponential fashion, so that segment 1 contains approximately
2*CHUNK_MAX data, segment 2 4*CHUNK_MAX, and so on. (CVS 3398)

FossilOrigin-Name: b6b93a3325d3e728ca36255c0ff6e1f63e03b0ac

18 years agoAdd HAVE_GMTIME_R and HAVE_LOCALTIME_R flags and use them if defined.
drh [Fri, 8 Sep 2006 12:49:43 +0000 (12:49 +0000)] 
Add HAVE_GMTIME_R and HAVE_LOCALTIME_R flags and use them if defined.
Unable to modify the configure script to test for gmtime_r and
localtime_r, however, because on my SuSE 10.2 system, autoconf generates
a configure script that does not work.  Bummer.  Ticket #1906 (CVS 3397)

FossilOrigin-Name: 862302eaae7bdad6f1b6431f08439c4ce7e0e4bb

18 years agoBug fix in date/time computations. Ticket #1964.
drh [Fri, 8 Sep 2006 12:27:36 +0000 (12:27 +0000)] 
Bug fix in date/time computations.  Ticket #1964.
Some unrelated comment typos are also fixed and got accidently
checked in at the same time. (CVS 3396)

FossilOrigin-Name: c81eaa0dc9a327d222e066076c4a2da5e69d8c21

18 years agoImprovements to the documentation of the return codes for sqlite3_step().
drh [Fri, 8 Sep 2006 11:56:30 +0000 (11:56 +0000)] 
Improvements to the documentation of the return codes for sqlite3_step().
Tickets #1633, #1366, #1178, #906, and probably others too. (CVS 3395)

FossilOrigin-Name: 508248e783dc1e3da3695b28467ca3b79629e582

18 years agoInclude io.h on Windows to quell a build warning about access() having no prototype...
adamd [Wed, 6 Sep 2006 21:39:40 +0000 (21:39 +0000)] 
Include io.h on Windows to quell a build warning about access() having no prototype. (CVS 3394)

FossilOrigin-Name: b3eb1732bd529b14bef1872171a3c6429e209d31

18 years agoA minor change to fts1.c to fix broken build. (CVS 3393)
adamd [Tue, 5 Sep 2006 18:21:31 +0000 (18:21 +0000)] 
A minor change to fts1.c to fix broken build. (CVS 3393)

FossilOrigin-Name: 55a03b96251515a4817a0eefb197219a460640e7

18 years agoFix a bug in the new misc6.test script. Fix error messages when not
drh [Mon, 4 Sep 2006 18:54:14 +0000 (18:54 +0000)] 
Fix a bug in the new misc6.test script.  Fix error messages when not
compiled with memory debugging enabled.  Ticket #1957. (CVS 3392)

FossilOrigin-Name: 9fb92024bf5058bdc32066a0d07b93da575779fa

18 years agoMake sure strings returned by sqlite3_value_text() and sqlite3_value_text16()
drh [Mon, 4 Sep 2006 15:53:53 +0000 (15:53 +0000)] 
Make sure strings returned by sqlite3_value_text() and sqlite3_value_text16()
are always '\000'-terminated. (CVS 3391)

FossilOrigin-Name: 2c63588b45f4e1ab9b9f1b72c901f3800433424a

18 years agoFix bugs in test scripts so that fulltest will pass. (CVS 3390)
drh [Sat, 2 Sep 2006 22:14:59 +0000 (22:14 +0000)] 
Fix bugs in test scripts so that fulltest will pass. (CVS 3390)

FossilOrigin-Name: 367bd8376f323beb3148eab86ada1a3cb379ba3b

18 years agoChanges to the Makefile.in so that MinGW users can build a DLL. Ticket #1955. (CVS...
drh [Sat, 2 Sep 2006 22:14:11 +0000 (22:14 +0000)] 
Changes to the Makefile.in so that MinGW users can build a DLL.  Ticket #1955. (CVS 3389)

FossilOrigin-Name: 7279ddd08444d54712f738d997c5d11f6af064c1

18 years agoAdd a TRACE macro to the FTS1 module for troubleshooting. Turned off by
drh [Sat, 2 Sep 2006 20:58:25 +0000 (20:58 +0000)] 
Add a TRACE macro to the FTS1 module for troubleshooting.  Turned off by
default. (CVS 3388)

FossilOrigin-Name: d4923e98c66ae03d899f633e5e309471f5695abb

18 years agoDo not call the xDisconnect method on a virtual table while xUpdate is
drh [Sat, 2 Sep 2006 20:57:52 +0000 (20:57 +0000)] 
Do not call the xDisconnect method on a virtual table while xUpdate is
pending.  Instead, defer the xDisconnect until after xUpdate completes. (CVS 3387)

FossilOrigin-Name: 61148f4c36255c4ed3552f888fa75252b300589d

18 years agoTest for busted TCL builds that do not support 64-bit integers and print
drh [Sat, 2 Sep 2006 14:50:23 +0000 (14:50 +0000)] 
Test for busted TCL builds that do not support 64-bit integers and print
a warning message to users that test failures may be a result of the bad
TCL build and not some problem with SQLite.  Ticket #1953. (CVS 3386)

FossilOrigin-Name: ca864ee913ea5ae88761e617bcac300ffa339369

18 years agoConvert static variables into constants in the FTS module. (CVS 3385)
drh [Sat, 2 Sep 2006 14:16:59 +0000 (14:16 +0000)] 
Convert static variables into constants in the FTS module. (CVS 3385)

FossilOrigin-Name: 098cbafcd6dcf57142b0417e796d27ffddcc0920

18 years agoAutomatically register the FTS module if it is compiled into the build. (CVS 3384)
drh [Sat, 2 Sep 2006 13:58:06 +0000 (13:58 +0000)] 
Automatically register the FTS module if it is compiled into the build. (CVS 3384)

FossilOrigin-Name: 8a96bdb72439c0b337cbaa2d07897d0896ea3024

18 years agoConstruct the .def files before calling dllwrap to build the .dll files.
drh [Sat, 2 Sep 2006 13:22:28 +0000 (13:22 +0000)] 
Construct the .def files before calling dllwrap to build the .dll files.
Ticket #1951. (CVS 3383)

FossilOrigin-Name: e6e49a3811d4b26518026cc1692c654e8edbf741

18 years agoMiscellaneous restructuring and cleanup based on suggestions from shess. (CVS 3382)
adamd [Sat, 2 Sep 2006 00:23:01 +0000 (00:23 +0000)] 
Miscellaneous restructuring and cleanup based on suggestions from shess. (CVS 3382)

FossilOrigin-Name: e98b0cf292f6dc9deb6ae9b773c52b16867f7556

18 years agoAutomatically compute the sqlite3.def and tclsqlite3.def files when
drh [Fri, 1 Sep 2006 17:06:20 +0000 (17:06 +0000)] 
Automatically compute the sqlite3.def and tclsqlite3.def files when
building windows DLLs.  This will (hopefully) keep the .def files in
perfect synchronization with the DLLs.  Ticket #1951. (CVS 3381)

FossilOrigin-Name: 1f6d79266a7f8d0e909e47d9858557e3f95407db

18 years agoRemove use of the "clock" command in the test suite so that the tests
drh [Fri, 1 Sep 2006 15:49:05 +0000 (15:49 +0000)] 
Remove use of the "clock" command in the test suite so that the tests
will run in Tcl8.5.  Ticket #1445. (CVS 3380)

FossilOrigin-Name: bedbac54db173ceb74bd78acd021209f28aa30a8

18 years agoMake fts1.c not rely on nul-terminated strings. Mostly a matter of
shess [Fri, 1 Sep 2006 00:33:44 +0000 (00:33 +0000)] 
Make fts1.c not rely on nul-terminated strings.  Mostly a matter of
making sure we always pass around ptr/len, but there were a few places
where we actually relied on nul-termination.

An earlier change had additionally changed appropriate
sqlite3_bind_text() calls to sqlite3_bind_blob().  I've found that
this changes what's actually stored in the database, so backed those
changes out.  Also (and this is weird), I found that I could no longer
do straight-forward = queries against %_term.term at a command-line. (CVS 3379)

FossilOrigin-Name: 5844db1aa9c23a005c88104b084f68afb21891c7

18 years agoMake tokenizer not rely on nul-terminated text. Instead of using
shess [Fri, 1 Sep 2006 00:05:17 +0000 (00:05 +0000)] 
Make tokenizer not rely on nul-terminated text.  Instead of using
strcspn() and a nul-terminated delimiter list, I just flagged
delimiters in an array and wrote things inline.  Submitting this for
review separately because it's pretty standalone. (CVS 3378)

FossilOrigin-Name: 2631ceaeefaca3aa837e3b439399f13c51456914

18 years agoRefactor the FTS1 module so that its name is "fts1" instead of "fulltext",
drh [Thu, 31 Aug 2006 15:07:14 +0000 (15:07 +0000)] 
Refactor the FTS1 module so that its name is "fts1" instead of "fulltext",
so that all symbols with external linkage begin with "sqlite3Fts1", and
so that all filenames begin with "fts1". (CVS 3377)

FossilOrigin-Name: e1891f0dc58e5498a8845d8b9b5b092d7f9c7003

18 years agoJust don't run tolower() on hi-bit characters. This shouldn't cause
shess [Wed, 30 Aug 2006 21:40:30 +0000 (21:40 +0000)] 
Just don't run tolower() on hi-bit characters.  This shouldn't cause
us to break any UTF-8 code points, unless they were already broken in
the input. (CVS 3376)

FossilOrigin-Name: 6c77c2d5e15e9d3efed3e274bc93cd5a4868f574

18 years agoBug fix: Get INSERT INTO ... SELECT working when the target is a virtual
drh [Tue, 29 Aug 2006 18:46:14 +0000 (18:46 +0000)] 
Bug fix:  Get INSERT INTO ... SELECT working when the target is a virtual
table. (CVS 3375)

FossilOrigin-Name: 7cdc41e748c2d8f9e3d85c07143b8bc343bf2426

18 years agoBug fix: Get INSERT INTO ... SELECT working when the target is a virtual
drh [Tue, 29 Aug 2006 18:46:14 +0000 (18:46 +0000)] 
Bug fix:  Get INSERT INTO ... SELECT working when the target is a virtual
table. (CVS 3374)

FossilOrigin-Name: 7912485705c96e365a942932bb12d5b9113c9885

18 years agoDocument the fact that SQLite allows NULL values in PRIMARY KEY columns
drh [Tue, 29 Aug 2006 13:08:37 +0000 (13:08 +0000)] 
Document the fact that SQLite allows NULL values in PRIMARY KEY columns
and the fact that we might design to change this in the future.
Ticket #518. (CVS 3373)

FossilOrigin-Name: b99d845ef4776595022c6fb855e582cfe6ef2f9f

18 years agoImproved built-in help in the command-line shell. Enable the
drh [Tue, 29 Aug 2006 12:04:19 +0000 (12:04 +0000)] 
Improved built-in help in the command-line shell.  Enable the
fulltext search extension in the TCL interface. (CVS 3372)

FossilOrigin-Name: 9763b4bfd5f0579f9fb821899ffa8bfe650054d7

18 years agoMake static some symbols which shouldn't have been exported. (CVS 3371)
shess [Mon, 28 Aug 2006 23:46:01 +0000 (23:46 +0000)] 
Make static some symbols which shouldn't have been exported. (CVS 3371)

FossilOrigin-Name: 58006e38af760b53cf72bf127d7c7b8a619a1282

18 years agoMake hi-bit characters delimiters. This is a stopgap until the tokenizer
shess [Mon, 28 Aug 2006 20:08:56 +0000 (20:08 +0000)] 
Make hi-bit characters delimiters.  This is a stopgap until the tokenizer
and fulltext.c recognize UTF-8 correctly. (CVS 3370)

FossilOrigin-Name: ca850d3d80f67672172d11392fcdf60bfbb94c02

18 years agoAdd sqlite3_malloc and sqlite3_realloc to the sqlite3.def file. Ticket #1943. (CVS...
drh [Sun, 27 Aug 2006 14:10:39 +0000 (14:10 +0000)] 
Add sqlite3_malloc and sqlite3_realloc to the sqlite3.def file.  Ticket #1943. (CVS 3369)

FossilOrigin-Name: 4a74838eac5b939058c8aebef30113c5bdb354e5