]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
15 years agoModify some comments in e_fkey.test. No changes to code or tests.
dan [Wed, 16 Dec 2009 14:49:15 +0000 (14:49 +0000)] 
Modify some comments in e_fkey.test. No changes to code or tests.

FossilOrigin-Name: 1ba4f412325fc2ce552ad7feecf93891f7f95059

15 years agoAdd a few simple evidence comments to the tokenizer. No functional changes.
drh [Mon, 14 Dec 2009 17:42:12 +0000 (17:42 +0000)] 
Add a few simple evidence comments to the tokenizer.  No functional changes.

FossilOrigin-Name: 0daec3099d439ce8a8779260b12975f262037bc8

15 years agoHandle an unhandled OOM error code that occurs in fts3 with SQLITE_TEST defined.
dan [Mon, 14 Dec 2009 15:17:27 +0000 (15:17 +0000)] 
Handle an unhandled OOM error code that occurs in fts3 with SQLITE_TEST defined.

FossilOrigin-Name: 82b069998e10b1a9a1d5e6bd85877d7b654c78bd

15 years agoFix a broken assert() in fts3_write.c. Also fix a couple of compiler warnings in...
dan [Mon, 14 Dec 2009 14:49:57 +0000 (14:49 +0000)] 
Fix a broken assert() in fts3_write.c. Also fix a couple of compiler warnings in fts3 code.

FossilOrigin-Name: a730a05b39c45138765df98d34b9db1ab4e72152

15 years agoAdditional corrections to documentation comments. No functional code changes.
drh [Sun, 13 Dec 2009 23:03:01 +0000 (23:03 +0000)] 
Additional corrections to documentation comments.  No functional code changes.

FossilOrigin-Name: b3740b0aa0a7c6932e33e02b37baed5a5960a0bd

15 years agoMinor documentation updates. No functional changes.
drh [Sun, 13 Dec 2009 22:20:08 +0000 (22:20 +0000)] 
Minor documentation updates.  No functional changes.

FossilOrigin-Name: 6ae7e40ba0f710609cf1bc8baa54e7839eb7a2d7

15 years agoFix some documentation comments in sqlite.h.in. No functional code changes.
drh [Sat, 12 Dec 2009 23:57:36 +0000 (23:57 +0000)] 
Fix some documentation comments in sqlite.h.in.  No functional code changes.

FossilOrigin-Name: c16b9bec77c8b9120b728f8431648d95175a83b8

15 years agoTests to cover a few extra branches in fts3.c.
dan [Sat, 12 Dec 2009 19:15:27 +0000 (19:15 +0000)] 
Tests to cover a few extra branches in fts3.c.

FossilOrigin-Name: 06b72b007393dc34d75a8bb16ce0e4507d5f8faa

15 years agoFurther fts3 coverage tests.
dan [Sat, 12 Dec 2009 16:04:32 +0000 (16:04 +0000)] 
Further fts3 coverage tests.

FossilOrigin-Name: d2a8c0f683271f5fb8c9badfb13e4e46fd78db71

15 years agoRename tkt-d82e3f3721.txt to use the (correct) .test suffix.
drh [Sat, 12 Dec 2009 13:58:18 +0000 (13:58 +0000)] 
Rename tkt-d82e3f3721.txt to use the (correct) .test suffix.

FossilOrigin-Name: 68cccd62b71f7b55bf7f2f56dc8507cbe80229ba

15 years agoExtra tests for coverage of fts3 code.
dan [Sat, 12 Dec 2009 13:16:09 +0000 (13:16 +0000)] 
Extra tests for coverage of fts3 code.

FossilOrigin-Name: eee921a99e69a9cd868a89de620bf47c4e26e4b5

15 years agoAdd coverage test cases for fts3.
dan [Sat, 12 Dec 2009 09:51:25 +0000 (09:51 +0000)] 
Add coverage test cases for fts3.

FossilOrigin-Name: 8fcb0478c82507403165719724b62a308cb83b57

15 years agoAdditional changes to C-language interface documentation.
drh [Fri, 11 Dec 2009 23:11:26 +0000 (23:11 +0000)] 
Additional changes to C-language interface documentation.

FossilOrigin-Name: 1342916fd350d06e1c1f3d7d380249f0c9282c7b

15 years agoChange the fts3 test interface used to configure the advisory node size paraemeter.
dan [Fri, 11 Dec 2009 16:03:45 +0000 (16:03 +0000)] 
Change the fts3 test interface used to configure the advisory node size paraemeter.

