]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
15 years agoWhen SQLITE_OMIT_FLOATING_POINT is defined, make sure the result of a
drh [Wed, 13 Jan 2010 16:25:42 +0000 (16:25 +0000)] 
When SQLITE_OMIT_FLOATING_POINT is defined, make sure the result of a
mathematical operation is always tagged as an integer.

FossilOrigin-Name: e12da0d316fcc34a75554d59fe6d11d9f0e059e2

15 years agoMake the doubleToInt64() routine a pass-through when using OMIT_FLOATING_POINT.
drh [Wed, 13 Jan 2010 15:15:40 +0000 (15:15 +0000)] 
Make the doubleToInt64() routine a pass-through when using OMIT_FLOATING_POINT.

FossilOrigin-Name: 417167182efaa1da74008952137de3e00c23494e

15 years agoAdd tests to backup.test to verify that SQLite behaves as expected when the source...
dan [Wed, 13 Jan 2010 14:08:01 +0000 (14:08 +0000)] 
Add tests to backup.test to verify that SQLite behaves as expected when the source database is modified mid-backup.

FossilOrigin-Name: 985d3bec07430536485056bcd2ae0471791601ed

15 years agoComment out unused code when SQLITE_OMIT_FLOATING_POINT is selected.
drh [Wed, 13 Jan 2010 04:22:20 +0000 (04:22 +0000)] 
Comment out unused code when SQLITE_OMIT_FLOATING_POINT is selected.
Added testcase() macros to boundary conditions in util.c routines.

FossilOrigin-Name: dfc6595d347ea87923a857778b68751103f535d2

15 years agoMake the sqlite3_result_double() interface work the same as
drh [Wed, 13 Jan 2010 00:04:13 +0000 (00:04 +0000)] 
Make the sqlite3_result_double() interface work the same as
sqlite3_result_int64() when SQLITE_OMIT_FLOATING_POINT is defined.

FossilOrigin-Name: 61df5986600b6c9e6d5c42efc0067a27fe54251f

15 years agoMake sure internal queries are well ordered, even when the
drh [Tue, 12 Jan 2010 23:54:14 +0000 (23:54 +0000)] 
Make sure internal queries are well ordered, even when the
reverse_unordered_selects pragma is in effect.
Ticket [eb942c64a157].

FossilOrigin-Name: 0209f17180065d9c213b6c437be1c3c40660665f

15 years agoFix the implementation of CURRENT_TIMESTAME and CURRENT_DATE when
drh [Tue, 12 Jan 2010 19:28:20 +0000 (19:28 +0000)] 
Fix the implementation of CURRENT_TIMESTAME and CURRENT_DATE when
SQLITE_OMIT_DATETIME_FUNCS is defined.

FossilOrigin-Name: eb98265b59db59965b468a7070739921da55efc4

15 years agoUpdate comments in fts3_snippet.c.
dan [Tue, 12 Jan 2010 17:57:30 +0000 (17:57 +0000)] 
Update comments in fts3_snippet.c.

FossilOrigin-Name: dd9689b7c31861484f8d8062478ae73d3c940902

15 years agoUse #ifdefs to disable unused code when SQLITE_OMIT_FLOATING_POINT is defined.
drh [Tue, 12 Jan 2010 17:04:07 +0000 (17:04 +0000)] 
Use #ifdefs to disable unused code when SQLITE_OMIT_FLOATING_POINT is defined.

FossilOrigin-Name: 66bab8561926963a87f15ad559cba36545c9892c

15 years agoAdd a few documentation evidence comments to the built-in function
drh [Mon, 11 Jan 2010 18:26:42 +0000 (18:26 +0000)] 
Add a few documentation evidence comments to the built-in function
implementations.

FossilOrigin-Name: 8bd0f8147dbf75367243b3eecfb705da6e794ab7

15 years agoModify snippets code to run more efficiently. And to avoid a bug relating to snippets...
dan [Mon, 11 Jan 2010 12:00:47 +0000 (12:00 +0000)] 
Modify snippets code to run more efficiently. And to avoid a bug relating to snippets based on full-text queries that contain duplicate terms.

FossilOrigin-Name: a2b1183d9e9898d06d623b342bbb552e85a9b3f6

