]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
18 years agoMake sure that the database size cache in the pager is invalidated whenever
drh [Wed, 3 Jan 2007 15:34:29 +0000 (15:34 +0000)] 
Make sure that the database size cache in the pager is invalidated whenever
the database is unlocked.  A stale value in the database size cache can
result in database corruption on a heavily loaded system running
autovacuum. (CVS 3548)

FossilOrigin-Name: 6806b9ecb5e3b90e793c5862404e76485df33b25

18 years agoUpdate the vtab_err test to check for -DSQLITE_MEMDEBUG=1 and skip the tests
drh [Tue, 2 Jan 2007 18:41:54 +0000 (18:41 +0000)] 
Update the vtab_err test to check for -DSQLITE_MEMDEBUG=1 and skip the tests
if missing.  Pager is more careful to clear its file size cache.  Remove
an assert() in VDBE that might fail on a corrupt database file. (CVS 3547)

FossilOrigin-Name: bf1afd016ad71dac90e58540122108f92e77ce3d

18 years agoOS/2 change: add safeguard to be able to use SQLite loaded into high memory on OS...
pweilbacher [Fri, 22 Dec 2006 20:33:13 +0000 (20:33 +0000)] 
OS/2 change: add safeguard to be able to use SQLite loaded into high memory on OS/2 when compiled with GCC 3.3 or later. Currently, this is only used when building within the Mozilla source tree. (CVS 3546)

FossilOrigin-Name: 720189b8fafa61e5b712b409e76c368079b4bf96

18 years agoDisable extension loading by default. At some point we should change
drh [Thu, 21 Dec 2006 22:38:23 +0000 (22:38 +0000)] 
Disable extension loading by default.  At some point we should change
the configure script to detect the presence of dlopen() automatically
and add the appropriate library to the link.  But that requires a
working version of autoconf, which I do not have.  Ticket #2124. (CVS 3545)

FossilOrigin-Name: 87a9ee077aa53f1677667983f4566d61ea68b500

18 years agoMore fixes to the microsoft code-page nightmare... (CVS 3544)
drh [Thu, 21 Dec 2006 03:20:40 +0000 (03:20 +0000)] 
More fixes to the microsoft code-page nightmare... (CVS 3544)

FossilOrigin-Name: 0b47d88060069781e7e184806d6ecaeff9b9e5d1

18 years agoUse GetProcAddressA() on wince. Ticket #2123 (CVS 3543)
drh [Thu, 21 Dec 2006 02:21:56 +0000 (02:21 +0000)] 
Use GetProcAddressA() on wince.  Ticket #2123 (CVS 3543)

FossilOrigin-Name: e3dddd1cef5877c009852fd7f484973843e26e00

18 years agoReduce the number of utf8->unicode conversions required in wince. Ticket #2122 ...
drh [Thu, 21 Dec 2006 01:37:39 +0000 (01:37 +0000)] 
Reduce the number of utf8->unicode conversions required in wince.  Ticket #2122 (CVS 3542)

FossilOrigin-Name: 6d2ff0962dff0477fe2af0323032dc16337f42ab

18 years agoMove the shared-library loading routines into the OS portability layer,
drh [Thu, 21 Dec 2006 01:29:22 +0000 (01:29 +0000)] 
Move the shared-library loading routines into the OS portability layer,
thus enabling the os_win.c code to handle the character encoding
confusion of win95/nt/ce.  Ticket #2023. (CVS 3541)

FossilOrigin-Name: a1bcc6de578992b28924c1cf974ea58251454e2d

18 years agoChange a parameter type from "int" to "DWORD" in the windows interface.
drh [Thu, 21 Dec 2006 00:46:42 +0000 (00:46 +0000)] 
Change a parameter type from "int" to "DWORD" in the windows interface.
Ticket #2122. (CVS 3540)

FossilOrigin-Name: cca1eb3dfaa67d64ced3e49e7ddbd8db27a5526a

18 years agoThe xFilter method is not optional. (CVS 3539)
drh [Wed, 20 Dec 2006 14:53:38 +0000 (14:53 +0000)] 
The xFilter method is not optional. (CVS 3539)

FossilOrigin-Name: 6fdbd3bc91559ed95314842c0df33adbf276913e

