]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
15 years agoAdded additional rounding tests.
shaneh [Tue, 16 Feb 2010 22:00:35 +0000 (22:00 +0000)] 
Added additional rounding tests.

FossilOrigin-Name: b8ee76bc1fd355110149bd9135dd31a5724c2ac6

15 years agoChange a C++ style comment in os_unix.c to use normal C style commenting.
dan [Tue, 16 Feb 2010 12:18:47 +0000 (12:18 +0000)] 
Change a C++ style comment in os_unix.c to use normal C style commenting.

FossilOrigin-Name: 7a1933097f2a95bd495c1621fca99e8952a1b25a

15 years agoFix for [e9a9fde1f4]. When opening an existing rtree, determine the node size by...
dan [Tue, 16 Feb 2010 10:59:40 +0000 (10:59 +0000)] 
Fix for [e9a9fde1f4]. When opening an existing rtree, determine the node size by inspecting the root node of the r-tree structure (instead of assuming it is a function of the page-size).

FossilOrigin-Name: ebc9433fddf78ef7b4237686951d8d79c1c98f03

15 years agoFix the ALTER TABLE RENAME command so that it converts FOREIGN KEY constraints
drh [Mon, 15 Feb 2010 18:03:20 +0000 (18:03 +0000)] 
Fix the ALTER TABLE RENAME command so that it converts FOREIGN KEY constraints
in ATTACH-ed and in TEMP tables as well as in the main database.
Ticket [13336e9c3c8c3f].

FossilOrigin-Name: ab197d0aaf18016ac2dd3674f49bea5f1556451c

15 years agoWhen creating a trigger on a main database table when there is a TEMP table
drh [Mon, 15 Feb 2010 16:54:55 +0000 (16:54 +0000)] 
When creating a trigger on a main database table when there is a TEMP table
with the same name, make sure the trigger is bound to the main table.
Ticket [985771e11612].

FossilOrigin-Name: ec914af32675e472694270d46f3ba2214eb2fe90

15 years agoFix a compiler warning in shell.c. Updates to comments in trigger.c.
drh [Mon, 15 Feb 2010 15:47:18 +0000 (15:47 +0000)] 
Fix a compiler warning in shell.c.  Updates to comments in trigger.c.

FossilOrigin-Name: c727601eecd85a26dbd4fc36823d77bec34da3c3

15 years agoFix a typo in the documentation for the OP_OpenPseudo opcode.
drh [Mon, 15 Feb 2010 15:17:05 +0000 (15:17 +0000)] 
Fix a typo in the documentation for the OP_OpenPseudo opcode.

FossilOrigin-Name: 9acfb0694059c80b2efc08a60232d4be91575c32

15 years agoMerged tracing and initialization changes from mutex_unix.c.
shaneh [Sat, 13 Feb 2010 02:31:09 +0000 (02:31 +0000)] 
Merged tracing and initialization changes from mutex_unix.c.

FossilOrigin-Name: 942aa1f6a91655356cc32a8185cb447331d405dc

15 years agoEnhancements to the secure_delete pragma to make it easier to use.
drh [Fri, 12 Feb 2010 19:46:26 +0000 (19:46 +0000)] 
Enhancements to the secure_delete pragma to make it easier to use.

FossilOrigin-Name: 2bb38bb96ff6b9fb91dd1cf214041cf113ac5508

15 years agoAll the secure-delete setting to be changed at run-time using a pragma.
drh [Fri, 12 Feb 2010 18:18:39 +0000 (18:18 +0000)] 
All the secure-delete setting to be changed at run-time using a pragma.
The SQLITE_SECURE_DELETE compile-time option determines the default setting.

FossilOrigin-Name: f72f8a870a0fc98a9f2b564ffafe7946bbce506e

15 years agoFix a segfault in fts3 that may occur if the snippet, offsets or matchinfo functions...
dan [Wed, 10 Feb 2010 05:33:17 +0000 (05:33 +0000)] 
Fix a segfault in fts3 that may occur if the snippet, offsets or matchinfo functions are used in a query that does not contain a MATCH clause.

FossilOrigin-Name: 14ab536a96f81595ab8c3dcd4b72075f1a827c8b