FossilOrigin-Name: 87fc0ce151c89beb5a43b65c0b1706f340c0c173

15 years agoRationalize some code in fts3 used by optimize operations, queries of the pending...
dan [Fri, 11 Dec 2009 12:29:04 +0000 (12:29 +0000)] 
Rationalize some code in fts3 used by optimize operations, queries of the pending-terms hash table and segment merges. Add the "INSERT INTO tbl(tbl) VALUES('optimize')" syntax.

FossilOrigin-Name: 29476da353df4c67fe744c1c5f466ba5b9c1a54b

15 years agoAdd comment to fts3rnd.test to explain how the test works.
dan [Fri, 11 Dec 2009 07:07:36 +0000 (07:07 +0000)] 
Add comment to fts3rnd.test to explain how the test works.

FossilOrigin-Name: 6b740c7cd57d618623ed028be4213dfef860054a

15 years agoExtensive edits to the comments in the sqlite.h.in source file to identify
drh [Fri, 11 Dec 2009 03:44:18 +0000 (03:44 +0000)] 
Extensive edits to the comments in the sqlite.h.in source file to identify
testable statements of truth about the C-language interface.

FossilOrigin-Name: ea884e1ed8dba1aa0f3cf68fc71923954983f6c6

15 years agoAvoid declaring and freeing test variables if SQLITE_TEST not defined.
shaneh [Thu, 10 Dec 2009 21:11:28 +0000 (21:11 +0000)] 
Avoid declaring and freeing test variables if SQLITE_TEST not defined.

FossilOrigin-Name: c2d22960f652264c48ec41b9ca4047aa142d86f7

15 years agoRemove some unused macros and types from fts3.c.
dan [Thu, 10 Dec 2009 18:38:54 +0000 (18:38 +0000)] 
Remove some unused macros and types from fts3.c.

FossilOrigin-Name: 83a80efe8a6c3d53a7f80b4c5f4e0f40aa0aa52f

15 years agoFix handling of "WHERE col MATCH ? AND docid = ?" clauses in fts3.
dan [Thu, 10 Dec 2009 18:29:04 +0000 (18:29 +0000)] 
Fix handling of "WHERE col MATCH ? AND docid = ?" clauses in fts3.

FossilOrigin-Name: 6cbbae849990d99b7ffe252b642d6be49d0c7235

15 years agoFix an OOM related problem in the snippet() and offsets() functions of fts3.
dan [Thu, 10 Dec 2009 18:20:31 +0000 (18:20 +0000)] 
Fix an OOM related problem in the snippet() and offsets() functions of fts3.

FossilOrigin-Name: 61efff414254f209f1c69728ae2da3b3888b7290

15 years agoChanges to fts3 to avoid flushing data to disk within a SELECT statement.
dan [Thu, 10 Dec 2009 16:04:25 +0000 (16:04 +0000)] 
Changes to fts3 to avoid flushing data to disk within a SELECT statement.

FossilOrigin-Name: 48c0db0eb2d134bb302bb5eca6beb0ec46736257

15 years agoOnly declare the sqlite3_mutex_held() and sqlite3_mutex_notheld() interfaces
drh [Thu, 10 Dec 2009 01:17:29 +0000 (01:17 +0000)] 
Only declare the sqlite3_mutex_held() and sqlite3_mutex_notheld() interfaces
in the header file if NDEBUG is not defined.

FossilOrigin-Name: ee9b1c05a7f12d3d668b804bd11ae0def984b66e

15 years agoRestore the incorrect legacy ON INSERT syntax to the parser as a no-op.
drh [Wed, 9 Dec 2009 21:43:36 +0000 (21:43 +0000)] 
Restore the incorrect legacy ON INSERT syntax to the parser as a no-op.
That way, older databases that actually use this meaningless syntax will
still be readable.

FossilOrigin-Name: 54b955c36ba5c139a63c6031855305b764d3fa6c

15 years agoAdded test cases for the multi-way USING and NATURAL JOIN fix.
drh [Wed, 9 Dec 2009 18:22:25 +0000 (18:22 +0000)] 
Added test cases for the multi-way USING and NATURAL JOIN fix.
Ticket [f74beaabde].

FossilOrigin-Name: 0b34ab25624ae4b6c5fa7775328ff0e637d68bfc