18 years agoInitialize a variable to avoid compiler warnings and human confusion.
drh [Wed, 20 Dec 2006 14:31:24 +0000 (14:31 +0000)] 
Initialize a variable to avoid compiler warnings and human confusion.
Ticket #2117. (CVS 3538)

FossilOrigin-Name: 951af8d5c57d665ee2ad3ee09ce34c023aa9e771

18 years agoPatch to get extension loading working on wince. Ticket #2023. (CVS 3537)
drh [Wed, 20 Dec 2006 03:37:34 +0000 (03:37 +0000)] 
Patch to get extension loading working on wince.  Ticket #2023. (CVS 3537)

FossilOrigin-Name: a81f3ddfd0626ae642c5ffd27a23c568d06f58dc

18 years agoThe query optimizer does a better job of optimizing out ORDER BY clauses
drh [Wed, 20 Dec 2006 03:24:19 +0000 (03:24 +0000)] 
The query optimizer does a better job of optimizing out ORDER BY clauses
that contain the rowid or which use indices that contain the rowid.
Ticket #2116. (CVS 3536)

FossilOrigin-Name: f245f5c2c2d337fe6458824beb7f9e721837765f

18 years agoAllow constraint names on DEFAULT values in a table definition.
drh [Wed, 20 Dec 2006 02:15:00 +0000 (02:15 +0000)] 
Allow constraint names on DEFAULT values in a table definition.
Ticket #2109. (CVS 3535)

FossilOrigin-Name: 893d58c23da2a9b900a13eaa5202d94429862136

18 years agoBuild without warnings and pass all tests with SQLITE_OMIT_LOAD_EXTENSION.
drh [Tue, 19 Dec 2006 18:57:11 +0000 (18:57 +0000)] 
Build without warnings and pass all tests with SQLITE_OMIT_LOAD_EXTENSION.
Ticket #2113. (CVS 3534)

FossilOrigin-Name: c3d118b40811b201e4a98b62549c5439d7d5098d

18 years agoFix a typo in shell.c. Ticket #2111. (CVS 3533)
drh [Tue, 19 Dec 2006 18:47:41 +0000 (18:47 +0000)] 
Fix a typo in shell.c.  Ticket #2111. (CVS 3533)

FossilOrigin-Name: 6f8a56231c4d0d990c54365f0ff0544bd8b3caf8

18 years agoUse sqlite3_mprintf() instead of strdup() to reduce libc dependencies.
drh [Tue, 19 Dec 2006 18:46:08 +0000 (18:46 +0000)] 
Use sqlite3_mprintf() instead of strdup() to reduce libc dependencies.
Ticket #2114. (CVS 3532)

FossilOrigin-Name: bf4a78cb315c0b1fca31c6f596ff0a8ece96860f

18 years agoSpeed improvement: do not journal or rollback pages that are pulled out of
drh [Mon, 18 Dec 2006 18:34:51 +0000 (18:34 +0000)] 
Speed improvement: do not journal or rollback pages that are pulled out of
the freelist. (CVS 3531)

FossilOrigin-Name: 4dffc4c3c9c4ccc024669cec204c68e953333563

18 years agoUpdates to the "Distinctive Features" document. (CVS 3530)
drh [Mon, 18 Dec 2006 14:12:21 +0000 (14:12 +0000)] 
Updates to the "Distinctive Features" document. (CVS 3530)

FossilOrigin-Name: c734585e1a801bec2d393d000c323ba842c2292d

18 years agoQuery optimizer enhancement: In "FROM a,b,c left join d" allow the C table
drh [Sat, 16 Dec 2006 16:25:15 +0000 (16:25 +0000)] 
Query optimizer enhancement: In "FROM a,b,c left join d" allow the C table
to be reordered with A and B.  This used to be the case but the capability
was removed by (3203) and (3052) in response to ticket #1652.  This change
restores the capability. (CVS 3529)

FossilOrigin-Name: 7393c81b8cb9d4344ae744de9eabcb3af64f1db8

18 years agoFix a bug in lemon that leads to an assertion fault given an invalid
drh [Thu, 14 Dec 2006 01:06:22 +0000 (01:06 +0000)] 
Fix a bug in lemon that leads to an assertion fault given an invalid
grammar.  The bug and this fix do not effect on SQLite.  Ticket #2107. (CVS 3528)