15 years agoFix handling of an OOM error in the fts3 offsets() function. Fix a couple of snippet...
dan [Sat, 9 Jan 2010 07:33:54 +0000 (07:33 +0000)] 
Fix handling of an OOM error in the fts3 offsets() function. Fix a couple of snippet related test cases in e_fts3.test.

FossilOrigin-Name: 14dc46a74aafe44c0bf7dffd26268395b2c5edb2

15 years agoUpdate comments in fts3.c to more accurately describe the doclist format.
drh [Fri, 8 Jan 2010 23:01:32 +0000 (23:01 +0000)] 
Update comments in fts3.c to more accurately describe the doclist format.

FossilOrigin-Name: e424a0307359fee6875424c10ecad1a10acfba0e

15 years agoAdded option to dump pages.
shaneh [Fri, 8 Jan 2010 04:50:22 +0000 (04:50 +0000)] 
Added option to dump pages.

FossilOrigin-Name: 08c545f03082421166a21274b39e07bb348c17e6

15 years agoMinor tweaks to restore_jrnl.tcl utility script.
shaneh [Thu, 7 Jan 2010 22:02:34 +0000 (22:02 +0000)] 
Minor tweaks to restore_jrnl.tcl utility script.

FossilOrigin-Name: b97aca1200d959a1e7c08dd4e9dbce4724342119

15 years agoSmall tool that attempts to repair a journal header.
shaneh [Thu, 7 Jan 2010 21:49:48 +0000 (21:49 +0000)] 
Small tool that attempts to repair a journal header.

FossilOrigin-Name: 05b18b5f6a38f513ff49656faada725eb44715b7

15 years agoFix the expression comparison logic to take the COLLATE operator into account.
drh [Thu, 7 Jan 2010 15:17:02 +0000 (15:17 +0000)] 
Fix the expression comparison logic to take the COLLATE operator into account.
Ticket [360c6073e197]

FossilOrigin-Name: 44bb1bfe5dedd8054ddd933941ee4112ed8d3b68

15 years agoChanges to test code so that testfixture compiles when OMIT_SHARED_CACHE and OMIT_UTF...
dan [Thu, 7 Jan 2010 11:27:30 +0000 (11:27 +0000)] 
Changes to test code so that testfixture compiles when OMIT_SHARED_CACHE and OMIT_UTF16 are defined.

FossilOrigin-Name: d6ee5ff6c815e3aadd92d331560b529394eae661

15 years agoFixes to problems in FTS3 snippet() function found by th3 tests.
dan [Thu, 7 Jan 2010 10:54:28 +0000 (10:54 +0000)] 
Fixes to problems in FTS3 snippet() function found by th3 tests.

FossilOrigin-Name: 3b5ccd2682176929f4da8a3f39a7e8f58b179f18

15 years agoAnother attempt at fixing the table generator in lemon. Again, this does
drh [Thu, 7 Jan 2010 03:53:03 +0000 (03:53 +0000)] 
Another attempt at fixing the table generator in lemon.  Again, this does
not effect the SQLite grammar.

FossilOrigin-Name: e22c090f35b3a2bac64781d33aa1123ed765dbbf

15 years agoFix a segfault that can occur following an OOM in the FTS3 snippet() function
dan [Wed, 6 Jan 2010 18:36:27 +0000 (18:36 +0000)] 
Fix a segfault that can occur following an OOM in the FTS3 snippet() function

FossilOrigin-Name: c7e5966e3b031672f149d0b6e1f75f9bc40868fa

15 years agoChange the fts3 snippet function to return (hopefully) more relevant snippets in...
dan [Wed, 6 Jan 2010 17:19:21 +0000 (17:19 +0000)] 
Change the fts3 snippet function to return (hopefully) more relevant snippets in less time.

FossilOrigin-Name: 8a208223a74d451f60d9cd707d63fb7d157d1737

15 years agoFix an issue with lemon generating incorrect grammars. This issue does
drh [Wed, 6 Jan 2010 13:07:30 +0000 (13:07 +0000)] 
Fix an issue with lemon generating incorrect grammars.  This issue does
not effect SQLite.

FossilOrigin-Name: 077a6bee2dd4668a5b13c37aa7d4c052350ec782

15 years agoVersion 3.6.22 Release Candidate 2
drh [Tue, 5 Jan 2010 15:30:36 +0000 (15:30 +0000)] 
Version 3.6.22 Release Candidate 2