15 years agoThe USING clause and NATURAL JOIN look at all tables to the left when
drh [Wed, 9 Dec 2009 17:36:39 +0000 (17:36 +0000)] 
The USING clause and NATURAL JOIN look at all tables to the left when
searching for a match, not just the one table to the immediate left.
Tables further to the left are preferred.
Fix for ticket [f74beaabde].  Still need to add test cases to complete
the ticket.

FossilOrigin-Name: b558e96f0a3cd2cbbe86e44293246a4730960d52

15 years agoImprove test coverage of fts3.c.
dan [Wed, 9 Dec 2009 14:39:41 +0000 (14:39 +0000)] 
Improve test coverage of fts3.c.

FossilOrigin-Name: 56b6432f8622d53ffd3a4d9a2244114f8531ed71

15 years agoMark fts3ReallocOrFree and fts3InitVtab as static. Ticket [ff44d82f3b].
dan [Wed, 9 Dec 2009 05:30:36 +0000 (05:30 +0000)] 
Mark fts3ReallocOrFree and fts3InitVtab as static. Ticket [ff44d82f3b].

FossilOrigin-Name: a9038306c33c88120d8bef27209d8f0641c85c9b

15 years agoChange to order of two branches in vtab.c in order to a restore 100% test
drh [Tue, 8 Dec 2009 22:16:15 +0000 (22:16 +0000)] 
Change to order of two branches in vtab.c in order to a restore 100% test
coverage.

FossilOrigin-Name: fdfdc777c59a108496c7381c8b267b38485e2c13

15 years agoAdd comments to better explain the two-pass memory allocation approach
drh [Tue, 8 Dec 2009 19:58:19 +0000 (19:58 +0000)] 
Add comments to better explain the two-pass memory allocation approach
for prepared statements.

FossilOrigin-Name: 0e5e18ea12c70559d4c63981c0bb5f9430c5bcbb

15 years agoAdd tests to improve coverage of fts3. Associated bugfixes.
dan [Tue, 8 Dec 2009 19:05:53 +0000 (19:05 +0000)] 
Add tests to improve coverage of fts3. Associated bugfixes.

FossilOrigin-Name: f0eac4175aee6c50ee68acc253f76fbe44574250

15 years agoAvoid pointer aliasing in the allocSpace() routine in vdbeaux.c.
drh [Tue, 8 Dec 2009 15:35:22 +0000 (15:35 +0000)] 
Avoid pointer aliasing in the allocSpace() routine in vdbeaux.c.

FossilOrigin-Name: d6ae27512229d95502c584b17bb2cbdba401f80a

15 years agoBegin updating API documentation to use the new MD5-hash based
drh [Tue, 8 Dec 2009 15:16:54 +0000 (15:16 +0000)] 
Begin updating API documentation to use the new MD5-hash based
automatic requirements numbering.  Comment changes only.  Many similar
changes will follow.

FossilOrigin-Name: 973c5c86eed31dcce54d14e71938f2e255f5f1c7

15 years agoAllow zero-length names for tables, columns, and indices.
drh [Tue, 8 Dec 2009 14:34:08 +0000 (14:34 +0000)] 
Allow zero-length names for tables, columns, and indices.
Fix for ticket [78e04e52eaf].

FossilOrigin-Name: 7b1cfd65a6f7c85ef8f6e4622973457cff9d007c

15 years agoAdd test cases for ticket [abe728bbc311].
drh [Tue, 8 Dec 2009 13:44:21 +0000 (13:44 +0000)] 
Add test cases for ticket [abe728bbc311].

FossilOrigin-Name: 4eb9bf0b93a564844f133691936593245aa792fc

15 years agoAvoid dereferencing a null pointer when doing a multi-database comment where
drh [Tue, 8 Dec 2009 13:36:55 +0000 (13:36 +0000)] 
Avoid dereferencing a null pointer when doing a multi-database comment where
one or more of the databases is an ATTACH-ed TEMP database.
Ticket [abe728bbc311d].

FossilOrigin-Name: f43e37e0a4cc7c15c996f4404dc775636396567d

15 years agoAdd evidence marks for the abs() and soundex() SQL functions.
drh [Tue, 8 Dec 2009 02:06:08 +0000 (02:06 +0000)] 
Add evidence marks for the abs() and soundex() SQL functions.

FossilOrigin-Name: 003f3ed10cdb64b73d6df00e28260dd3491e1f16

15 years agoVersion 3.6.21 release candidate 3.
drh [Mon, 7 Dec 2009 16:39:13 +0000 (16:39 +0000)] 
Version 3.6.21 release candidate 3.