FossilOrigin-Name: f2ad230f6dce98d664370d77845b5f585de20f08

18 years agoChange the table_info pragma so that it returns NULL for the default
drh [Thu, 30 Nov 2006 13:06:37 +0000 (13:06 +0000)] 
Change the table_info pragma so that it returns NULL for the default
value if there is no default value.  Ticket #2078. (CVS 3527)

FossilOrigin-Name: 5f21c3a5f02b4f2c4550f5904e9d0e1e2eafb0f3

18 years agoImprovements to the new performance tests. (CVS 3526)
drh [Thu, 30 Nov 2006 13:06:00 +0000 (13:06 +0000)] 
Improvements to the new performance tests. (CVS 3526)

FossilOrigin-Name: 27f56c20514030e009fc3aa7e060d2e6276ddb83

18 years agoFix indentation typo in btree.c. (CVS 3525)
drh [Thu, 30 Nov 2006 13:05:29 +0000 (13:05 +0000)] 
Fix indentation typo in btree.c. (CVS 3525)

FossilOrigin-Name: 5d61486f0fbd21ef992879b39d4e563fbfe46596

18 years agoDrop a couple variables which are no longer used anywhere. (CVS 3524)
shess [Wed, 29 Nov 2006 23:41:10 +0000 (23:41 +0000)] 
Drop a couple variables which are no longer used anywhere. (CVS 3524)

FossilOrigin-Name: 08c2cc0e0782cfaca89947a01b7ea4474dbe71aa

18 years agoTest that terms longer than interior nodes work correctly. A bug
shess [Wed, 29 Nov 2006 21:03:00 +0000 (21:03 +0000)] 
Test that terms longer than interior nodes work correctly.  A bug
prior to fts2.c r1.10 meant that such large terms caused an eventual
stack overflow. (CVS 3523)

FossilOrigin-Name: 66581162daa188d23078c9d21fd5b2563d4d238a

18 years agoAdded the speed1.test script (CVS 3522)
drh [Wed, 29 Nov 2006 20:52:59 +0000 (20:52 +0000)] 
Added the speed1.test script (CVS 3522)

FossilOrigin-Name: 30355dfbd920f3b6a78110aaf370371f620324b7

18 years agohttp://www.sqlite.org/cvstrac/tktview?tn=2046
shess [Wed, 29 Nov 2006 05:17:28 +0000 (05:17 +0000)] 
http://www.sqlite.org/cvstrac/tktview?tn=2046

The virtual table interface allows for a cursor to field multiple
xFilter() calls.  For instance, if a join is done with a virtual
table, there could be a call for each row which potentially matches.
Unfortunately, fulltextFilter() assumes that it has a fresh cursor,
and overwrites a prepared statement and a malloc'ed pointer, resulting
in unfinalized statements and a memory leak.

This change hacks the code to manually clean up offending items in
fulltextFilter(), emphasis on "hacks", since it's a fragile fix
insofar as future additions to fulltext_cursor could continue to have
the problem. (CVS 3521)

FossilOrigin-Name: 18142fdb6d1f5bfdbb1155274502b9a602885fcb

18 years agoDelta-encode terms in interior nodes. While experiments have shown
shess [Wed, 29 Nov 2006 01:02:03 +0000 (01:02 +0000)] 
Delta-encode terms in interior nodes.  While experiments have shown
that this is of marginal utility when encoding terms resulting from
regular English text, it turns out to be very useful when encoding
inputs with very large terms. (CVS 3520)

FossilOrigin-Name: c8151a998ec2423b417566823dc9957c7d5d782c

18 years agoImprovements to the speed tests recently added to the test suite. (CVS 3519)
drh [Thu, 23 Nov 2006 21:09:10 +0000 (21:09 +0000)] 
Improvements to the speed tests recently added to the test suite. (CVS 3519)

FossilOrigin-Name: 272c1a6e61d053121b5412564948dad4366b5727