FossilOrigin-Name: 28d0d7710761114a44a1a3a425a6883c661f06e7

15 years agoRemoved compiler warnings in MSVC.
shaneh [Tue, 5 Jan 2010 14:18:54 +0000 (14:18 +0000)] 
Removed compiler warnings in MSVC.

FossilOrigin-Name: 4ecb4725b76042ac414caf90039d5d0a5f8f7068

15 years agoMake sure new pages are zeroed even when loading a freelist page using the
drh [Tue, 5 Jan 2010 13:40:35 +0000 (13:40 +0000)] 
Make sure new pages are zeroed even when loading a freelist page using the
noContent option.  This prevents a harmless valgrind warning.

FossilOrigin-Name: e47e213369a2652d7eb6bddd58617959e21ca82b

15 years agoFix a problem in the shell tool. In some cases sqlite3_errmsg() was being called...
dan [Tue, 5 Jan 2010 04:59:56 +0000 (04:59 +0000)] 
Fix a problem in the shell tool. In some cases sqlite3_errmsg() was being called before sqlite3_finalize(), causing error messages to be more generic than they should be.

FossilOrigin-Name: e5d07045fabe0803715cfb291aa9e971235cb08a

15 years agoIn the debugging memory allocator, initialize new memory allocations to
drh [Tue, 5 Jan 2010 03:30:15 +0000 (03:30 +0000)] 
In the debugging memory allocator, initialize new memory allocations to
pseudo-randomness in an effort to find problems with memcmp() of structures
that have uninitialized pad bytes.

FossilOrigin-Name: 6462817b2f817a6105449b0ea3e1e336e42571d1

15 years agoFix a case in os_unix.c where two structures that might have uninitialized
drh [Tue, 5 Jan 2010 00:14:49 +0000 (00:14 +0000)] 
Fix a case in os_unix.c where two structures that might have uninitialized
padding bytes are compared using memcmp().

FossilOrigin-Name: e02f25560216c7c96c5e1c7e71a8531650b3a96f

15 years agoVersion 3.6.22 Release Candidate 1
drh [Mon, 4 Jan 2010 13:30:15 +0000 (13:30 +0000)] 
Version 3.6.22 Release Candidate 1

FossilOrigin-Name: 9d8ab0f1f5ea4f05a685ea6541f501532514e8c5