FossilOrigin-Name: 1ed88e9d01e9eda5cbc622e7614277f29bcc551c

15 years agoRemove a redundant line from fts3.
dan [Mon, 7 Dec 2009 16:26:52 +0000 (16:26 +0000)] 
Remove a redundant line from fts3.

FossilOrigin-Name: cd50acf37fd1e3b388f98fb2df7ed03cff454b24

15 years agoAdd extra tests for parsing of whitespace in tokenizer declarations,.
dan [Mon, 7 Dec 2009 16:23:42 +0000 (16:23 +0000)] 
Add extra tests for parsing of whitespace in tokenizer declarations,.

FossilOrigin-Name: 5030ba2e308df6aeef2ed6b2e153f7baf2c81262

15 years agoMove some SQLITE_TEST code down to avoid mixing code and variable declarations.
shaneh [Mon, 7 Dec 2009 16:18:37 +0000 (16:18 +0000)] 
Move some SQLITE_TEST code down to avoid mixing code and variable declarations.
Fix a test for high-order bit handling in sqlite3Fts3InitTokenizer().

FossilOrigin-Name: fad43d290f9489726aaa2e999a17ea17ed78b27b

15 years agoVersion 3.6.21 release candidate 2.
drh [Mon, 7 Dec 2009 14:48:51 +0000 (14:48 +0000)] 
Version 3.6.21 release candidate 2.

FossilOrigin-Name: 78f6baffb0289a173b0bb56bc54bf0f32e6c957d

15 years agoAdd some tests for OR, AND and NOT operations to fts3rnd.test. Add tests to check...
dan [Mon, 7 Dec 2009 12:34:51 +0000 (12:34 +0000)] 
Add some tests for OR, AND and NOT operations to fts3rnd.test. Add tests to check that errors are returned when bad arguments are passed to fts3 functions snippet, offsets and optimize. Minor fix for the same

FossilOrigin-Name: 5811df3f0412598d189d46b58de4deff24573651

15 years agoEnhanced detection of database corruption in btree.c:allocateSpace().
drh [Sun, 6 Dec 2009 03:35:51 +0000 (03:35 +0000)] 
Enhanced detection of database corruption in btree.c:allocateSpace().

FossilOrigin-Name: 5a511f98877f0f7f12d336b7831f3da901856b02

15 years agoFix to check-in [f221f31eff]: Make sure local variable rc is declared even
drh [Sat, 5 Dec 2009 18:34:08 +0000 (18:34 +0000)] 
Fix to check-in [f221f31eff]:  Make sure local variable rc is declared even
when compiled without SQLITE_DEBUG.

FossilOrigin-Name: 7a9a35327c55452e858335933ce11669fc888aeb

15 years agoAdd test case for the obscure corruption detection added by the previous commit.
dan [Sat, 5 Dec 2009 18:16:11 +0000 (18:16 +0000)] 
Add test case for the obscure corruption detection added by the previous commit.

FossilOrigin-Name: f221f31efff83651b9af295b98cfe98bcba3ad54

15 years agoCatch an obscure case of database corruption.
dan [Sat, 5 Dec 2009 18:03:50 +0000 (18:03 +0000)] 
Catch an obscure case of database corruption.

FossilOrigin-Name: 0f9b17a6da42b4da667bbbc00f713effe92a66b5

15 years agoFix another bug in 3-way NEAR queries.
dan [Sat, 5 Dec 2009 14:29:22 +0000 (14:29 +0000)] 
Fix another bug in 3-way NEAR queries.

FossilOrigin-Name: 3bb13a06521b54194c9f3eb44e0dc42bacf016a4

15 years agoFix some problems with FTS3 and 3-way NEAR queries.
dan [Sat, 5 Dec 2009 11:37:19 +0000 (11:37 +0000)] 
Fix some problems with FTS3 and 3-way NEAR queries.

FossilOrigin-Name: 23dc6fb5b28712d1ba18dc7ddb3f2ef3b469d611

15 years agoAdd the SQLITE_4_BYTE_ALIGNED_MALLOC compile-time option which tells some
drh [Fri, 4 Dec 2009 23:10:12 +0000 (23:10 +0000)] 
Add the SQLITE_4_BYTE_ALIGNED_MALLOC compile-time option which tells some
assert() statements that the underlying system only requires 4-byte alignment
of 8-byte data objects like double or int64 and that system malloc() only
guarantees 4-byte alignment of returned pointers.

FossilOrigin-Name: 08faee686eb2fabe0dde51231ee55880e78541e8

