]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
14 years agoAdd file test_superlock.c with example code for obtaining an exclusive lock on either... superlock
dan [Fri, 19 Nov 2010 18:20:09 +0000 (18:20 +0000)] 
Add file test_superlock.c with example code for obtaining an exclusive lock on either rollback or wal mode databases.

FossilOrigin-Name: 1a3e7417a2184188fe21c3284e58720da9ca11cf

14 years agoAdd the SQLITE_FCNTL_FILE_POINTER verb to sqlite3_file_control().
drh [Fri, 19 Nov 2010 14:37:49 +0000 (14:37 +0000)] 
Add the SQLITE_FCNTL_FILE_POINTER verb to sqlite3_file_control().

FossilOrigin-Name: 4425b0645d0afebe3172201012d501c6992daa38

14 years agoEnsure tcl is using utf-8 as the system encoding when running capi3e.test.
dan [Thu, 18 Nov 2010 16:58:48 +0000 (16:58 +0000)] 
Ensure tcl is using utf-8 as the system encoding when running capi3e.test.

FossilOrigin-Name: 0a95589f2166f9ce420e647b73e8c797fe8f4833

14 years agoAdded some tests to check that umlaut characters are supported in filenames.
shaneh [Thu, 18 Nov 2010 15:44:59 +0000 (15:44 +0000)] 
Added some tests to check that umlaut characters are supported in filenames.

FossilOrigin-Name: c36f275d70ec8f6dead6adac02885026fdff9666

14 years agoRestrict the scope of the fts3ExprCost() subroutine inside of FTS3.
drh [Thu, 18 Nov 2010 13:52:34 +0000 (13:52 +0000)] 
Restrict the scope of the fts3ExprCost() subroutine inside of FTS3.

FossilOrigin-Name: 76681870a4705179f78976e7fda638a6fea0b9f9

14 years agoFix compiler warnings.
drh [Thu, 18 Nov 2010 13:47:50 +0000 (13:47 +0000)] 
Fix compiler warnings.

FossilOrigin-Name: 6c4f1d5c24522d1f541a2b96b229ad0374f99c19

14 years agoPrevent a possible segfault when the sqlite3_value_numeric_type() interface is
drh [Thu, 18 Nov 2010 12:31:24 +0000 (12:31 +0000)] 
Prevent a possible segfault when the sqlite3_value_numeric_type() interface is
misused to try to determine the numeric type of the NULL value returned
from sqlite3_column_value() with an invalid column number.

FossilOrigin-Name: 501b743bcb60cda0acf63bcf8a4abbf00797b347

14 years agoRestrict the scope of the sqlite3_stmt_readonly() interface to a specific
drh [Wed, 17 Nov 2010 02:02:45 +0000 (02:02 +0000)] 
Restrict the scope of the sqlite3_stmt_readonly() interface to a specific
subset of prepared statement types.

FossilOrigin-Name: 919b06c3a803abb9236606a9b5885f0d8181e730

14 years agoAdding the sqlite3_stmt_readonly() interface.
drh [Tue, 16 Nov 2010 23:10:25 +0000 (23:10 +0000)] 
Adding the sqlite3_stmt_readonly() interface.

FossilOrigin-Name: fd5b2f23dd5111d2f0934dd828bae36b755024c1

14 years agoUse the estimated number of rows computed for subqueries in the cost
drh [Tue, 16 Nov 2010 02:49:15 +0000 (02:49 +0000)] 
Use the estimated number of rows computed for subqueries in the cost
computations for outer queries.

FossilOrigin-Name: 56bbc539246a6dc9f1ae1edb898db7a4f6f6d322

14 years agoChange the EQP output for the min/max optimization from "SCAN" to "SEARCH".
drh [Mon, 15 Nov 2010 21:50:19 +0000 (21:50 +0000)] 
Change the EQP output for the min/max optimization from "SCAN" to "SEARCH".
Other changes in where.c in support of full branch coverage testing.

FossilOrigin-Name: d52b593978aa1776af7aeb957c4f8df0c5cb7e43

14 years agoFix the EQP logic so that it correctly reports OOM errors while formatting
drh [Mon, 15 Nov 2010 16:29:30 +0000 (16:29 +0000)] 
Fix the EQP logic so that it correctly reports OOM errors while formatting
"detail" text.

FossilOrigin-Name: 136c2ac24ee1663bc0904bce1a619ecef3d11c1c