18 years agoFix a typo in the OMIT_AUTORIZATION in expr.c. (CVS 3518)
drh [Thu, 23 Nov 2006 11:59:13 +0000 (11:59 +0000)] 
Fix a typo in the OMIT_AUTORIZATION in expr.c. (CVS 3518)

FossilOrigin-Name: 3dea7fbefdadb269e58ae76bb9a7281c96d8b15b

18 years agoMake the pager sector size configurable at compile-time. (CVS 3517)
drh [Thu, 23 Nov 2006 11:58:44 +0000 (11:58 +0000)] 
Make the pager sector size configurable at compile-time. (CVS 3517)

FossilOrigin-Name: 6221cf4f52e79f53043b7c10daedf2755d8fb167

18 years agoAdd performance tests to the test suite. (CVS 3516)
drh [Thu, 23 Nov 2006 09:39:16 +0000 (09:39 +0000)] 
Add performance tests to the test suite. (CVS 3516)

FossilOrigin-Name: 270c745dffad7aa24f8707720b3d68ad7a6b2749

18 years agoFix the ".dump" command in the shell. Ticket #2072. Also ticket #2065. (CVS 3515)
drh [Mon, 20 Nov 2006 16:21:10 +0000 (16:21 +0000)] 
Fix the ".dump" command in the shell.  Ticket #2072.  Also ticket #2065. (CVS 3515)

FossilOrigin-Name: 9fdc249609a4745715a2bf49bbf1376ea243a20a

18 years agoMake sure VACUUM cleans up after itself. Ticket #2071. (CVS 3514)
drh [Sat, 18 Nov 2006 20:20:21 +0000 (20:20 +0000)] 
Make sure VACUUM cleans up after itself.  Ticket #2071. (CVS 3514)

FossilOrigin-Name: 2fdc147d0059dcdfff2da33bd9fedb0bee057aa1

18 years agoStore minimal terms in interior nodes. Whenever there's a break
shess [Sat, 18 Nov 2006 00:12:44 +0000 (00:12 +0000)] 
Store minimal terms in interior nodes.  Whenever there's a break
between leaf nodes, instead of storing the entire leftmost term of the
rightmost child, store only that portion of the leftmost term
necessary to distinguish it from the rightmost term of the leftmost
child. (CVS 3513)

FossilOrigin-Name: f6e0b080dcfaf554b2c05df5e7d4db69d012fba3

18 years agoRefactoring groundwork for coming work on interior nodes. Change
shess [Fri, 17 Nov 2006 21:12:15 +0000 (21:12 +0000)] 
Refactoring groundwork for coming work on interior nodes.  Change
LeafWriter to use empty data buffer (instead of empty term) to detect
an empty block.  Code to validate interior nodes.  Moderate revisions
to leaf-node and doclist validation.  Recast leafWriterStep() in terms
of LeafWriterStepMerge(). (CVS 3512)

FossilOrigin-Name: f30771d5c7ef2b502af95d81a18796b75271ada4

18 years agoDelta-encode docids. This is good for around 22% reduction in index
shess [Mon, 13 Nov 2006 21:09:24 +0000 (21:09 +0000)] 
Delta-encode docids.  This is good for around 22% reduction in index
size with DL_POSITIONS.  It improves performance about 5%-6%. (CVS 3511)

FossilOrigin-Name: 9b6d413d751d962b67cb4e3a208efe61581cb822

18 years agoRequire a minimum fanout for interior nodes. This prevents cases
shess [Mon, 13 Nov 2006 21:00:54 +0000 (21:00 +0000)] 
Require a minimum fanout for interior nodes.  This prevents cases
where excessively large terms keep the tree from finding a single
root.  A downside is that this could result in large interior nodes in
the presence of large terms, which may be prone to fragmentation,
though if the nodes were smaller that would translate into more levels
in the tree, which would also have that problem. (CVS 3510)

FossilOrigin-Name: 64b7e3406134ac4891113b9bb432ad97504268bb

18 years agoAllow backing tables to be missing on dropping fts table. Fixes
shess [Mon, 13 Nov 2006 20:15:27 +0000 (20:15 +0000)] 
Allow backing tables to be missing on dropping fts table.  Fixes
http://www.sqlite.org/cvstrac/tktview?tn=1992,35 . (CVS 3509)