15 years agoAdd experimental implementation of FTS3 functions matchinfo() and snippet() (not...
dan [Sat, 2 Jan 2010 19:02:02 +0000 (19:02 +0000)] 
Add experimental implementation of FTS3 functions matchinfo() and snippet() (not enabled by default).

FossilOrigin-Name: 51f7ee844057086789dcfcdcba7daf45343cae62

15 years agoFix a bug in the new sqlite3_test_control case of the previous check-in.
drh [Sat, 2 Jan 2010 03:46:43 +0000 (03:46 +0000)] 
Fix a bug in the new sqlite3_test_control case of the previous check-in.

FossilOrigin-Name: 3b77701bc854997346e9cc33fe64d00d4b6332bd

15 years agoAdd a new sqlite3_test_control() verb that facilitates testing that all
drh [Sat, 2 Jan 2010 03:21:35 +0000 (03:21 +0000)] 
Add a new sqlite3_test_control() verb that facilitates testing that all
keywords are shown in the documentation.  (Two keywords were found to
be missing while testing the change.)

FossilOrigin-Name: d3cdc4b12be7f1ed2249ad210482200868956d12

15 years agoAdd evidence marks associated with autoincrement.
drh [Fri, 1 Jan 2010 18:57:48 +0000 (18:57 +0000)] 
Add evidence marks associated with autoincrement.

FossilOrigin-Name: 0e918c54893c361fb005295847f89aadcbfae35d

15 years agoAdd comments and an assert() to help clarify the operation of the
drh [Thu, 31 Dec 2009 20:35:08 +0000 (20:35 +0000)] 
Add comments and an assert() to help clarify the operation of the
sqlite3VdbeList() routine used to implement EXPLAIN.

FossilOrigin-Name: e1ccdb93d79a6f7b16f1f59cc3ad78f8d02eae84

15 years agoMinor changes to test scripts to support various SQLITE_OMIT options.
shaneh [Thu, 31 Dec 2009 19:48:29 +0000 (19:48 +0000)] 
Minor changes to test scripts to support various SQLITE_OMIT options.

FossilOrigin-Name: 97f8a886b6314b044a0522a88f569798fdfb3ef9

15 years agoChanges to remove warnings in MSVC build.
shaneh [Thu, 31 Dec 2009 19:06:23 +0000 (19:06 +0000)] 
Changes to remove warnings in MSVC build.

FossilOrigin-Name: 6cf76c2ae25d6e58926637ecd42eed6b300b1a25

15 years agoChange evidence marks to track requirement number changes in the foreign-key
drh [Thu, 31 Dec 2009 15:51:38 +0000 (15:51 +0000)] 
Change evidence marks to track requirement number changes in the foreign-key
documentation.

FossilOrigin-Name: 6b4fcd81e775ff4c5d7bc454378555cf73cf5772

15 years agoChange the version number to 3.6.22.
drh [Wed, 30 Dec 2009 14:19:11 +0000 (14:19 +0000)] 
Change the version number to 3.6.22.

FossilOrigin-Name: 96919a46bbd63cb1794c8eb96b6ad23ecc09ba6b

15 years agoAdjustments to column cache handling in order to restore 100% branch
drh [Wed, 30 Dec 2009 14:12:38 +0000 (14:12 +0000)] 
Adjustments to column cache handling in order to restore 100% branch
test coverage.

FossilOrigin-Name: cc6b959bc1f968e08eea1afd387201d70a0c1e80

15 years agoRemove some code in the column cache that is no longer used. Replace it with
drh [Wed, 30 Dec 2009 01:13:11 +0000 (01:13 +0000)] 
Remove some code in the column cache that is no longer used.  Replace it with
an assert().

FossilOrigin-Name: 1f890efb7863bd743b9f6ef841e0c0c4e67d76e1

15 years agoRemove obsolete comment text from expr.c. No functional code changes.
drh [Wed, 30 Dec 2009 00:12:39 +0000 (00:12 +0000)] 
Remove obsolete comment text from expr.c.  No functional code changes.

FossilOrigin-Name: 84058be0beb799bc989d73a8d4cd8791ab709395

15 years agoWithin the special new.* and old.* tables of a trigger, recognize all the
drh [Tue, 29 Dec 2009 23:39:04 +0000 (23:39 +0000)] 
Within the special new.* and old.* tables of a trigger, recognize all the
original table names even if those names overload the "rowid", "oid", or
"_rowid_" special names.  Ticket [34d2ae1c6d0].

FossilOrigin-Name: 1a0e5fa9f0ff792c678c99d49960601a0cef925b

15 years agoFix a bug triggered by optimizing an FTS3 table when there are no segments on disk...
dan [Tue, 29 Dec 2009 10:32:36 +0000 (10:32 +0000)] 
Fix a bug triggered by optimizing an FTS3 table when there are no segments on disk but pending terms in the hash table.

FossilOrigin-Name: a3b50e4f80ca2dacc1f72435b8c72d55ffdb64e7

15 years agoImmediately purge entries from the column cache when the associated register
drh [Thu, 24 Dec 2009 16:00:28 +0000 (16:00 +0000)] 
Immediately purge entries from the column cache when the associated register
undergoes an affinity change.  Ticket [eb5548a849].  Enhance the
SQLITE_TESTCTRL_OPTIMIZATIONS setting of sqlite3_test_control so that it
can disable the column cache for testing purposes, in an effort to prevent
future problems of a similar nature to this one.

FossilOrigin-Name: ea4e57e1c1b6663ceb12872e31a8503f6c14e3d8

15 years agoMove the query flattener turn-off from a pragma to an sqlite3_test_control()
drh [Tue, 22 Dec 2009 23:52:32 +0000 (23:52 +0000)] 
Move the query flattener turn-off from a pragma to an sqlite3_test_control()
call.  Make provisions (not yet implemented) to turn off other optimizers
using the same call.

FossilOrigin-Name: 4a97c623f4e190134de4b2ca406e311034a74797

15 years agoAdd the experimental FTS3 matchinfo() function. Provides details of the match that...
dan [Tue, 22 Dec 2009 18:56:19 +0000 (18:56 +0000)] 
Add the experimental FTS3 matchinfo() function. Provides details of the match that may be used for result ranking and other purposes.

FossilOrigin-Name: 37a1de02d1d8a34604f1bee896eaf579d4ba149a

15 years agoAdd a pragma to disable the query flattener - for use during testing.
drh [Tue, 22 Dec 2009 00:29:53 +0000 (00:29 +0000)] 
Add a pragma to disable the query flattener - for use during testing.

FossilOrigin-Name: 1d8550e5c88db0ea76aea579c1a5bf99d48fbe43

15 years agoChange many comments in e_fkey.test to include the full text of the corresponding...
dan [Mon, 21 Dec 2009 08:53:18 +0000 (08:53 +0000)] 
Change many comments in e_fkey.test to include the full text of the corresponding statement in foreignkeys.html.

FossilOrigin-Name: 4b489ecb250ea0e80d5bf8806f07259e1107f8ad

15 years agoFix a problem in FTS3 phrase queries. Add tests to check that it really is fixed.
dan [Sun, 20 Dec 2009 15:00:19 +0000 (15:00 +0000)] 
Fix a problem in FTS3 phrase queries. Add tests to check that it really is fixed.

FossilOrigin-Name: 956de051f43dfc2f178a7820981da4bf69927190

15 years agoModified statement machine in sqlite3_complete() to return 0 on empty string.
shaneh [Thu, 17 Dec 2009 22:17:38 +0000 (22:17 +0000)] 
Modified statement machine in sqlite3_complete() to return 0 on empty string.
Added/updated tests for same.  Ticket 356c885b0b.

FossilOrigin-Name: 76eca7295cf7df4bef013af6c8c37251300cd383

15 years agoFixed some TCL test cases to work if SQLITE_OMIT_TRIGGER is defined.
shaneh [Thu, 17 Dec 2009 22:12:51 +0000 (22:12 +0000)] 
Fixed some TCL test cases to work if SQLITE_OMIT_TRIGGER is defined.

FossilOrigin-Name: 85e3c73497d72d09becf728efe81041277ca1730

15 years agoUpdated and added new test cases for CLI.
shaneh [Thu, 17 Dec 2009 21:07:54 +0000 (21:07 +0000)] 
Updated and added new test cases for CLI.

FossilOrigin-Name: 29e3c8da1bd3971215036e5f5cfa5b25c6caa81f

15 years agoIn shell.c (CLI), modified local_getline() to remove '\r' as well as '\n' from end...
shaneh [Thu, 17 Dec 2009 21:07:15 +0000 (21:07 +0000)] 
In shell.c (CLI), modified local_getline() to remove '\r' as well as '\n' from end of lines.

FossilOrigin-Name: b1b48be1cf55f3179eab8824cf5fee8100518845

15 years agoFix typo in comment of prepare.c.
shaneh [Thu, 17 Dec 2009 21:05:42 +0000 (21:05 +0000)] 
Fix typo in comment of prepare.c.

FossilOrigin-Name: 333c3ffe6d4d2293d01958812b9c02b0bf9796a4

15 years agoDisable trace when recursively running commands while vacuuming.
drh [Thu, 17 Dec 2009 03:49:56 +0000 (03:49 +0000)] 
Disable trace when recursively running commands while vacuuming.

FossilOrigin-Name: 69a1348a3c88ffbf401cf72bbec8b4a76557bd11

15 years agoChange the REGEXP function in ICU to require exactly 2 arguments.
drh [Thu, 17 Dec 2009 02:13:39 +0000 (02:13 +0000)] 
Change the REGEXP function in ICU to require exactly 2 arguments.

FossilOrigin-Name: c34cf23efb92d9bbb7cf4245d372e47182771f63

15 years agoRemove unreachable code that was added by the fix to the "(xANDy)OR(z)" bug
drh [Wed, 16 Dec 2009 23:43:55 +0000 (23:43 +0000)] 
Remove unreachable code that was added by the fix to the "(xANDy)OR(z)" bug
in the previous check-in.

FossilOrigin-Name: 04915562a0c2cb377bc7baa0c06c5d9ac376563c

15 years agoEnsure WHERE clause terms involving tables on the right end of a join
drh [Wed, 16 Dec 2009 22:10:49 +0000 (22:10 +0000)] 
Ensure WHERE clause terms involving tables on the right end of a join
are not prematurely evaluated when tables on the left end of the join
make use of the OR-clause optimization.
Fix for ticket [31338dca7e].

FossilOrigin-Name: 2c2de252666662f5459904fc33a9f2956cbff23c

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