15 years agoRemove an assert() in btree.c:releasePage() that is not necessarily true
drh [Fri, 4 Dec 2009 22:51:39 +0000 (22:51 +0000)] 
Remove an assert() in btree.c:releasePage() that is not necessarily true
when the btree is recovering from an OOM that occurs in the middle of
a balance().

FossilOrigin-Name: 04fc9c7661dd24d080f965e7eae9010a2d346e6a

15 years agoFix a problem involving a 3-way NEAR query.
dan [Fri, 4 Dec 2009 19:07:24 +0000 (19:07 +0000)] 
Fix a problem involving a 3-way NEAR query.

FossilOrigin-Name: 507890a9139875b1b594225c432c714f67312c0e

15 years agoIn the OSTRACE debugging macros in os_unix.c, identify the VFS currently
drh [Fri, 4 Dec 2009 14:25:18 +0000 (14:25 +0000)] 
In the OSTRACE debugging macros in os_unix.c, identify the VFS currently
in use.

FossilOrigin-Name: 082b8da005128f47f63e95b6b702bf4517221b2a

15 years agoModify [2ad1461f25] to avoid leaving a prepared statement in "active" state following...
dan [Fri, 4 Dec 2009 14:11:33 +0000 (14:11 +0000)] 
Modify [2ad1461f25] to avoid leaving a prepared statement in "active" state following an OOM error in FTS3.

FossilOrigin-Name: 69c21ee46aeeb624fd8638b17ff7259a3e5f9a46

15 years agoFix an FTS3 problem where an OOM error was not being propagated back
drh [Fri, 4 Dec 2009 13:42:59 +0000 (13:42 +0000)] 
Fix an FTS3 problem where an OOM error was not being propagated back
out to the top-level interface.

FossilOrigin-Name: 2ad1461f255c2499367b706a5ec65b44c1fc1618

15 years agoReset the state of the asynchronous IO module at the end of the tkt-94c04eaadb.test...
dan [Fri, 4 Dec 2009 08:40:59 +0000 (08:40 +0000)] 
Reset the state of the asynchronous IO module at the end of the tkt-94c04eaadb.test script.

FossilOrigin-Name: e8ae7e98977ff2a47237ad64f8a9a800a6d2797c

15 years agoDo not run fts3rnd.test as part of quick.test.
dan [Fri, 4 Dec 2009 05:41:03 +0000 (05:41 +0000)] 
Do not run fts3rnd.test as part of quick.test.

FossilOrigin-Name: 3bb64842acdca2a4e81f1c72130a90c23b0804f1

15 years agoClear a conflicting TCL variable in the fts3rnd.test test script.
drh [Fri, 4 Dec 2009 01:44:42 +0000 (01:44 +0000)] 
Clear a conflicting TCL variable in the fts3rnd.test test script.

FossilOrigin-Name: f9047b2e88a26ed52a54c527cca2a8c1123805d1

15 years agoFix an assert() in btree.c that might have fired on a corrupt database file.
drh [Thu, 3 Dec 2009 21:26:52 +0000 (21:26 +0000)] 
Fix an assert() in btree.c that might have fired on a corrupt database file.

FossilOrigin-Name: 5ab2b3e300b70bc04cdead69275f8f734ea2d885

15 years agoRemove a NEVER() from btree.c that could occur in a very obscure tested
drh [Thu, 3 Dec 2009 19:40:00 +0000 (19:40 +0000)] 
Remove a NEVER() from btree.c that could occur in a very obscure tested
evaluation with an I/O error on fstat().

FossilOrigin-Name: d5861d9ffecca499d79d722b5f742ffe3a5aff44

15 years agoFix an incorrect assert() in fts3.c. Add further fts3 tests.
dan [Thu, 3 Dec 2009 17:36:22 +0000 (17:36 +0000)] 
Fix an incorrect assert() in fts3.c. Add further fts3 tests.

FossilOrigin-Name: 75863c2d55e0801add5b8dcf88d575c5c870af04

15 years agoUpdates to FTS3 to correct compiler warnings under MSVC.
shaneh [Thu, 3 Dec 2009 06:26:46 +0000 (06:26 +0000)] 
Updates to FTS3 to correct compiler warnings under MSVC.

FossilOrigin-Name: 37495b55ffbdc2db4482367ac7d8e32d4d71d58e

15 years agoFix a couple of compiler warnings under MSVC.
shaneh [Thu, 3 Dec 2009 04:40:47 +0000 (04:40 +0000)] 
Fix a couple of compiler warnings under MSVC.