15 years agoMake sure file descriptors are closed before unlinking in VxWorks.
drh [Fri, 5 Feb 2010 18:00:26 +0000 (18:00 +0000)] 
Make sure file descriptors are closed before unlinking in VxWorks.

FossilOrigin-Name: f64b81f13de4875343c752e7183bf61032dc9594

15 years agoAvoid truncating non-in-memory sub-journals when releasing a savepoint for a small...
shaneh [Fri, 5 Feb 2010 16:28:00 +0000 (16:28 +0000)] 
Avoid truncating non-in-memory sub-journals when releasing a savepoint for a small performance improvement.

FossilOrigin-Name: 27dc5b1c52eaa5f99cf44ee31204f62598fbf011

15 years agoRemove the use of 64-bit math in the offset computations of
drh [Fri, 5 Feb 2010 14:12:53 +0000 (14:12 +0000)] 
Remove the use of 64-bit math in the offset computations of
the OP_Column opcode for a small performance improvement.

FossilOrigin-Name: 61a2c8d4d64c28119e9f06eb42f9c0437ba7a7bd

15 years agoFix a performance glitch that appears for large transactions.
drh [Thu, 4 Feb 2010 17:38:31 +0000 (17:38 +0000)] 
Fix a performance glitch that appears for large transactions.

FossilOrigin-Name: 26cb1df73504d5d883cf0967e57b46aa062d0b00

15 years agoAdd a new full-text search variant that tracks the total number of documents
drh [Wed, 3 Feb 2010 19:55:13 +0000 (19:55 +0000)] 
Add a new full-text search variant that tracks the total number of documents
and document sizes, to make ranking search results easier.  Currently
called FTS4.

FossilOrigin-Name: 1b6e6094c88214e02c9e3638932997ac20bfe413

15 years agoFix a C++-ism that snuck into sqlite3_finalize().
drh [Sun, 31 Jan 2010 15:14:37 +0000 (15:14 +0000)] 
Fix a C++-ism that snuck into sqlite3_finalize().

FossilOrigin-Name: fb96f2a2c63a061a90733448c4af14384893d409

15 years agoIf an OOM occurs while setting the page size for the TEMP database, be sure
drh [Sun, 31 Jan 2010 14:18:21 +0000 (14:18 +0000)] 
If an OOM occurs while setting the page size for the TEMP database, be sure
that error gets reported back out to the interface layer.

FossilOrigin-Name: 6487e70a1e18bb01ee692e250b41c8652e34a87c

15 years agoTweaks for consistency to the SEE and CEROD API declarations in sqlite3.h.
shaneh [Thu, 28 Jan 2010 19:56:27 +0000 (19:56 +0000)] 
Tweaks for consistency to the SEE and CEROD API declarations in sqlite3.h.

FossilOrigin-Name: 299f74567b1b97a1fdc0a620ef382cfd24941809

15 years agoMake the TEMP file tables use the page size set for the main database.
drh [Tue, 26 Jan 2010 01:25:26 +0000 (01:25 +0000)] 
Make the TEMP file tables use the page size set for the main database.
Ticket [b80eeab588c4].
Also copy over the changes from apple-osx check-in [7c3bede3f2].

FossilOrigin-Name: 5dcfb0c9e420d27e54a299b3991b98776651a507

15 years agoFix two similar problems in fts3 that meant that an OOM error could cause a memory...
dan [Fri, 22 Jan 2010 15:48:18 +0000 (15:48 +0000)] 
Fix two similar problems in fts3 that meant that an OOM error could cause a memory leak.

FossilOrigin-Name: 701ef64b3dbf45e52043e79e528002bd4b7a21e2

15 years agoFix a segfault that can occur when the LHS of a LIKE operator has an
drh [Thu, 21 Jan 2010 23:11:24 +0000 (23:11 +0000)] 
Fix a segfault that can occur when the LHS of a LIKE operator has an
undefined collating sequence.  Ticket [1258875e07553].

FossilOrigin-Name: a82e6b4585b9ddba581204976cd5ea8704339185