14 years agoChange some test cases to account for the new EXPLAIN QUERY PLAN output.
dan [Mon, 15 Nov 2010 16:12:58 +0000 (16:12 +0000)] 
Change some test cases to account for the new EXPLAIN QUERY PLAN output.

FossilOrigin-Name: 88a854e18fc6bd619fa8d8a911abff50a9b76b9e

14 years agoTest some example code from documentation page eqp.html.
dan [Mon, 15 Nov 2010 14:51:33 +0000 (14:51 +0000)] 
Test some example code from documentation page eqp.html.

FossilOrigin-Name: 547bc2c232cbf7b7ff295287ab8fddb880e517f9

14 years agoMerge the EXPLAIN QUERY PLAN changes from experimental into trunk.
drh [Mon, 15 Nov 2010 14:44:30 +0000 (14:44 +0000)] 
Merge the EXPLAIN QUERY PLAN changes from experimental into trunk.

FossilOrigin-Name: ce27bf38405ce805dad95ec22cbe68ddc7af544a

14 years agoMinor additions to vacuum.test.
dan [Mon, 15 Nov 2010 11:35:50 +0000 (11:35 +0000)] 
Minor additions to vacuum.test.

FossilOrigin-Name: a397ed162246fef32b8c5db36d995bf9a8005a2e

14 years agoChange the EXPLAIN QUERY PLAN output to use "USING INDEX" instead of "BY INDEX",...
dan [Sat, 13 Nov 2010 16:42:27 +0000 (16:42 +0000)] 
Change the EXPLAIN QUERY PLAN output to use "USING INDEX" instead of "BY INDEX", and to use "SEARCH" instead of "SCAN" for loops that are not full-table scans.

FossilOrigin-Name: 6611b76b0296875fb9903b25dfaa783a9c12eaa1

14 years agoAdd EXPLAIN QUERY PLAN test cases to check that the examples in the documentation...
dan [Fri, 12 Nov 2010 17:41:37 +0000 (17:41 +0000)] 
Add EXPLAIN QUERY PLAN test cases to check that the examples in the documentation work.

FossilOrigin-Name: 85fdad850a4da33fd74f5394b921a63ea6b40bdb

14 years agoChange the test_multiplex.c code to use wrapper functions for all sqlite3_vfs methods...
dan [Fri, 12 Nov 2010 15:49:04 +0000 (15:49 +0000)] 
Change the test_multiplex.c code to use wrapper functions for all sqlite3_vfs methods (instead of copying function pointers from the underlying vfs into the multiplex vfs). This is required to work with test_osinst.c.

FossilOrigin-Name: 1244ef9f7ef813d86dca6f8e01681fa55ee9eec8

14 years agoReduce the number of branches that need to be tested in the
drh [Fri, 12 Nov 2010 15:35:59 +0000 (15:35 +0000)] 
Reduce the number of branches that need to be tested in the
explainIndexRange() function of where.c.

FossilOrigin-Name: 6fdae9a635a43e1bf7e4a480de1413064732c6b0

14 years agoUse "COMPOUND" instead of "COMPOSITE" in the EXPLAIN QUERY PLAN output to describe...
dan [Thu, 11 Nov 2010 17:48:51 +0000 (17:48 +0000)] 
Use "COMPOUND" instead of "COMPOSITE" in the EXPLAIN QUERY PLAN output to describe UNION, UNION ALL, EXCEPT and INTERSECT operations.

FossilOrigin-Name: 28643b85d93d27a44b9370e4087efa8fa2af7f8e