FossilOrigin-Name: e3aa0870fce0666bf8c67ad6ec23e135d03b604a

15 years agoFix cut-and-paste error affecting a couple of attach tests on Windows.
shaneh [Thu, 3 Dec 2009 04:32:06 +0000 (04:32 +0000)] 
Fix cut-and-paste error affecting a couple of attach tests on Windows.

FossilOrigin-Name: 59e2e2c6301e189a1a6601c681bbb0937a5cd14e

15 years agoAdd links from C/C++ interfaces to their equivalent SQL functions. Comment
drh [Thu, 3 Dec 2009 01:01:02 +0000 (01:01 +0000)] 
Add links from C/C++ interfaces to their equivalent SQL functions.  Comment
changes only - no changes to code.

FossilOrigin-Name: acce10f77125b5ab05d10ec10aef68dffa4e826a

15 years agoChange an error message in FTS3 to avoid using an uninitialized variable.
drh [Wed, 2 Dec 2009 20:25:57 +0000 (20:25 +0000)] 
Change an error message in FTS3 to avoid using an uninitialized variable.

FossilOrigin-Name: 620a8a2b38f5f2ad3db304b2bc88360285c174db

15 years agoFix an uninitialized value read in sqlite3async.c.
dan [Wed, 2 Dec 2009 18:16:56 +0000 (18:16 +0000)] 
Fix an uninitialized value read in sqlite3async.c.

FossilOrigin-Name: 1cf2136c39239a6fea6ac2a555f55865dd517d93

15 years agoFix compiler warnings in test_hexio.c.
drh [Wed, 2 Dec 2009 18:03:57 +0000 (18:03 +0000)] 
Fix compiler warnings in test_hexio.c.

FossilOrigin-Name: 6a2e0725c20520aa90abb2bc04037ee7acebb930

15 years agoModify a test in fts3b.test to reflect the fact that the docid field may now be updated.
dan [Wed, 2 Dec 2009 16:09:16 +0000 (16:09 +0000)] 
Modify a test in fts3b.test to reflect the fact that the docid field may now be updated.

FossilOrigin-Name: ef5b7450292e6f89c2b36427a9cd6f8050ad16f4

15 years agoClear the Pager.dbModified flag when unlocking the database. Assert that it is clear...
dan [Wed, 2 Dec 2009 14:44:32 +0000 (14:44 +0000)] 
Clear the Pager.dbModified flag when unlocking the database. Assert that it is clear when locking the database.

FossilOrigin-Name: d17ec16b7c5051c904c09580a856593b2fb85edc

15 years agoMake sure a variable is cleared before use in the where8.test script.
drh [Wed, 2 Dec 2009 02:49:49 +0000 (02:49 +0000)] 
Make sure a variable is cleared before use in the where8.test script.

FossilOrigin-Name: b34365296d65310bb015901d18ed463e73d47cbe

15 years agoAdd testcase() macros to make sure boundary cases in BEFORE UPDATE triggers
drh [Tue, 1 Dec 2009 22:09:25 +0000 (22:09 +0000)] 
Add testcase() macros to make sure boundary cases in BEFORE UPDATE triggers
are well tested.

FossilOrigin-Name: 27175caa28919fe145d369f27f52346b8bbadb1e

15 years agoFix a faulty function prototype in test_intarray.c.
drh [Tue, 1 Dec 2009 18:46:06 +0000 (18:46 +0000)] 
Fix a faulty function prototype in test_intarray.c.

FossilOrigin-Name: 110956a6505a9f17d08142d47003cf3bc4e515d3

15 years agoUse #include "sqlite3.h" instead of <sqlite3.h> in fts3Int.h.
dan [Tue, 1 Dec 2009 17:08:09 +0000 (17:08 +0000)] 
Use #include "sqlite3.h" instead of <sqlite3.h> in fts3Int.h.

FossilOrigin-Name: 7737db490ceba02c29c36fe181b4e7895b40aa75

15 years agoAdd typedefs for i16 and u8 to fts3Int.h when not building via the amalgamation method.
dan [Tue, 1 Dec 2009 17:05:50 +0000 (17:05 +0000)] 
Add typedefs for i16 and u8 to fts3Int.h when not building via the amalgamation method.

FossilOrigin-Name: fa56c1c47296c2f9ba1de9450d421dd06fde5a6a