15 years agoRedesign the string to numeric value caster so that it is more likely to
drh [Thu, 21 Jan 2010 01:53:07 +0000 (01:53 +0000)] 
Redesign the string to numeric value caster so that it is more likely to
work on unusual floating point hardware.

FossilOrigin-Name: 8bb1104c6f02c88eb09ed345890be71dee099485

15 years agoFix a problem with handling OOM errors in fts3.
dan [Wed, 20 Jan 2010 14:25:37 +0000 (14:25 +0000)] 
Fix a problem with handling OOM errors in fts3.

FossilOrigin-Name: f9c54e95ecf1c36c4750bb151e91d81c1d1bd596

15 years agoMove the Apple OS-X VFS changes into the trunk.
drh [Wed, 20 Jan 2010 13:07:21 +0000 (13:07 +0000)] 
Move the Apple OS-X VFS changes into the trunk.

FossilOrigin-Name: 571594bfbe89d9949bdb8b07712e96d0a3467c6e

15 years agoManually copy over the rebustness fixes from the apple-osx branch.
drh [Wed, 20 Jan 2010 01:20:56 +0000 (01:20 +0000)] 
Manually copy over the rebustness fixes from the apple-osx branch.

FossilOrigin-Name: 095c74ea6260096f6a600fdc0edccf7ea24aace4

15 years agoFix a problem with the CLI where not all SQL commands were being echoed.
shaneh [Mon, 18 Jan 2010 18:17:10 +0000 (18:17 +0000)] 
Fix a problem with the CLI where not all SQL commands were being echoed.
Added tests of same to tools/shell2.test.  Ticket [eb620916be].

FossilOrigin-Name: 7080ae3bc3828168483ac23d5b8976d67ea5089e

15 years agoFix test numbering in fts3snippet.test.
dan [Fri, 15 Jan 2010 17:33:49 +0000 (17:33 +0000)] 
Fix test numbering in fts3snippet.test.

FossilOrigin-Name: 34f6854685f00158bc536dd53ac5bc20e19fe071

15 years agoAdd coverage tests for fts3_snippet.c. Also fixes related to the same.
dan [Fri, 15 Jan 2010 17:25:52 +0000 (17:25 +0000)] 
Add coverage tests for fts3_snippet.c. Also fixes related to the same.

FossilOrigin-Name: 5e9d8ccae9731f380527463ef87ddcd216b4b721

15 years agoAdd a test to e_fts3.test for the matchinfo example in fts3.html.
dan [Thu, 14 Jan 2010 11:45:03 +0000 (11:45 +0000)] 
Add a test to e_fts3.test for the matchinfo example in fts3.html.

FossilOrigin-Name: e5336edc55313afac11ea085257cb6e75a0287a7

15 years agoFix some matchinfo related test problems in fts3rnd.test.
dan [Thu, 14 Jan 2010 11:17:05 +0000 (11:17 +0000)] 
Fix some matchinfo related test problems in fts3rnd.test.

FossilOrigin-Name: da7abe05887d1ad52552d8ce3a153a0a76f96c5a

15 years agoComment cleanup in sqliteInt.h.
drh [Thu, 14 Jan 2010 00:39:26 +0000 (00:39 +0000)] 
Comment cleanup in sqliteInt.h.

FossilOrigin-Name: 67c3aea563e019083f0ed87b57982a0379637d4f

15 years agoMake the sqlite3IsNaN() function a macro that evaluates to FALSE when
drh [Wed, 13 Jan 2010 17:39:53 +0000 (17:39 +0000)] 
Make the sqlite3IsNaN() function a macro that evaluates to FALSE when
compiled with SQLITE_OMIT_FLOATING_POINT.

FossilOrigin-Name: 56f232d562bc239103a5afd2e64c4b926a20de08

15 years agoWhen SQLITE_OMIT_FLOATING_POINT is defined, the floating-point formats in
drh [Wed, 13 Jan 2010 16:43:27 +0000 (16:43 +0000)] 
When SQLITE_OMIT_FLOATING_POINT is defined, the floating-point formats in
the sqlite3_*printf() functions should pull an int64 off of the parameter
list and ignore it.

FossilOrigin-Name: 3fd6f9ad06b786116ca18c1e812363d30cd3060e

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