FossilOrigin-Name: 9628a61a6f33b7bec3455086534b76437d2622b4

18 years agoThe uninitialized file descriptor from the unixFile structure is passed to sqlite3Det...
aswift [Sat, 11 Nov 2006 01:31:58 +0000 (01:31 +0000)] 
The uninitialized file descriptor from the unixFile structure is passed to sqlite3DetectLockingStyle in allocateUnixFile rather than the file descriptor passed in.  This was causing the locking detection on NFS file systems to behave somewhat randomly and the result was locks were not respected and data loss could occur. (CVS 3508)

FossilOrigin-Name: b9dd16ef3df0785d8d0eea9a6f2ad580a7289834

18 years agoUpdate the documentation to talk about the new sqlite3_prepare_v2() API. (CVS 3507)
drh [Thu, 9 Nov 2006 15:18:00 +0000 (15:18 +0000)] 
Update the documentation to talk about the new sqlite3_prepare_v2() API. (CVS 3507)

FossilOrigin-Name: d9e14b6121a7b6786cccafd6e1e83474554632aa

18 years agoFirst cut at adding the sqlite3_prepare_v2() API. Test cases added, but
drh [Thu, 9 Nov 2006 00:24:53 +0000 (00:24 +0000)] 
First cut at adding the sqlite3_prepare_v2() API.  Test cases added, but
more testing would be useful.  Still need to update the documentation. (CVS 3506)

FossilOrigin-Name: f1efae9224170c9155afcf17ab3ee769a557b874

18 years agoMake the .exit and .quit commands work again in the shell. Ticket #2056. (CVS 3505)
drh [Wed, 8 Nov 2006 12:25:42 +0000 (12:25 +0000)] 
Make the .exit and .quit commands work again in the shell.  Ticket #2056. (CVS 3505)

FossilOrigin-Name: f39978ef13e986a16ee322ee84ab9bd38ffc5a8b

18 years agoFix a typo in os_win.c. Ticket #2055. (CVS 3504)
drh [Tue, 7 Nov 2006 15:02:07 +0000 (15:02 +0000)] 
Fix a typo in os_win.c.  Ticket #2055. (CVS 3504)

FossilOrigin-Name: d309680ec7a806d181b601e0105aebf1e33bfb81

18 years agoUse the difference between the SQLITE_IOERR_SHORT_READ and SQLITE_IOERR_READ
drh [Mon, 6 Nov 2006 21:20:25 +0000 (21:20 +0000)] 
Use the difference between the SQLITE_IOERR_SHORT_READ and SQLITE_IOERR_READ
returns from sqlite3OsRead() to make decisions about what to do with the
error. (CVS 3503)

FossilOrigin-Name: 6324ea811eec1200cee89e6f377368eaf2fcda77

18 years agoFix a bug in the optimizer that was causing it to miss an OR optimization
drh [Mon, 6 Nov 2006 15:10:05 +0000 (15:10 +0000)] 
Fix a bug in the optimizer that was causing it to miss an OR optimization
opportunity. (CVS 3502)

FossilOrigin-Name: 9bf153b54c6e9ba16914dedd9e2949f32d7550ea

18 years agoModify Makefile.in to install sqlite3ext.h. (CVS 3501)
drh [Wed, 1 Nov 2006 12:20:16 +0000 (12:20 +0000)] 
Modify Makefile.in to install sqlite3ext.h. (CVS 3501)

FossilOrigin-Name: 35c8c4781736d45019d8b823b8517c24622d3313

18 years agoRemove dead code from btree.c. Ticket #2050. (CVS 3500)
drh [Wed, 1 Nov 2006 12:08:40 +0000 (12:08 +0000)] 
Remove dead code from btree.c.  Ticket #2050. (CVS 3500)

FossilOrigin-Name: dbd0125c62457681689db48e1f0a752767855773

18 years agoChange the default temp file prefix to be "sqlite" spelled backwards.
drh [Tue, 31 Oct 2006 21:27:33 +0000 (21:27 +0000)] 
Change the default temp file prefix to be "sqlite" spelled backwards.
Tickets #2049 et al. (CVS 3499)

FossilOrigin-Name: a19ce5c1c4e86d141f7e04af6babeb2ecb75b523