15 years agoAdd tests for the remaining examples in fts3.in.
dan [Tue, 1 Dec 2009 15:04:33 +0000 (15:04 +0000)] 
Add tests for the remaining examples in fts3.in.

FossilOrigin-Name: e381cd5229b30168769330cb201bae2689e1a549

15 years agoReorder function declarations in mutex_os2.c. This is a blind change - we
drh [Tue, 1 Dec 2009 14:31:18 +0000 (14:31 +0000)] 
Reorder function declarations in mutex_os2.c.  This is a blind change - we
have no capability of testing on OS/2.
Ticket [97214a34d814]

FossilOrigin-Name: c40e4ef094bb9d58f14354602785ccc228f8bc2a

15 years agoChanges to the TCL interface header to allow it to be compiled independently
drh [Tue, 1 Dec 2009 13:57:48 +0000 (13:57 +0000)] 
Changes to the TCL interface header to allow it to be compiled independently
from the amalgamation.

FossilOrigin-Name: 58113932d93926b4aa037a7487105a55f883cd0a

15 years agoOpen a savepoint within the FTS3 optimize() function.
dan [Tue, 1 Dec 2009 13:48:13 +0000 (13:48 +0000)] 
Open a savepoint within the FTS3 optimize() function.

FossilOrigin-Name: 4924fbb244bd1b7103e29e045812cb1c4d2d81c8

15 years agoFix a segfault that can occur when querying an empty FTS3 table. Also restore the...
dan [Tue, 1 Dec 2009 12:00:22 +0000 (12:00 +0000)] 
Fix a segfault that can occur when querying an empty FTS3 table. Also restore the rowid/docid conflict handling to work as it did in version 3.6.20.

FossilOrigin-Name: c022f66b5a65aa54d5ebd55cfe941118a2042280

15 years agoTest coverage improvements in the FTS3 porter stemmer.
drh [Mon, 30 Nov 2009 19:48:16 +0000 (19:48 +0000)] 
Test coverage improvements in the FTS3 porter stemmer.

FossilOrigin-Name: 6d112bfd53998b8f6693d3f2edbcd5ab4cdf5fb1

15 years agoAdd test cases for examples recently added to documentation file fts3.html.
dan [Mon, 30 Nov 2009 08:55:03 +0000 (08:55 +0000)] 
Add test cases for examples recently added to documentation file fts3.html.

FossilOrigin-Name: 498922cc356316a3ec59320529b685728e407746

15 years agoUpdates to snippet() and offsets() functions of FTS3 so that they work
drh [Sat, 28 Nov 2009 21:33:21 +0000 (21:33 +0000)] 
Updates to snippet() and offsets() functions of FTS3 so that they work
sanely following an OOM fault.

FossilOrigin-Name: b939a37a8ce296785a300e79ab9d3d87ad91343f

15 years agoChange FTS3 to detect when the RHS of the MATCH opertor encounters an OOM
drh [Sat, 28 Nov 2009 17:23:47 +0000 (17:23 +0000)] 
Change FTS3 to detect when the RHS of the MATCH opertor encounters an OOM
during string format conversion and report back an SQLITE_NOMEM error.

FossilOrigin-Name: 31eed4f8f95f0799d634eccbd9e09cb58172d250

15 years agoRemove all benign OOM failure opportunities from the FTS3 hash table
drh [Sat, 28 Nov 2009 17:07:42 +0000 (17:07 +0000)] 
Remove all benign OOM failure opportunities from the FTS3 hash table
implementation.  All OOM faults cause SQLITE_NOMEM to be returned.

FossilOrigin-Name: 80754d383a0e890ea3f315dab941b9f166481ddd

15 years agoAdd a test case for creating an FTS3 table with no module arguments or opening/closin...
dan [Sat, 28 Nov 2009 15:35:16 +0000 (15:35 +0000)] 
Add a test case for creating an FTS3 table with no module arguments or opening/closing brackets in the CREATE VIRTUAL TABLE statement.

FossilOrigin-Name: a9cba7ea0a06efa7a63a3069b219cc30fb127e98

15 years agoInitialize a variable (unnecessarily) to avoid a compiler warning.
drh [Sat, 28 Nov 2009 13:46:51 +0000 (13:46 +0000)] 
Initialize a variable (unnecessarily) to avoid a compiler warning.

FossilOrigin-Name: db65fd5913aae4d83d2c2bc243653175be3c3d35