14 years agoAdd a row of EXPLAIN QUERY PLAN output for each composite select operation (UNION...
dan [Thu, 11 Nov 2010 16:46:40 +0000 (16:46 +0000)] 
Add a row of EXPLAIN QUERY PLAN output for each composite select operation (UNION, EXCEPT etc.) in the query.

FossilOrigin-Name: 00fb8468b5f2c48a3c91b86803bf306a0331496f

14 years agoFix a bug in the EXPLAIN QUERY PLAN code.
dan [Thu, 11 Nov 2010 11:43:01 +0000 (11:43 +0000)] 
Fix a bug in the EXPLAIN QUERY PLAN code.

FossilOrigin-Name: 7ae068952fba4395b4aa437613a5ed2bd9ddf941

14 years agoModifications to test cases to account for new EXPLAIN QUERY PLAN output.
dan [Thu, 11 Nov 2010 10:36:25 +0000 (10:36 +0000)] 
Modifications to test cases to account for new EXPLAIN QUERY PLAN output.

FossilOrigin-Name: 30904ef8412348464e893e9e1551ef22cad24a3e

14 years agoFix an assert that fired incorrectly when PRAGMA omit_readlock was set.
shaneh [Tue, 9 Nov 2010 20:33:33 +0000 (20:33 +0000)] 
Fix an assert that fired incorrectly when PRAGMA omit_readlock was set.

FossilOrigin-Name: e068758222bcd3f2367e9346f7154780cd395ddd

14 years agoMerge with latest trunk changes.
dan [Tue, 9 Nov 2010 17:49:39 +0000 (17:49 +0000)] 
Merge with latest trunk changes.

FossilOrigin-Name: 4b5c93bc7c43c80962ddae65c58037bf5977b94b

14 years agoAdd missing comments and fix other issues with routines used by new EQP features.
dan [Tue, 9 Nov 2010 17:35:19 +0000 (17:35 +0000)] 
Add missing comments and fix other issues with routines used by new EQP features.

FossilOrigin-Name: 925f35c535396603e13bb12e9a361072e2c2c223

14 years agoFurther enhancements and fixes for explain query plan.
dan [Tue, 9 Nov 2010 14:48:59 +0000 (14:48 +0000)] 
Further enhancements and fixes for explain query plan.

FossilOrigin-Name: 73c93f5a2a32ee8c5d07c9ba33b2641e72626627

14 years agoChanges to the multiplex VFS to optionally (compiler define) allow
shaneh [Mon, 8 Nov 2010 19:16:16 +0000 (19:16 +0000)] 
Changes to the multiplex VFS to optionally (compiler define) allow
the "chunk extension" to overwrite the right-most chars of the filename
instead of simply being appended.

FossilOrigin-Name: 07da0a0beffda324d28fd2768c542ff69d4dbff2

14 years agoExperimental changes to EXPLAIN QUERY PLAN.
dan [Mon, 8 Nov 2010 19:01:16 +0000 (19:01 +0000)] 
Experimental changes to EXPLAIN QUERY PLAN.

FossilOrigin-Name: f4747eb83dacce6430ad6e5eb20155ffad975514

14 years agoFix to xTruncate and more journal mode tests for the multiplex VFS.
shaneh [Fri, 5 Nov 2010 20:50:43 +0000 (20:50 +0000)] 
Fix to xTruncate and more journal mode tests for the multiplex VFS.

FossilOrigin-Name: 65fa1164f035d270db48db6474da888aacfba3bd

14 years agoFix os_unix.c so that it works with the test_multiplex module.
dan [Fri, 5 Nov 2010 18:07:37 +0000 (18:07 +0000)] 
Fix os_unix.c so that it works with the test_multiplex module.

FossilOrigin-Name: 72ba3e368bec34532ec7b5e856a4daa7e1c8cccb

14 years agoMore tests and added support for xDelete in multiplex VFS.
shaneh [Fri, 5 Nov 2010 17:51:25 +0000 (17:51 +0000)] 
More tests and added support for xDelete in multiplex VFS.

FossilOrigin-Name: f2004b44bfba62a7a2296b161a25aefdf55e035a

14 years agoAdditional error checking and tests.
shaneh [Fri, 5 Nov 2010 03:58:58 +0000 (03:58 +0000)] 
Additional error checking and tests.

FossilOrigin-Name: 1ab9a59237bed6d03b55153a67588486f9adc67b

14 years agoAdditional tests and commenting for the multiplex VFS.
shaneh [Fri, 5 Nov 2010 03:43:54 +0000 (03:43 +0000)] 
Additional tests and commenting for the multiplex VFS.

FossilOrigin-Name: 8ed944ba74566c6241d655a39801ad192c61219a

14 years agoUpdate the configure script for version 3.7.4.
drh [Fri, 5 Nov 2010 00:04:57 +0000 (00:04 +0000)] 
Update the configure script for version 3.7.4.

FossilOrigin-Name: 18a73795b427e3d04a8a437410a271a50bbe32e4

14 years agoMerge the multiplexer VFS demo into the trunk.
drh [Fri, 5 Nov 2010 00:01:39 +0000 (00:01 +0000)] 
Merge the multiplexer VFS demo into the trunk.

FossilOrigin-Name: 1635d927cd434052303e0e75f58a08a1e2fefd86

14 years agoFix the Makefile.in so that it works with the multiplexer VFS.
drh [Fri, 5 Nov 2010 00:00:42 +0000 (00:00 +0000)] 
Fix the Makefile.in so that it works with the multiplexer VFS.

FossilOrigin-Name: 54e2efb6679433e48106247ed6ea0d4c029438b8

14 years agoBack out an unintended change to permutations.test.
drh [Thu, 4 Nov 2010 21:14:12 +0000 (21:14 +0000)] 
Back out an unintended change to permutations.test.

FossilOrigin-Name: 57fe35357dba7ebb382486b916004004b35f8c55

14 years agoAnother change for testing on Windows.
shaneh [Thu, 4 Nov 2010 21:13:56 +0000 (21:13 +0000)] 
Another change for testing on Windows.

FossilOrigin-Name: 2625886b1997dc92e7c3669a4f6ccf3560a4dd80

14 years agoFix the main.mk makefile to include test_multiplex.c for testfixture.
drh [Thu, 4 Nov 2010 21:03:47 +0000 (21:03 +0000)] 
Fix the main.mk makefile to include test_multiplex.c for testfixture.

FossilOrigin-Name: c27c51180e88744939ba5af099b6e510968ed2c3

14 years agoFirst attempt at a sharding VFS to split large DBs.
shaneh [Thu, 4 Nov 2010 20:50:27 +0000 (20:50 +0000)] 
First attempt at a sharding VFS to split large DBs.

FossilOrigin-Name: dd4dc8a4269e23ffe0e18438690da6077e17cdad

14 years agoFix size so it's really 32x32.
shaneh [Thu, 4 Nov 2010 20:47:44 +0000 (20:47 +0000)] 
Fix size so it's really 32x32.

FossilOrigin-Name: 62c494f6947e53808404081c8f48cc327ef814e7

14 years agoUpdates for Windows.
shaneh [Thu, 4 Nov 2010 20:46:09 +0000 (20:46 +0000)] 
Updates for Windows.

FossilOrigin-Name: cc9d9a12c3b19320b0ecfa78a6cee3d668004988

14 years agoInclude the print_pager_state() function only if SQLITE_DEBUG is defined.
dan [Thu, 4 Nov 2010 04:47:42 +0000 (04:47 +0000)] 
Include the print_pager_state() function only if SQLITE_DEBUG is defined.

FossilOrigin-Name: 3104f17e5dd0be4f176905dde6df3be50ba28702

14 years agoChanges to allow FTS4 tables to be created without the underlying %_docsize table...
dan [Tue, 2 Nov 2010 17:41:52 +0000 (17:41 +0000)] 
Changes to allow FTS4 tables to be created without the underlying %_docsize table (in order to save space).

FossilOrigin-Name: 31989b18f53d97eddfb39660ef04fbf9463583e0

14 years agoAdd evidence marks for the sqlite3_blob_reopen() interface. Fix compiler
drh [Tue, 2 Nov 2010 15:26:24 +0000 (15:26 +0000)] 
Add evidence marks for the sqlite3_blob_reopen() interface.  Fix compiler
warnings in test1.c.  Fix incorrect evidence marks on e_select.tcl.

FossilOrigin-Name: 3771faa88eda3eb91264ce0982e22f53596abd4b

14 years agoAdd test cases to restore coverage of pager.c and wal.c.
dan [Mon, 1 Nov 2010 18:45:08 +0000 (18:45 +0000)] 
Add test cases to restore coverage of pager.c and wal.c.

FossilOrigin-Name: 6cae552927392d8b735aa118c318d7468097ebeb

14 years agoIf a database file with the WAL flag set is opened in exclusive-locking mode, use...
dan [Mon, 1 Nov 2010 17:38:24 +0000 (17:38 +0000)] 
If a database file with the WAL flag set is opened in exclusive-locking mode, use heap memory to store the wal-index instead of shared-memory.

FossilOrigin-Name: 8dd5c69198619866923c6053b71899c1fb8c4c67

14 years agoChange the version number to 3.7.4.
drh [Mon, 1 Nov 2010 14:34:31 +0000 (14:34 +0000)] 
Change the version number to 3.7.4.

FossilOrigin-Name: db64843b540d23c58fe4de199a7fc40d44900bc4

14 years agoFix a broken test case in exclusive.test.
dan [Mon, 1 Nov 2010 05:54:06 +0000 (05:54 +0000)] 
Fix a broken test case in exclusive.test.

FossilOrigin-Name: 582db83294599ffd7265d3ab2db2765e7e4fbb8d

14 years agoChanges to test scripts so that they work with SQLITE_ENABLE_ICU.
dan [Mon, 1 Nov 2010 05:42:26 +0000 (05:42 +0000)] 
Changes to test scripts so that they work with SQLITE_ENABLE_ICU.

FossilOrigin-Name: 465c819fdb601961eddb7304642c823d78111992

14 years agoFix a test module comment typo reported on the mailing list.
drh [Sun, 31 Oct 2010 22:47:15 +0000 (22:47 +0000)] 
Fix a test module comment typo reported on the mailing list.

FossilOrigin-Name: 87eb1f04d2dd06f34f1385006bf42ae6c8903d46

14 years agoFix a typo in a comment inserted by the amalgamation builder.
drh [Sun, 31 Oct 2010 22:42:27 +0000 (22:42 +0000)] 
Fix a typo in a comment inserted by the amalgamation builder.
Typo reported on the mailing list.

FossilOrigin-Name: 6a6bb6ce733b421b42fa251dbda7fb19f72361ff

14 years agoTest cases and minor changes to make fts3 more robust in the face of a corrupt database.
dan [Sat, 30 Oct 2010 15:21:13 +0000 (15:21 +0000)] 
Test cases and minor changes to make fts3 more robust in the face of a corrupt database.

FossilOrigin-Name: b770290561f5450e4d985ca0050ef5eb01657c80

14 years agoAdd extra test cases and changes to fts3 to avoid crashing on a corrupt database.
dan [Fri, 29 Oct 2010 18:45:10 +0000 (18:45 +0000)] 
Add extra test cases and changes to fts3 to avoid crashing on a corrupt database.

FossilOrigin-Name: 252f0e457d3e33404df87d3e6c44ede61b78319c

14 years agoAdd new "dynamic_triggers" test case to threadtest3.c.
dan [Thu, 28 Oct 2010 15:52:04 +0000 (15:52 +0000)] 
Add new "dynamic_triggers" test case to threadtest3.c.

FossilOrigin-Name: a4691563dd2b3e5e8474467b0c5c46fb26351b77

14 years agoEnforce the MAX_EXPR_DEPTH limit while building expression trees during SQL parsing.
dan [Thu, 28 Oct 2010 11:31:23 +0000 (11:31 +0000)] 
Enforce the MAX_EXPR_DEPTH limit while building expression trees during SQL parsing.

FossilOrigin-Name: 2625eee0cb7f22dba61459b689e33a03ecebb6da

14 years agoAvoid trying to allocate a negative number of bytes of memory in the test wrapper...
dan [Wed, 27 Oct 2010 19:08:26 +0000 (19:08 +0000)] 
Avoid trying to allocate a negative number of bytes of memory in the test wrapper for sqlite3_blob_read().

FossilOrigin-Name: 739b5d9aa4eaa4191ca512d0dbf94a6bdbb12d97

14 years agoMerge experimental fts3/fts4 changes with trunk.
dan [Wed, 27 Oct 2010 18:10:00 +0000 (18:10 +0000)] 
Merge experimental fts3/fts4 changes with trunk.

FossilOrigin-Name: 988164cf485300fb3d189fd1453c23c48e737e24

14 years agoFix a buffer overread in fts3 that can occur if the database is corrupt.
dan [Wed, 27 Oct 2010 16:52:27 +0000 (16:52 +0000)] 
Fix a buffer overread in fts3 that can occur if the database is corrupt.

FossilOrigin-Name: 84194c4195d7144ff7f9cedcdc74fdd908f3bfcd

14 years agoFix a memory leak in the update_hook method of the TCL interface.
drh [Wed, 27 Oct 2010 15:36:21 +0000 (15:36 +0000)] 
Fix a memory leak in the update_hook method of the TCL interface.

FossilOrigin-Name: 1d17e3dc832d789c3665e240dac5019fc4f9c18b

14 years agoIn fts4, store the total number of bytes of for all records in the table in the ...
dan [Wed, 27 Oct 2010 10:55:54 +0000 (10:55 +0000)] 
In fts4, store the total number of bytes of for all records in the table in the %_stat table.

FossilOrigin-Name: 941647d121ac60e2eabc998cfe79b157fb918d7e

14 years agoStructural coverage tests for vdbeblob.c. Including experimental new API sqlite3_blob...
dan [Tue, 26 Oct 2010 18:42:52 +0000 (18:42 +0000)] 
Structural coverage tests for vdbeblob.c. Including experimental new API sqlite3_blob_reopen().

FossilOrigin-Name: 97c6b2616ddcce2337778c6ee88a973cc4fe999d

14 years agoAdd missing header comments for changes related to the experimental sqlite3_blob_reop...
dan [Tue, 26 Oct 2010 11:56:57 +0000 (11:56 +0000)] 
Add missing header comments for changes related to the experimental sqlite3_blob_reopen() API.

FossilOrigin-Name: d1cc5c93f09c9092ec478c04e8d9a8b1f9c0cb04

14 years agoMore coverage tests for fts3.c.
dan [Tue, 26 Oct 2010 07:14:25 +0000 (07:14 +0000)] 
More coverage tests for fts3.c.

FossilOrigin-Name: 7a2f2864002d4e9a487e2779ae05513880ecb4d1

14 years agoFurther improvements to coverage of fts3.c. Fixes for bugs revealed by the same.
dan [Mon, 25 Oct 2010 19:01:25 +0000 (19:01 +0000)] 
Further improvements to coverage of fts3.c. Fixes for bugs revealed by the same.

FossilOrigin-Name: 918b609290127f54326c638d82837d117398eade

14 years agoTest coverage improvements for fts3.c.
dan [Mon, 25 Oct 2010 12:47:43 +0000 (12:47 +0000)] 
Test coverage improvements for fts3.c.

FossilOrigin-Name: a8b1d99899678b72c2a487909eabed321593d55f

14 years agoAdd test for matchinfo when a phrase includes some common tokens.
dan [Mon, 25 Oct 2010 09:01:57 +0000 (09:01 +0000)] 
Add test for matchinfo when a phrase includes some common tokens.

FossilOrigin-Name: 80a54ebc41e4224ab93d92cb390524db1c398155

14 years agoFixes for the matchinfo() function related to FTS4 common token handling.
dan [Sat, 23 Oct 2010 19:07:30 +0000 (19:07 +0000)] 
Fixes for the matchinfo() function related to FTS4 common token handling.

FossilOrigin-Name: deb80eac9112d21835dfd3cee08ed8f09d975bf7

14 years agoAdd new test file fts3defer2.test.
dan [Fri, 22 Oct 2010 19:03:33 +0000 (19:03 +0000)] 
Add new test file fts3defer2.test.

FossilOrigin-Name: 5a4d5bfcaeb78a81713f138b01c0ea45a15c4d6c

14 years agoAdd missing comments and fix compiler warnings in new FTS3/4 code. Other minor fixes...
dan [Fri, 22 Oct 2010 16:44:39 +0000 (16:44 +0000)] 
Add missing comments and fix compiler warnings in new FTS3/4 code. Other minor fixes too.

FossilOrigin-Name: 1c9c70fec3c88319f7b2efe5316694a6ce0ab1a5

14 years agoPrevent an assert from failing when opening a zero-length database file with an appar...
dan [Fri, 22 Oct 2010 13:55:50 +0000 (13:55 +0000)] 
Prevent an assert from failing when opening a zero-length database file with an apparently hot journal with locking_mode=exclusive set.

FossilOrigin-Name: f000ac1e52f56f5fcbc2f8b9cd632656c6dc6002

14 years agoMake sure the estimated row count for ephemeral tables is initialized so that
drh [Thu, 21 Oct 2010 22:58:25 +0000 (22:58 +0000)] 
Make sure the estimated row count for ephemeral tables is initialized so that
automatic indices can be used on those tables.

FossilOrigin-Name: d30f7b2deffdba373a2e0988f433c631c790a7b5

14 years agoMerge trunk changes into experimental branch.
dan [Thu, 21 Oct 2010 15:49:47 +0000 (15:49 +0000)] 
Merge trunk changes into experimental branch.

FossilOrigin-Name: fd1e5cade04961c2f5438a1dfcc2e15eafb4503f

14 years agoFix some segfaults that could occur in obscure circumstances where error messages...
dan [Thu, 21 Oct 2010 15:12:44 +0000 (15:12 +0000)] 
Fix some segfaults that could occur in obscure circumstances where error messages contained characters that could be mistaken for printf format specifiers.

FossilOrigin-Name: f91471e7234db490f97298b1ccb8d6c7fc45b089

14 years agoFix a typo-bug that prevented --disable-amalgamation from working in
drh [Thu, 21 Oct 2010 12:34:29 +0000 (12:34 +0000)] 
Fix a typo-bug that prevented --disable-amalgamation from working in
Makefile.in.  Also fix an overly long line in Makfile.in.

FossilOrigin-Name: 2c3c4ba035e548e97101142692133cf685da16bc

14 years agoAdd new WHERETRACE macros for better diagnostics of the query planner.
drh [Thu, 21 Oct 2010 03:13:58 +0000 (03:13 +0000)] 
Add new WHERETRACE macros for better diagnostics of the query planner.
Added a new test case for the performance regression fixed by the previous
check-in.

FossilOrigin-Name: 1e0db99797be2821716de7138931ebd5cf8fa63b

14 years agoFix the query planner so that it uses the multi-index OR-clause solution if
drh [Thu, 21 Oct 2010 02:05:06 +0000 (02:05 +0000)] 
Fix the query planner so that it uses the multi-index OR-clause solution if
that is the lowest cost estimate.  A prior bug cause the multi-index solution
to be ignored in some circumstances.

FossilOrigin-Name: 28ba6255282b1419b8b165e8461018d257b1f6c2

14 years agoUpdates to FTS4 to improve performance and make more accurate cost estimates for...
dan [Wed, 20 Oct 2010 18:56:04 +0000 (18:56 +0000)] 
Updates to FTS4 to improve performance and make more accurate cost estimates for prefix terms.

FossilOrigin-Name: d0a450ce78e99f55c862f26f9332786660007a0a

14 years agoExperimental changes to fts4 to try to selectively avoid loading very large doclists.
dan [Tue, 19 Oct 2010 14:07:59 +0000 (14:07 +0000)] 
Experimental changes to fts4 to try to selectively avoid loading very large doclists.

FossilOrigin-Name: 5ae0ba447a561e3b6637b52f9b83a9fc683d2572

14 years agoAvoid taking locks on unused database connections when committing a
drh [Thu, 14 Oct 2010 01:17:30 +0000 (01:17 +0000)] 
Avoid taking locks on unused database connections when committing a
read transaction.

FossilOrigin-Name: c0ee614fd988f445c4884a37f494479bdd669185

14 years agoCheck-in [d3c95e3a4e08d0] was incorrect. This is the correct fix for
drh [Thu, 14 Oct 2010 01:16:32 +0000 (01:16 +0000)] 
Check-in [d3c95e3a4e08d0] was incorrect.  This is the correct fix for
sqlit3_bind_blob().  Ticket [860399cc408f2dd5f4]

FossilOrigin-Name: ea8c2f5f8a890dcb422e9e46298ae6ca378c74b7

14 years agoFix the sqlite3_bind_blob() interface (and its kin) so that the destructor
drh [Tue, 12 Oct 2010 02:13:32 +0000 (02:13 +0000)] 
Fix the sqlite3_bind_blob() interface (and its kin) so that the destructor
is invoked if the binding fails.  Ticket [860399cc408f2dd5f41aed44b]
Update the documentation to explain which interfaces invoke their
destructors on failure and which do not.

FossilOrigin-Name: d3c95e3a4e08d08028e9bc7f282074e32b9cf950

14 years agoMake sure the sqlite3_create_collation() interfaces always return an error
drh [Mon, 11 Oct 2010 17:58:21 +0000 (17:58 +0000)] 
Make sure the sqlite3_create_collation() interfaces always return an error
code if they fail.  Ticket [a04e42a3fcacaffa3133436].

FossilOrigin-Name: 6464276ec1c0951a6edc59eb402ca3dd49629a18

14 years agoFurther changes to extension loading to support compile-time options.
drh [Mon, 11 Oct 2010 17:57:41 +0000 (17:57 +0000)] 
Further changes to extension loading to support compile-time options.

FossilOrigin-Name: f818fb6f73ada64eaf8785d9bb2d439b6d755461

14 years agoMake APIs added since version 3.6.0 accessible to loadable extensions.
drh [Mon, 11 Oct 2010 13:12:04 +0000 (13:12 +0000)] 
Make APIs added since version 3.6.0 accessible to loadable extensions.

FossilOrigin-Name: 76c64a35567880b49af076df61c9fee76e934f14

14 years agoAdd tests to e_createtable.test.
dan [Fri, 8 Oct 2010 16:09:43 +0000 (16:09 +0000)] 
Add tests to e_createtable.test.

FossilOrigin-Name: 38bec827f1a0603ad36d1dc1bc83430ae370df38

14 years agoVersion 3.7.3
drh [Fri, 8 Oct 2010 02:34:02 +0000 (02:34 +0000)] 
Version 3.7.3

FossilOrigin-Name: 2677848087c9c090efb17c1893e77d6136a9111d

14 years agoUpdate the CLI test script to expect a version number of 3.7.3.
drh [Thu, 7 Oct 2010 13:29:13 +0000 (13:29 +0000)] 
Update the CLI test script to expect a version number of 3.7.3.

FossilOrigin-Name: e55ada89246d4cc5f476891c70572dc7c1c3643e

14 years agoUpdate the configure script and Makefile so that they work with 3.7.3.
drh [Wed, 6 Oct 2010 20:25:00 +0000 (20:25 +0000)] 
Update the configure script and Makefile so that they work with 3.7.3.

FossilOrigin-Name: 97b63a1168c761d4754d91062b73086f36069517

14 years agoFix long-standing bugs with the handling of LIMIT clausing in
drh [Wed, 6 Oct 2010 18:55:37 +0000 (18:55 +0000)] 
Fix long-standing bugs with the handling of LIMIT clausing in
compound SELECT statements with FROM clause subqueries.
Ticket [38cb5df375078d3f9].

FossilOrigin-Name: b0450120eabfe5455cea1ed04cec587a5540b6b7

14 years agoFix minor test suite problems causing errors on OSX.
dan [Wed, 6 Oct 2010 16:42:52 +0000 (16:42 +0000)] 
Fix minor test suite problems causing errors on OSX.

FossilOrigin-Name: 759c954fee215a64f21fe13491515eebebbc6d01

14 years agoFix a bug in test code that was causing a valgrind error. No changes to production...
dan [Wed, 6 Oct 2010 09:57:33 +0000 (09:57 +0000)] 
Fix a bug in test code that was causing a valgrind error. No changes to production code.

FossilOrigin-Name: f29da7bec68fa2cdd97c75b30f7ab25c96f8d49a

14 years agoDo not embedded #if inside an assert() statement.
drh [Tue, 5 Oct 2010 18:22:47 +0000 (18:22 +0000)] 
Do not embedded #if inside an assert() statement.
Fix for check-in [dca8763872a]

FossilOrigin-Name: d7d4a94fc1209fd32d7c8e20ac83eb169b81ee25

14 years agoHave the pager change to at least WRITER_CACHEMOD state before marking any pages...
dan [Tue, 5 Oct 2010 17:02:47 +0000 (17:02 +0000)] 
Have the pager change to at least WRITER_CACHEMOD state before marking any pages as dirty (instead of immediately after). Otherwise, if an error occurs, the pager may be left in WRITER_LOCKED state with dirty pages in the cache.

FossilOrigin-Name: 471a4efbb7e5e32b144b2e2128337a6af950b8f5

14 years agoIf walLockExclusive() fails for reasons other than SQLITE_BUSY inside of
drh [Tue, 5 Oct 2010 15:41:05 +0000 (15:41 +0000)] 
If walLockExclusive() fails for reasons other than SQLITE_BUSY inside of
walRestartLog() then propagate that error back up to the application.

FossilOrigin-Name: 04dcba6b3379d2168609950ed919c8f743705333

14 years agoAvoid all memory allocation (and hence the possiblitity of OOM failure)
drh [Tue, 5 Oct 2010 12:05:32 +0000 (12:05 +0000)] 
Avoid all memory allocation (and hence the possiblitity of OOM failure)
in sqlite3_value_double() and sqlite3_column_double().

FossilOrigin-Name: 4afdf9705a7c2b67aea31c5d51b9c295867d62d1

14 years agoFix an assert() failing on OSX.
dan [Tue, 5 Oct 2010 11:33:15 +0000 (11:33 +0000)] 
Fix an assert() failing on OSX.

FossilOrigin-Name: dca8763872aa6244cb1a0f519167b360a6372d0d

14 years agoPrevent backcompat.test from mistaking directories for binary executables.
dan [Tue, 5 Oct 2010 08:13:44 +0000 (08:13 +0000)] 
Prevent backcompat.test from mistaking directories for binary executables.

FossilOrigin-Name: 717a1e50f005714b1d5233f80697db14cd8af659