18 years agoChange the default prefix for temporary files so that it no longer
drh [Tue, 31 Oct 2006 21:16:48 +0000 (21:16 +0000)] 
Change the default prefix for temporary files so that it no longer
contains the text "sqlite".  In this way, perhaps we will not get so
many false bug reports such as ticket #2049, #1989, and #1841. (CVS 3498)

FossilOrigin-Name: 7ce48000bb0dafda8a171bfc040dfe2300f84ed2

18 years agoFix a pair of memory leaks. These were turned up by running valgrind
shess [Tue, 31 Oct 2006 18:13:42 +0000 (18:13 +0000)] 
Fix a pair of memory leaks.  These were turned up by running valgrind
memcheck with various 10k doc insert, update, delete, and query tests. (CVS 3497)

FossilOrigin-Name: 3cd9b64b96018f69163ad0be0b5c07dd1be6abc6

18 years agoMake the command-line shell ".dump" command more resilient in the face of
drh [Tue, 31 Oct 2006 18:08:27 +0000 (18:08 +0000)] 
Make the command-line shell ".dump" command more resilient in the face of
database corruption. (CVS 3496)

FossilOrigin-Name: ebd44f0b5e229b990910bb44565de9a5c06cb5bc

18 years agoChanges to support non-ASCII characters in win95 filenames.
drh [Mon, 30 Oct 2006 13:37:22 +0000 (13:37 +0000)] 
Changes to support non-ASCII characters in win95 filenames.
Ticket #2047. (CVS 3495)

FossilOrigin-Name: 9fa3ae584ae4936696fd2f23a64697f0409ef313

18 years agoEnhance the optimizer so that IS NULL can use an available index. (CVS 3494)
drh [Sat, 28 Oct 2006 00:28:09 +0000 (00:28 +0000)] 
Enhance the optimizer so that IS NULL can use an available index. (CVS 3494)

FossilOrigin-Name: 64762a9d582e4655d6bc5989d8e0ad773d659a7d

18 years agoFix the ".dump" command in the command-line shell so that it shows
drh [Fri, 27 Oct 2006 14:21:54 +0000 (14:21 +0000)] 
Fix the ".dump" command in the command-line shell so that it shows
TRIGGERs and VIEWs.  Ticket #2044. (CVS 3493)

FossilOrigin-Name: 58171a41f706dd2fab1da5d83d2176d0103643fb

18 years agoChanges directed toward optimizing IS NULL terms in WHERE clauses. (CVS 3492)
drh [Fri, 27 Oct 2006 14:06:57 +0000 (14:06 +0000)] 
Changes directed toward optimizing IS NULL terms in WHERE clauses. (CVS 3492)

FossilOrigin-Name: 4d336e9ef5f65b95959e7d01cd0357d46e9b1fa5

18 years agoBring CVS output into more commonly accepted practice. Tickets #2030, #1573.
drh [Thu, 26 Oct 2006 18:15:42 +0000 (18:15 +0000)] 
Bring CVS output into more commonly accepted practice.  Tickets #2030, #1573.
Add command-line options -bail and ".bail" commands.  Default behavior is
to continue after encountering an error.  Ticket #2045. (CVS 3491)

FossilOrigin-Name: 517712d6fbc5ba5299942a54852298030f4d3381

18 years agoCommand-line shell enhancements. Bail out when errors are seen in
drh [Thu, 26 Oct 2006 14:25:58 +0000 (14:25 +0000)] 
Command-line shell enhancements.  Bail out when errors are seen in
non-interactive mode.  Override isatty() using -interactive or -batch
command-line options.  Report line number in error messages.
Tickets #2009, #2045. (CVS 3490)

FossilOrigin-Name: 3baa04cfb91039e27f642f6f78ef761b5770cb08