15 years agoFix a bug introduced by the fts3 refactoring (segfault when creating a table with...
dan [Sat, 28 Nov 2009 12:40:32 +0000 (12:40 +0000)] 
Fix a bug introduced by the fts3 refactoring (segfault when creating a table with zero module args). Also a fix to handle an OOM error.

FossilOrigin-Name: eada284bc10cafcab9beb3473bb0c70b3b4de2f9

15 years agoChange the test numbers in e_fkey.test so that they are in order.
dan [Fri, 27 Nov 2009 18:31:40 +0000 (18:31 +0000)] 
Change the test numbers in e_fkey.test so that they are in order.

FossilOrigin-Name: ca73be44cc2dab5edc48292c467adc8362ddf645

15 years agoRemove a C++ism accidentally added to fts3.c.
dan [Fri, 27 Nov 2009 12:14:47 +0000 (12:14 +0000)] 
Remove a C++ism accidentally added to fts3.c.

FossilOrigin-Name: 97d332416069d2fbce323740b276d0e7523eeee5

15 years agoMove [7d30880114] to the trunk. Add optimizations to reduce the number of opcodes...
dan [Fri, 27 Nov 2009 12:12:34 +0000 (12:12 +0000)] 
Move [7d30880114] to the trunk. Add optimizations to reduce the number of opcodes used for BEFORE UPDATE triggers.

FossilOrigin-Name: 1b7c5250ccb63182324bfc3f1ea28f17b6db357a

15 years agoSimplifications to the sqlite3_trace() bound parameter substitution logic.
drh [Thu, 26 Nov 2009 14:01:53 +0000 (14:01 +0000)] 
Simplifications to the sqlite3_trace() bound parameter substitution logic.

FossilOrigin-Name: cb4b928648504ce29d751834e9ee3b5278dfca65

15 years agoMake sure the new fts3Int.h header file is added to the amalgamation.
drh [Wed, 25 Nov 2009 22:42:22 +0000 (22:42 +0000)] 
Make sure the new fts3Int.h header file is added to the amalgamation.

FossilOrigin-Name: f25558f333637b83f98a649acbb8a0d5dbada9ba

15 years agoSupport zeroblob in trace output.
drh [Wed, 25 Nov 2009 21:05:09 +0000 (21:05 +0000)] 
Support zeroblob in trace output.

FossilOrigin-Name: 5086bf8e838c824accda531afeb56a51dd40d795

15 years agoGet trace with parameter insertion working for UTF16 databases.
drh [Wed, 25 Nov 2009 19:35:23 +0000 (19:35 +0000)] 
Get trace with parameter insertion working for UTF16 databases.

FossilOrigin-Name: 01d5451af0bd2743eb74b98f2e77dd2c75f403b6

15 years agoInitial check-in of code that inserts tokenizations of the values
drh [Wed, 25 Nov 2009 18:03:42 +0000 (18:03 +0000)] 
Initial check-in of code that inserts tokenizations of the values
for bound parameters into the output of sqlite3_trace().

FossilOrigin-Name: 545cfb3b63f482036ae152e6ebcce86d373585a8

15 years agoEnhance the %q, %Q, and %w printf conversions so that the precisions
drh [Wed, 25 Nov 2009 16:53:37 +0000 (16:53 +0000)] 
Enhance the %q, %Q, and %w printf conversions so that the precisions
specifies the length of the input.

FossilOrigin-Name: 3ba773132d3baeb87acaee538b8fb0b0f4293673

15 years agoFix a tracing macro in the VDBE in the VColumn opcode.
drh [Tue, 24 Nov 2009 16:26:17 +0000 (16:26 +0000)] 
Fix a tracing macro in the VDBE in the VColumn opcode.

FossilOrigin-Name: cb74b81bb0322efdd66146d7de466c14564b18fd

15 years agoFix SQLITE_SECURE_DELETE so that it overwrites content on the root pages
drh [Tue, 24 Nov 2009 02:37:02 +0000 (02:37 +0000)] 
Fix SQLITE_SECURE_DELETE so that it overwrites content on the root pages
of tables and indices that are dropped using the truncate optimization.

FossilOrigin-Name: 02ef972a56aab1e61786000283193165d3968842

15 years agoMake sure registers computed for the VFilter opcode are marked invalid
drh [Mon, 23 Nov 2009 21:23:45 +0000 (21:23 +0000)] 
Make sure registers computed for the VFilter opcode are marked invalid
after the VFilter opcode finishes.  Ticket [16fbf14cb2].

FossilOrigin-Name: 83dc7d38c2695d1b2a7d4866a4df9be9e41d1abe