shess
545311eeca
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
2006-11-13 20:15:27 +00:00
aswift
448aa6f71a
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
2006-11-11 01:31:58 +00:00
drh
1fe336f69c
Update the documentation to talk about the new sqlite3_prepare_v2() API. (CVS 3507)
...
FossilOrigin-Name: d9e14b6121a7b6786cccafd6e1e83474554632aa
2006-11-09 15:18:00 +00:00
drh
b900aaf34a
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
2006-11-09 00:24:53 +00:00
drh
47ad6840f5
Make the .exit and .quit commands work again in the shell. Ticket #2056 . (CVS 3505)
...
FossilOrigin-Name: f39978ef13e986a16ee322ee84ab9bd38ffc5a8b
2006-11-08 12:25:42 +00:00
drh
f4fa85826f
Fix a typo in os_win.c. Ticket #2055 . (CVS 3504)
...
FossilOrigin-Name: d309680ec7a806d181b601e0105aebf1e33bfb81
2006-11-07 15:02:07 +00:00
drh
551b77365e
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
2006-11-06 21:20:25 +00:00
drh
382765866b
Fix a bug in the optimizer that was causing it to miss an OR optimization
...
opportunity. (CVS 3502)
FossilOrigin-Name: 9bf153b54c6e9ba16914dedd9e2949f32d7550ea
2006-11-06 15:10:05 +00:00
drh
0a9e376c55
Modify Makefile.in to install sqlite3ext.h. (CVS 3501)
...
FossilOrigin-Name: 35c8c4781736d45019d8b823b8517c24622d3313
2006-11-01 12:20:16 +00:00
drh
e804cebacc
Remove dead code from btree.c. Ticket #2050 . (CVS 3500)
...
FossilOrigin-Name: dbd0125c62457681689db48e1f0a752767855773
2006-11-01 12:08:40 +00:00
drh
fd288f3549
Change the default temp file prefix to be "sqlite" spelled backwards.
...
Tickets #2049 et al. (CVS 3499)
FossilOrigin-Name: a19ce5c1c4e86d141f7e04af6babeb2ecb75b523
2006-10-31 21:27:33 +00:00
drh
79de864cd1
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
2006-10-31 21:16:48 +00:00
shess
aedbce0376
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
2006-10-31 18:13:42 +00:00
drh
2e7568f237
Make the command-line shell ".dump" command more resilient in the face of
...
database corruption. (CVS 3496)
FossilOrigin-Name: ebd44f0b5e229b990910bb44565de9a5c06cb5bc
2006-10-31 18:08:27 +00:00
drh
371de5ad8b
Changes to support non-ASCII characters in win95 filenames.
...
Ticket #2047 . (CVS 3495)
FossilOrigin-Name: 9fa3ae584ae4936696fd2f23a64697f0409ef313
2006-10-30 13:37:22 +00:00
drh
50b3996899
Enhance the optimizer so that IS NULL can use an available index. (CVS 3494)
...
FossilOrigin-Name: 64762a9d582e4655d6bc5989d8e0ad773d659a7d
2006-10-28 00:28:09 +00:00
drh
89b5cad3c2
Fix the ".dump" command in the command-line shell so that it shows
...
TRIGGERs and VIEWs. Ticket #2044 . (CVS 3493)
FossilOrigin-Name: 58171a41f706dd2fab1da5d83d2176d0103643fb
2006-10-27 14:21:54 +00:00
drh
0660e26efe
Changes directed toward optimizing IS NULL terms in WHERE clauses. (CVS 3492)
...
FossilOrigin-Name: 4d336e9ef5f65b95959e7d01cd0357d46e9b1fa5
2006-10-27 14:06:57 +00:00
drh
c49f44eff1
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
2006-10-26 18:15:42 +00:00
drh
c28490c056
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
2006-10-26 14:25:58 +00:00
shess
93d2a81401
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
2006-10-26 00:41:51 +00:00
shess
9d5586fc9f
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
2006-10-26 00:04:31 +00:00
shess
627a74c48c
Remove unreferenced local variable. (CVS 3487)
...
FossilOrigin-Name: 2d3b22197c7c06488b789cce333b34b6d1ae39aa
2006-10-25 23:22:03 +00:00
shess
87f1d16bdb
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
2006-10-25 21:00:09 +00:00
shess
d5d63ca6a3
Test to force edge cases in query logic. Basically, exercise code to
...
handle lack of hits correctly. (CVS 3485)
FossilOrigin-Name: 2cb59033662f25677169e2e63b871fb0a4c10c21
2006-10-25 20:27:39 +00:00
shess
9289cba076
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
2006-10-25 05:21:55 +00:00
shess
8e734e3518
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
2006-10-19 23:36:25 +00:00
shess
1c5f160762
Add tests for delete and update in fts1. (CVS 3481)
...
FossilOrigin-Name: b01c4371d861a087623a34c38cb8db74eca95348
2006-10-19 23:28:35 +00:00
shess
a26cf57782
fts2 support for testing. These are a prelude to adding some test
...
scripts. (CVS 3480)
FossilOrigin-Name: 004ad1943f8c5933ee9584a57b2de9d421470d3c
2006-10-19 20:27:58 +00:00
drh
b3fa0e0146
When converting UTF8 or UTF16 strings, change overlong strings and other
...
illegal codes to 0xFFFD. Ticket #2029 . (CVS 3479)
FossilOrigin-Name: 0c6736df9cb4c3c8f6224e30df939cead9cd5369
2006-10-19 01:58:43 +00:00
drh
28f4591466
Fix a problems that arise if malloc() fails while compiling SELECT
...
statements within a TRIGGER. (CVS 3478)
FossilOrigin-Name: ee4894b49995e4904db1991281563cfbb7b1c16d
2006-10-18 23:26:38 +00:00
drh
f6bbe022c7
Make sure the names of all expressions in compound SELECT statements used
...
as subqueries are correctly resolved. Ticket #2018 . (CVS 3477)
FossilOrigin-Name: b886eaa334150262ce4d1a1d0470ca4cf623a396
2006-10-13 15:34:16 +00:00
drh
5048962a0f
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
2006-10-13 12:25:29 +00:00
drh
d9033a6569
Removing debugging printf from the porter stemmer code. Ticket #2016 . (CVS 3475)
...
FossilOrigin-Name: 7a08c6272f76d53b13313019b4f9da3c8f02b650
2006-10-13 11:55:39 +00:00
shess
8a235d4d3b
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
2006-10-12 23:15:24 +00:00
aswift
108bc320f9
Bug fix: named local variable lockStyle as lockingStyle in SQLITE_ENABLE_LOCKING_STYLE block in allocateUnixFile (CVS 3473)
...
FossilOrigin-Name: aa0b96c3dfa1d8008cd944281c227604b2ee16d1
2006-10-11 17:19:46 +00:00
shess
0d6e29b832
Fix leaky symbols. With this change, fts1 and fts2 can both be
...
statically linked. (CVS 3472)
FossilOrigin-Name: 5e8bbb85c1493e3ab2d807d24c68294f26838e49
2006-10-10 23:22:40 +00:00
shess
2670a173ed
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
2006-10-10 17:37:14 +00:00
drh
0058d84432
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
2006-10-10 13:07:36 +00:00
drh
1c50296188
Version 3.3.8 (CVS 3469)
...
FossilOrigin-Name: 0658bb9e3f57e6aff4745590821a0590abc815f6
2006-10-09 00:38:41 +00:00
drh
383736b7c9
Website changes for version 3.3.8. Remove a C++-ism from test8.c. (CVS 3468)
...
FossilOrigin-Name: 465ce5b2fe4462191dd02672838f3f903cd0f976
2006-10-08 18:56:57 +00:00
shess
9f4683cd42
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
2006-10-05 21:48:56 +00:00
drh
bb2abb2c09
Fix another UTF conversion problem on x64. Ticket #2008 . (CVS 3466)
...
FossilOrigin-Name: d16523e555afa1e6e89409f614fd665261fa3865
2006-10-05 11:43:53 +00:00
drh
53c36d5444
The snippet generator adds ellipsis between text from different columns. (CVS 3465)
...
FossilOrigin-Name: 6cf1fb9f801dc1b2865c0d1f9afb1b2076d4246e
2006-10-04 17:35:28 +00:00
drh
a39f4c5c8b
Fix UTF conversions for -O2 on gcc 4.1.1. Ticket #2008 . (CVS 3464)
...
FossilOrigin-Name: 86a08bb7c5da42fbeb5a026287d67912a2ffb7f1
2006-10-04 15:23:21 +00:00
drh
d9910fe529
Tests cases automatically remove many of their temporary files. (CVS 3463)
...
FossilOrigin-Name: eef0ec0d7ae0743d29454567f539e46ad2d5008e
2006-10-04 11:55:49 +00:00
drh
b1b6d4a929
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
2006-10-03 19:37:37 +00:00
drh
0c97940da6
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
2006-10-03 19:12:32 +00:00
drh
fa7d4acf0b
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
2006-10-03 19:05:18 +00:00
drh
bfe6631e7a
Add the OS-X locking style patches to os_unix.c. Disabled by default. (CVS 3459)
...
FossilOrigin-Name: f4103dea5e1a87adccccca715946e174d1cc7450
2006-10-03 17:40:40 +00:00