18 years agoEmpty queries should get no results. My recent change
shess [Thu, 26 Oct 2006 00:41:51 +0000 (00:41 +0000)] 
Empty queries should get no results.  My recent change
( http://www.sqlite.org/cvstrac/chngview?cn=3486 ) broke test fts2a-5.3.
This change should make the expected result more obvious. (CVS 3489)

FossilOrigin-Name: cde383eb467de0d752e94a22cd2f890c2dc599cc

18 years agoMake memset() uses less error-prone.
shess [Thu, 26 Oct 2006 00:04:31 +0000 (00:04 +0000)] 
Make memset() uses less error-prone.
http://www.sqlite.org/cvstrac/tktview?tn=2036,35 describes some cases
where we were passing memset() a length which was the sizeof a
pointer, rather than the structure pointed to.  Instead, wrap this
idiom up in CLEAR() and SCRAMBLE() macros. (CVS 3488)

FossilOrigin-Name: 5878add0839f9c5bec77caae2361ec20cb60b48b

18 years agoRemove unreferenced local variable. (CVS 3487)
shess [Wed, 25 Oct 2006 23:22:03 +0000 (23:22 +0000)] 
Remove unreferenced local variable. (CVS 3487)

FossilOrigin-Name: 2d3b22197c7c06488b789cce333b34b6d1ae39aa

18 years agoReplace the DocList and DocListReader structures. The new structures
shess [Wed, 25 Oct 2006 21:00:09 +0000 (21:00 +0000)] 
Replace the DocList and DocListReader structures.  The new structures
distinguish reading from a static buffer from writing to a dynamic
buffer.  This allows n-way doclist merging, and in-place merging of
segment leaf nodes, which together cut segment merge times in half. (CVS 3486)

FossilOrigin-Name: af5bfb986e39248abbfc6fff2e13c6f9e634a751

18 years agoTest to force edge cases in query logic. Basically, exercise code to
shess [Wed, 25 Oct 2006 20:27:39 +0000 (20:27 +0000)] 
Test to force edge cases in query logic.  Basically, exercise code to
handle lack of hits correctly. (CVS 3485)

FossilOrigin-Name: 2cb59033662f25677169e2e63b871fb0a4c10c21

18 years agoDon't store empty segments. When inserting empty strings, the code
shess [Wed, 25 Oct 2006 05:21:55 +0000 (05:21 +0000)] 
Don't store empty segments.  When inserting empty strings, the code
was writing out a segment made up of a single leaf node containing the
\0 header.  LeafReader assumed that leaf nodes always contained at
least one term, so assertions would fail.

While it would be possible to support reading and merging empty
segments, there's no reason to do so.  While this change could have
been done in writeZeroSegment(), I put it in leafWriterFlush() so that
it would work right if segmentMerge() created an empty segment, which
could happen with future changes to how deleted documents are handled. (CVS 3484)

FossilOrigin-Name: fed79beec7da24a26ae94494bdc0c98dd102bc06

18 years agodup fts1 tests and edit for fts2. fts1porter.test omitted because it
shess [Thu, 19 Oct 2006 23:36:25 +0000 (23:36 +0000)] 
dup fts1 tests and edit for fts2.  fts1porter.test omitted because it
depends on being able to poke through to %_term table. (CVS 3482)

FossilOrigin-Name: 2806c3415841b98d52163fa672a747d0a47ffd41

18 years agoAdd tests for delete and update in fts1. (CVS 3481)
shess [Thu, 19 Oct 2006 23:28:35 +0000 (23:28 +0000)] 
Add tests for delete and update in fts1. (CVS 3481)

FossilOrigin-Name: b01c4371d861a087623a34c38cb8db74eca95348

18 years agofts2 support for testing. These are a prelude to adding some test
shess [Thu, 19 Oct 2006 20:27:58 +0000 (20:27 +0000)] 
fts2 support for testing.  These are a prelude to adding some test
scripts. (CVS 3480)

FossilOrigin-Name: 004ad1943f8c5933ee9584a57b2de9d421470d3c

18 years agoWhen converting UTF8 or UTF16 strings, change overlong strings and other
drh [Thu, 19 Oct 2006 01:58:43 +0000 (01:58 +0000)] 
When converting UTF8 or UTF16 strings, change overlong strings and other
illegal codes to 0xFFFD.  Ticket #2029. (CVS 3479)

FossilOrigin-Name: 0c6736df9cb4c3c8f6224e30df939cead9cd5369

18 years agoFix a problems that arise if malloc() fails while compiling SELECT
drh [Wed, 18 Oct 2006 23:26:38 +0000 (23:26 +0000)] 
Fix a problems that arise if malloc() fails while compiling SELECT
statements within a TRIGGER. (CVS 3478)

FossilOrigin-Name: ee4894b49995e4904db1991281563cfbb7b1c16d

18 years agoMake sure the names of all expressions in compound SELECT statements used
drh [Fri, 13 Oct 2006 15:34:16 +0000 (15:34 +0000)] 
Make sure the names of all expressions in compound SELECT statements used
as subqueries are correctly resolved.  Ticket #2018. (CVS 3477)

FossilOrigin-Name: b886eaa334150262ce4d1a1d0470ca4cf623a396

18 years agoAvoid expanding %d contained in the action of a lemon parser rule.
drh [Fri, 13 Oct 2006 12:25:29 +0000 (12:25 +0000)] 
Avoid expanding %d contained in the action of a lemon parser rule.
Ticket #1063.  This is a fix for lemon only.  It does not effect SQLite. (CVS 3476)

FossilOrigin-Name: 81daedcf48372949b9df009ce6121a514ecf6f2e

18 years agoRemoving debugging printf from the porter stemmer code. Ticket #2016. (CVS 3475)
drh [Fri, 13 Oct 2006 11:55:39 +0000 (11:55 +0000)] 
Removing debugging printf from the porter stemmer code.  Ticket #2016. (CVS 3475)

FossilOrigin-Name: 7a08c6272f76d53b13313019b4f9da3c8f02b650

18 years agoConvert fts2 to store data in a way which allows for much faster
shess [Thu, 12 Oct 2006 23:15:24 +0000 (23:15 +0000)] 
Convert fts2 to store data in a way which allows for much faster
updates.  Groups of documents form segments which are encoded in a
btree layered over a table of blocks, with various tricks to make
merges fast.  This performs 20x-25x faster than fts1 when loading the
Enron corpus, and is only slightly slower for queries. (CVS 3474)

FossilOrigin-Name: 85272b2f5394e37916afb1d509e7296810d976f5

18 years agoBug fix: named local variable lockStyle as lockingStyle in SQLITE_ENABLE_LOCKING_STYL...
aswift [Wed, 11 Oct 2006 17:19:46 +0000 (17:19 +0000)] 
Bug fix: named local variable lockStyle as lockingStyle in SQLITE_ENABLE_LOCKING_STYLE block in allocateUnixFile (CVS 3473)

FossilOrigin-Name: aa0b96c3dfa1d8008cd944281c227604b2ee16d1

18 years agoFix leaky symbols. With this change, fts1 and fts2 can both be
shess [Tue, 10 Oct 2006 23:22:40 +0000 (23:22 +0000)] 
Fix leaky symbols.  With this change, fts1 and fts2 can both be
statically linked. (CVS 3472)

FossilOrigin-Name: 5e8bbb85c1493e3ab2d807d24c68294f26838e49

18 years agoCopy fts1/ to fts2/, changing reference from fts1 to fts2. For future
shess [Tue, 10 Oct 2006 17:37:14 +0000 (17:37 +0000)] 
Copy fts1/ to fts2/, changing reference from fts1 to fts2.  For future
reference, the source versions copied were:

README.txt r1.1
fts1.c r1.37
fts1.h r1.2
fts1_hash.c r1.1
fts1_hash.h r1.1
fts1_porter.c r1.1
fts1_tokenizer.h r1.4
fts1_tokenizer1.c r1.6 (CVS 3471)

FossilOrigin-Name: d0d1e7cdcc1dd085f1e359ce35c441699d517b02

18 years agoVACUUM now uses a temporary file in the official TEMP folder instead of
drh [Tue, 10 Oct 2006 13:07:36 +0000 (13:07 +0000)] 
VACUUM now uses a temporary file in the official TEMP folder instead of
a file in the same directory as the original database. (CVS 3470)

FossilOrigin-Name: b743429dd54e2dcae213ec1993e9e916a9ba678d

18 years agoVersion 3.3.8 (CVS 3469)
drh [Mon, 9 Oct 2006 00:38:41 +0000 (00:38 +0000)] 
Version 3.3.8 (CVS 3469)

FossilOrigin-Name: 0658bb9e3f57e6aff4745590821a0590abc815f6

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