]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
14 years agoReactivate the analyze5.test script. stat2-enhancement
drh [Fri, 28 Jan 2011 03:13:58 +0000 (03:13 +0000)] 
Reactivate the analyze5.test script.

FossilOrigin-Name: a2a9f6401c927f6259cda3ba35219cabef24e84d

14 years agoChange the weighting of binary searches on tables to 1/10th the cost of a
drh [Fri, 28 Jan 2011 01:57:41 +0000 (01:57 +0000)] 
Change the weighting of binary searches on tables to 1/10th the cost of a
search on an index.  Change the assumed reduction in search space from a
indexed range constraint from 1/3rd to 1/4th.  Do not let the estimated
number of rows drop below 1.

FossilOrigin-Name: 4847c6cb71423248b186ab7842b97c83e2f5fefd

14 years agoRestructuring and generalizing analyze5.test. The whole script is
drh [Mon, 24 Jan 2011 17:46:35 +0000 (17:46 +0000)] 
Restructuring and generalizing analyze5.test.   The whole script is
currently disabled and will need to be reenabled prior to merging with trunk.

FossilOrigin-Name: 31fcc7067bd76da4bf19232811b90cf8b76eed74

14 years agoChange the cost estimator in the query planner to take into account the
drh [Mon, 24 Jan 2011 15:11:23 +0000 (15:11 +0000)] 
Change the cost estimator in the query planner to take into account the
logN rowid lookup cost when going from an index to a table.

FossilOrigin-Name: b442525b0ba642bb8d57b87b7b9e373b6046454a

14 years agoAdd the ability to use indices for constraints of the form "x IS NOT NULL"
drh [Sat, 22 Jan 2011 00:10:45 +0000 (00:10 +0000)] 
Add the ability to use indices for constraints of the form "x IS NOT NULL"
when sqlite_stat2 is available and most entries for column x are NULL.

FossilOrigin-Name: 5d5bddd290e71a7b03bcc23ff29881c23233cbff

14 years agoAdjustments to the result row estimator for the IN operator so that it gives
drh [Fri, 21 Jan 2011 18:18:13 +0000 (18:18 +0000)] 
Adjustments to the result row estimator for the IN operator so that it gives
the same estimates as the equivalent OR operator.  Test cases for the same.

FossilOrigin-Name: c82cb9c028b3ba5463ae50c30196dbf157a7a305

14 years agoMake use of histogram data to make better estimates for the number of rows
drh [Fri, 21 Jan 2011 16:27:18 +0000 (16:27 +0000)] 
Make use of histogram data to make better estimates for the number of rows
that will be returned from "x IN (v1,v2,v3,...)" constraints.

FossilOrigin-Name: fd3977a27ae68e694df12a4713e55515c1e87c5d

14 years agoAdd the ability to use indices when a range contraint is bounded on
drh [Fri, 21 Jan 2011 14:37:04 +0000 (14:37 +0000)] 
Add the ability to use indices when a range contraint is bounded on
the lower end by NULL.

FossilOrigin-Name: f73a167b434fadcbbd15e3891c4b7f4f87f6363c

14 years agoUpdate ANALYZE test cases to check out the use of histograms for equality
drh [Thu, 20 Jan 2011 20:36:13 +0000 (20:36 +0000)] 
Update ANALYZE test cases to check out the use of histograms for equality
constraints.

FossilOrigin-Name: c7b59afaf0c0bf85dbaf0a122cc8d65fca93680f

14 years agoUse histogram data to improve the row-count estimates on equality constraints.
drh [Thu, 20 Jan 2011 16:52:09 +0000 (16:52 +0000)] 
Use histogram data to improve the row-count estimates on equality constraints.

FossilOrigin-Name: 6bfc5c69eb22938972bbf4e60179952dc215f770

14 years agoThe first of a planned series of enhancements to the query planner that
drh [Thu, 20 Jan 2011 02:56:37 +0000 (02:56 +0000)] 
The first of a planned series of enhancements to the query planner that
enable it to make better use of sqlite_stat2 histograms when the table
has many repeated values.

FossilOrigin-Name: 2cd374cd23fa2fd38f49090d6eeb9b1e521d51d5

14 years agoComment improvements in pcache1.c. No changes to code.
drh [Wed, 19 Jan 2011 21:58:56 +0000 (21:58 +0000)] 
Comment improvements in pcache1.c.  No changes to code.

FossilOrigin-Name: 9660a0a22547656cc3765b673d0cee9e1dd829ef

14 years agoDo not use mutexes in the pcache implementation unless
drh [Tue, 18 Jan 2011 17:03:26 +0000 (17:03 +0000)] 
Do not use mutexes in the pcache implementation unless
SQLITE_ENABLE_MEMORY_MANAGMENT is defined.  This is a performance enhancement.
A side effect is that pcaches will not steal pages from one another unless
ENABLE_MEMORY_MANAGEMENT is set, or unless SQLITE_THREADSAFE=0.

FossilOrigin-Name: e5ca59e63b18ac45a8c82ca39dc8cce1c4ce903c

14 years agoGet all test cases working with the mutex-free-pcache implementation. mutex-free-pcache
drh [Tue, 18 Jan 2011 16:13:27 +0000 (16:13 +0000)] 
Get all test cases working with the mutex-free-pcache implementation.

FossilOrigin-Name: 2dc98d29995bef51108e99aa8f7a56427cf9e1d7

14 years agoDo not use SQLITE_MUTEX_STATIC_MEM2 since it has been reused as STATIC_OPEN.
drh [Tue, 18 Jan 2011 15:17:57 +0000 (15:17 +0000)] 
Do not use SQLITE_MUTEX_STATIC_MEM2 since it has been reused as STATIC_OPEN.
Instead, create a new static mutex STATIC_PMEM which is an alias for the
unused STATIC_LRU2.

FossilOrigin-Name: f1cf02efcb3a871fef49f8b5f41bcf07622a6d29

14 years agoHere is a completely new implementation of the mutex-free-pcache. This
drh [Mon, 17 Jan 2011 21:32:24 +0000 (21:32 +0000)] 
Here is a completely new implementation of the mutex-free-pcache.  This
one uses a common code base and automatically selects whether or not to
use mutexes depending on compile-time and start-time options.

FossilOrigin-Name: d094a1bfb7569a52b637fe9ba5d3fa6ce5ea6d94

14 years agoFix a typo in the documentation for sqlite3_stmt_readonly().
drh [Mon, 17 Jan 2011 18:30:10 +0000 (18:30 +0000)] 
Fix a typo in the documentation for sqlite3_stmt_readonly().

FossilOrigin-Name: 56417a3386fc84dd36bf1488e88149b1ac6a0d02

14 years agoAdd the SQLITE_OMIT_AUTORESET compile-time option which if enabled causes
drh [Mon, 17 Jan 2011 17:42:37 +0000 (17:42 +0000)] 
Add the SQLITE_OMIT_AUTORESET compile-time option which if enabled causes
the sqlite3_step() routine to return SQLITE_MISUSE if it is called after
it has previously returned anything other than SQLITE_ROW, SQLITE_BUSY, or
SQLITE_LOCKED.

FossilOrigin-Name: 053ce76deb356d31358454507ba94947142e20ca

14 years agoAdd back an ALWAYS() to regain full test coverage.
drh [Mon, 17 Jan 2011 02:24:12 +0000 (02:24 +0000)] 
Add back an ALWAYS() to regain full test coverage.

FossilOrigin-Name: b93f6f3e679c7710f42580a8dd9ce43136376c1d

14 years agoOn a backup from a smaller to a larger page size, do not begin committing
drh [Sun, 16 Jan 2011 22:37:09 +0000 (22:37 +0000)] 
On a backup from a smaller to a larger page size, do not begin committing
the transaction until the source pages after the pending byte have been
copied.

FossilOrigin-Name: 612e2599d3e1a17c268402fce018a53dee6dffe1

14 years agoMake sure the change-counter and SQLite-version fields of the header are
drh [Sun, 16 Jan 2011 00:56:19 +0000 (00:56 +0000)] 
Make sure the change-counter and SQLite-version fields of the header are
set correctly even when doing a VACUUM with locking_mode=EXCLUSIVE.
Ticket [5d863f876ee9561b].

FossilOrigin-Name: 04fa1e16905183b948ee6456675799a873d5f97d

14 years agoMake sure the change counter and SQLite version numbers in the header are
drh [Sat, 15 Jan 2011 21:42:23 +0000 (21:42 +0000)] 
Make sure the change counter and SQLite version numbers in the header are
set correctly, even when running in WAL mode and when VACUUMing in WAL mode.
Ticket [5d863f876ee9561b9].

FossilOrigin-Name: 0be92a75769dbafbc08c3b229089aaac03a9a907

14 years agoFix the change-counter increment for WAL pages so that it works even when bug-5d863f87
drh [Sat, 15 Jan 2011 18:11:12 +0000 (18:11 +0000)] 
Fix the change-counter increment for WAL pages so that it works even when
invoked from xStress.  Ticket [5d863f876ee9561b95e2].

FossilOrigin-Name: 228e7c34c64114670fe015747d47fdaa3b7e1270

14 years agoIncrement the change counter and update the SQLite version number whenever
drh [Sat, 15 Jan 2011 17:12:59 +0000 (17:12 +0000)] 
Increment the change counter and update the SQLite version number whenever
page 1 is added to the WAL.  Ticket [5d863f876ee9561b9]

FossilOrigin-Name: c1e0d09cd3f5feae123468a35f147021d839641c

14 years agoAdd a test case demonstrating the problem described by ticket [5d863f876e].
dan [Sat, 15 Jan 2011 16:52:10 +0000 (16:52 +0000)] 
Add a test case demonstrating the problem described by ticket [5d863f876e].

FossilOrigin-Name: af54963f0fa0afafbc2d0847f30543c041b182ec

14 years agoRerun autoconf to bring the configure script up-to-date.
drh [Fri, 14 Jan 2011 16:43:29 +0000 (16:43 +0000)] 
Rerun autoconf to bring the configure script up-to-date.

FossilOrigin-Name: 142174640d60e834cae27ccaa78b02ecef8bcfe5

14 years agoFix comments, including some documentation comments, in the page cache
drh [Fri, 14 Jan 2011 15:17:55 +0000 (15:17 +0000)] 
Fix comments, including some documentation comments, in the page cache
logic.  No code changes.

FossilOrigin-Name: c80e9c1a0dc0e501b209874e147e1cb1348cb4a4

14 years agoFix a bug in test code (test_vfs.c).
dan [Fri, 14 Jan 2011 11:51:28 +0000 (11:51 +0000)] 
Fix a bug in test code (test_vfs.c).

FossilOrigin-Name: 772a3845f8ef5cd3131992c45f6ce607977820f3

14 years agoFix a typo on the sqlite3_open_v2() documentation.
drh [Thu, 13 Jan 2011 16:10:58 +0000 (16:10 +0000)] 
Fix a typo on the sqlite3_open_v2() documentation.

FossilOrigin-Name: b0add45abc9929c5b8d1124879bc3e8acf2ab7c7

14 years agoFix a couple of crashes in fts3 that can occur if the database contents are inconsistent.
dan [Thu, 13 Jan 2011 11:20:04 +0000 (11:20 +0000)] 
Fix a couple of crashes in fts3 that can occur if the database contents are inconsistent.

FossilOrigin-Name: 811e12cddfb3246c6cf3d5085bd9b72b12e05550

14 years agoFix a segfault that can occur in matchinfo if an fts4 table contains mostly zero...
dan [Thu, 13 Jan 2011 10:58:26 +0000 (10:58 +0000)] 
Fix a segfault that can occur in matchinfo if an fts4 table contains mostly zero-length documents. Specifically, if the table contains more rows than it does bytes of text.

FossilOrigin-Name: fe9047668eaaf76e7aa1ef1f32dec7c7c4226e45

14 years agoDo not raise an SQLITE_CORRUPT error in Recoverymode
drh [Wed, 12 Jan 2011 17:56:26 +0000 (17:56 +0000)] 
Do not raise an SQLITE_CORRUPT error in Recoverymode
if the database size in the header is larger than the physical file
size.  This facilitates recovery of a database in which the database size
field has been corrupted.

FossilOrigin-Name: 114640d920e16c85de90b19d53c485135875de5b

14 years agoMerge accidentally created fork.
dan [Tue, 11 Jan 2011 17:40:30 +0000 (17:40 +0000)] 
Merge accidentally created fork.

FossilOrigin-Name: b7d080b8e850bd262f53f29ba4687a62cf76d4ef

14 years agoAdd the SQLITE_FCNTL_SYNC file-control.
dan [Tue, 11 Jan 2011 17:39:37 +0000 (17:39 +0000)] 
Add the SQLITE_FCNTL_SYNC file-control.

FossilOrigin-Name: b3f2f465c310a2cfef8731a0dae3453593b68de9

14 years agoChange the page size of the destination database in a backup, if it is
drh [Tue, 11 Jan 2011 17:38:03 +0000 (17:38 +0000)] 
Change the page size of the destination database in a backup, if it is
changeable, prior to starting the backup.

FossilOrigin-Name: a5e4e0caad788318bc973e2550488a3b83128b8b

14 years agoIf a rollback is attempted in journal_mode=off mode, force SQLite to discard the...
dan [Tue, 11 Jan 2011 16:09:55 +0000 (16:09 +0000)] 
If a rollback is attempted in journal_mode=off mode, force SQLite to discard the contents of the pager cache before processing any subsequent queries.

FossilOrigin-Name: ece7efce2733b4fdd71db385abebbde464ac8f30

14 years agoFix the sqlite3.h generator script so that it generates the correct
drh [Tue, 11 Jan 2011 12:46:05 +0000 (12:46 +0000)] 
Fix the sqlite3.h generator script so that it generates the correct
SQLITE_SOURCE_ID string with the latest versions of Fossil that
include fractional seconds on the date/time stamp.

FossilOrigin-Name: 3513bf6ee090d9be97f60e12a4b39f4361ee17b7

14 years agoUpdate pager requirements to accound for the ZIPVFS extension.
drh [Mon, 10 Jan 2011 21:01:10 +0000 (21:01 +0000)] 
Update pager requirements to accound for the ZIPVFS extension.

FossilOrigin-Name: d94e59b514c16c5f7ea506e0af1c6e2ffecc13be

14 years agoReorder the fields in private structures in an effort to reduce alignment
drh [Fri, 7 Jan 2011 02:50:40 +0000 (02:50 +0000)] 
Reorder the fields in private structures in an effort to reduce alignment
gaps and thus make the structures smaller, and to put frequently accessed
fields first.  Also update some obsolete comments.  Valgrind shows a very
slight performance improvement.

FossilOrigin-Name: 378a1d13af4a6f4cb2bfa65944b3b0d444b9f21c

14 years agoEnhance the showdb tool to show overflow page pointers at the end of
drh [Thu, 6 Jan 2011 15:51:18 +0000 (15:51 +0000)] 
Enhance the showdb tool to show overflow page pointers at the end of
overflow cells.

FossilOrigin-Name: cda5eab18f48d3836dfd3e1f8c76e5f83b43485f

14 years agoEnhance the showdb tool to show a btree page layout. Add limit checks so that
drh [Thu, 6 Jan 2011 01:26:38 +0000 (01:26 +0000)] 
Enhance the showdb tool to show a btree page layout.  Add limit checks so that
overflow content does not overflow the buffer.

FossilOrigin-Name: 57ffa07e26a26d2f4527c8e6d7a9c1f48f380bf7

14 years agoFix a bug in the showdb utility: the serial types for BLOB and TEXT where
drh [Wed, 5 Jan 2011 21:46:52 +0000 (21:46 +0000)] 
Fix a bug in the showdb utility: the serial types for BLOB and TEXT where
reversed.

FossilOrigin-Name: 65a13faf1e3cd18f3459cd410f65d334cfa7c376

14 years agoEnhancements to the "showdb" debugging tool. Add the ability to display
drh [Wed, 5 Jan 2011 21:20:52 +0000 (21:20 +0000)] 
Enhancements to the "showdb" debugging tool.  Add the ability to display
the content of a cell.

FossilOrigin-Name: e9023a4e1edd552a81dcb2dcd5a996edfa167709

14 years agoIncrement the version number to 3.7.5.
drh [Wed, 5 Jan 2011 13:43:23 +0000 (13:43 +0000)] 
Increment the version number to 3.7.5.

FossilOrigin-Name: 9ec3896e2fda5b04e609300463dc5b6e79d6cff1

14 years agoAdd the sqlite3_vsnprintf() interface.
drh [Wed, 5 Jan 2011 12:20:09 +0000 (12:20 +0000)] 
Add the sqlite3_vsnprintf() interface.

FossilOrigin-Name: fc67adea414320e0c0b24054f76070cfaeebb401

14 years agoFix a null-pointer dereference that can occur on an OOM error while running
drh [Tue, 4 Jan 2011 20:06:33 +0000 (20:06 +0000)] 
Fix a null-pointer dereference that can occur on an OOM error while running
ANALYZE with SQLITE_ENABLE_STAT2.

FossilOrigin-Name: 73128d4ef5d7703bf7af0553c307b55dc1b783f6

14 years agoFix the ANALYZE command so that it takes collating sequences into account
drh [Tue, 4 Jan 2011 19:01:26 +0000 (19:01 +0000)] 
Fix the ANALYZE command so that it takes collating sequences into account
when gathering index statistics.

FossilOrigin-Name: a5867cfc4c9b9155fa345247dec29e38fffa8002

14 years agoThe ANALYZE command now counts at all rows of an index, even those containing
drh [Tue, 4 Jan 2011 17:57:53 +0000 (17:57 +0000)] 
The ANALYZE command now counts at all rows of an index, even those containing
NULL values.  A valid sqlite_stat1 entry is created even if the index contains
nothing but NULLs.

FossilOrigin-Name: 824c8dd3015bbd5c8a1dd661cfe09fe5bf7a80d3

14 years agoHave testfixture invoke C routine Zipvfs_Init() when creating a new interpreter if...
dan [Wed, 29 Dec 2010 18:24:38 +0000 (18:24 +0000)] 
Have testfixture invoke C routine Zipvfs_Init() when creating a new interpreter if SQLITE_ENABLE_ZIPVFS is defined.

FossilOrigin-Name: 430635dacfa818e8266a88214aaf60c77862de1c

14 years agoFix some off-by-one errors in the comments for API functions create_function() and...
dan [Wed, 29 Dec 2010 10:49:46 +0000 (10:49 +0000)] 
Fix some off-by-one errors in the comments for API functions create_function() and value_blob(). No changes to code or tests.

FossilOrigin-Name: 7ded90baeb75db5af83345cd2c31211cbee1e91b

14 years agoReduce the number of calls to sqlite3_realloc() made by fts3 when querying for positi...
dan [Fri, 24 Dec 2010 15:49:27 +0000 (15:49 +0000)] 
Reduce the number of calls to sqlite3_realloc() made by fts3 when querying for position information of a term prefix.

FossilOrigin-Name: 7088d9450f403f12f67eed558e368573101245d6

14 years agoDo not include <sys/mmap.h> if SQLITE_OMIT_WAL is defined.
drh [Wed, 22 Dec 2010 21:48:50 +0000 (21:48 +0000)] 
Do not include <sys/mmap.h> if SQLITE_OMIT_WAL is defined.

FossilOrigin-Name: b82e85ece94c8e25c1dc3251f5444a295fbf8c89

14 years agoAdd test cases for the new lookaside hit and miss status outputs. Add
drh [Tue, 21 Dec 2010 21:28:38 +0000 (21:28 +0000)] 
Add test cases for the new lookaside hit and miss status outputs.  Add
the output of lookaside hit and miss to the command-line shell statistics.

FossilOrigin-Name: b0888047bb6d9ac55e29b9224df2ff650728bb78

14 years agoMerge into the trunk the experimental enhancements to sqlite3_db_status()
drh [Tue, 21 Dec 2010 20:36:45 +0000 (20:36 +0000)] 
Merge into the trunk the experimental enhancements to sqlite3_db_status()
for measuring lookaside memory allocator performance.

FossilOrigin-Name: 8c3b06c299554759b67437e09ee7ef6420dacafc

14 years agoRemove the obsolete compile-time option SQLITE_THREAD_OVERRIDE_LOCK
drh [Tue, 21 Dec 2010 00:20:53 +0000 (00:20 +0000)] 
Remove the obsolete compile-time option SQLITE_THREAD_OVERRIDE_LOCK
from the autoconf makefile.  Needed only for LinuxThreads, which we no
longer support.

FossilOrigin-Name: 09f6c053ff9239c22ecf527ae579446c6e21e550

14 years agoRearrange a variable declaration in the proxy locking code to avoid a harmless
drh [Tue, 21 Dec 2010 00:16:40 +0000 (00:16 +0000)] 
Rearrange a variable declaration in the proxy locking code to avoid a harmless
compiler warning on recent MacOS versions.

FossilOrigin-Name: 39bbd35599e735b32f7ed18143073165b805dd98

14 years agoClarify the documentation of the SQLITE_STATUS_MALLOC_COUNT parameter to
drh [Mon, 20 Dec 2010 17:00:27 +0000 (17:00 +0000)] 
Clarify the documentation of the SQLITE_STATUS_MALLOC_COUNT parameter to
sqlite3_status().

FossilOrigin-Name: 3b41bcc3e36a9ef0146bc2f6ae86377bd1700afd

14 years agoAdd additional DBSTATUS options for measuring the hit and miss rates against
drh [Mon, 20 Dec 2010 15:51:58 +0000 (15:51 +0000)] 
Add additional DBSTATUS options for measuring the hit and miss rates against
the lookaside memory pool - information useful in tuning the lookaside size.
Currently experimental pending analysis of performance impact.

FossilOrigin-Name: 34613f1dc54c638531ca2f5907b71fbe8841233e

14 years agoAdd the "-heap" option to the command-line shell - to allocate a fixed heap
drh [Fri, 17 Dec 2010 14:03:01 +0000 (14:03 +0000)] 
Add the "-heap" option to the command-line shell - to allocate a fixed heap
for use with SQLITE_ENABLE_MEMSYS5.

FossilOrigin-Name: 74fff692345fed4b247e2b34c1e63b4d50cddfd4

14 years agoFix minor typos in the sqlite3_backup documentation.
drh [Fri, 17 Dec 2010 00:59:59 +0000 (00:59 +0000)] 
Fix minor typos in the sqlite3_backup documentation.

FossilOrigin-Name: df430be59d0766a34a94ab85fec9aa3c3baeb740

14 years agoImprovements to the documentation for sqlite3_backup. No code changes.
drh [Thu, 16 Dec 2010 20:35:09 +0000 (20:35 +0000)] 
Improvements to the documentation for sqlite3_backup.  No code changes.

FossilOrigin-Name: f83609f4703b5e74a91bca071a4ac2843189f463

14 years agoFix an assertion fault that can only occur if SQLITE_ENABLE_STAT2 is defined
drh [Thu, 16 Dec 2010 19:52:52 +0000 (19:52 +0000)] 
Fix an assertion fault that can only occur if SQLITE_ENABLE_STAT2 is defined
and the constant folding optimization is disabled using sqlite3_test_control().
Problem introduced by [ad8bc68197f2b4] but we missed it prior to the 3.7.4
release due to taking shortcuts and skipping tests in the release checklist.

FossilOrigin-Name: 70a3d81742fcd481f83ccc8f7ff6af58bc29c4fa

14 years agoMake wal_checkpoint a no-op if a prior checkpoint has already copied all
drh [Thu, 16 Dec 2010 02:06:29 +0000 (02:06 +0000)] 
Make wal_checkpoint a no-op if a prior checkpoint has already copied all
WAL content into the database.  This prevents a concurrent write to the
database from resetting the wal-index out from under the WalIterator of
the checkpoint as it is initializing.

FossilOrigin-Name: cf86affcb7d3089496e9849cbf43a211097e4f64

14 years agoEnhanced comments in wal.c and declare some procedure parameters "const".
drh [Wed, 15 Dec 2010 21:02:06 +0000 (21:02 +0000)] 
Enhanced comments in wal.c and declare some procedure parameters "const".
No changes to the generated code.

FossilOrigin-Name: d0e4375b8a784d4e4ae66caababac919edd61883

14 years agoWhen registering the built-in LIKE and GLOB functions, make sure that they
drh [Wed, 15 Dec 2010 18:54:37 +0000 (18:54 +0000)] 
When registering the built-in LIKE and GLOB functions, make sure that they
are tagged with SQLITE_UTF8 so that if other application-defined LIKE and
GLOB implementations are provided for UTF16, then the appropriate function
will be selected.

FossilOrigin-Name: e1660764f20fed3fe92156d2b7f06075ff6ac145

14 years agoFix a performance regression in matchinfo().
dan [Fri, 10 Dec 2010 17:06:48 +0000 (17:06 +0000)] 
Fix a performance regression in matchinfo().

FossilOrigin-Name: fa37d8eb7cd8049689068af2a80fe2cbb4a603f1

14 years agoAdd support for the SQLITE_DEFAULT_FOREIGN_KEYS compile-time option.
drh [Thu, 9 Dec 2010 19:15:17 +0000 (19:15 +0000)] 
Add support for the SQLITE_DEFAULT_FOREIGN_KEYS compile-time option.

FossilOrigin-Name: c959945ab7129b67eb2364befb9bf5cc88a8b0bf

14 years agoMention the SQLITE_DEFAULT_WAL_AUTOCHECKPOINT compile-time option in the
drh [Thu, 9 Dec 2010 18:55:09 +0000 (18:55 +0000)] 
Mention the SQLITE_DEFAULT_WAL_AUTOCHECKPOINT compile-time option in the
documentation for the sqlite3_wal_autocheckpoint() interface.

FossilOrigin-Name: 5a52dd59ff577b071b4ed9316dc3bc753a18c8da

14 years agoUpdate the sqlite3_stmt_readonly() interface so that its output is
drh [Wed, 8 Dec 2010 18:30:19 +0000 (18:30 +0000)] 
Update the sqlite3_stmt_readonly() interface so that its output is
well-defined for all prepared statements, and so that it gives the
correct result for VACUUM.

FossilOrigin-Name: 9c19b7ae3542fd1fac692b4471f1839b22685c76

14 years agoThe command-line shell ignore errors in sqlite3_close() when shutting down.
drh [Wed, 8 Dec 2010 03:28:17 +0000 (03:28 +0000)] 
The command-line shell ignore errors in sqlite3_close() when shutting down.

FossilOrigin-Name: 925332c3d79f6252895ff1a367f795630619247e

14 years agoChanges to the shell which should, in theory, allow it to work with
drh [Wed, 8 Dec 2010 00:02:26 +0000 (00:02 +0000)] 
Changes to the shell which should, in theory, allow it to work with
libeditline as an alternative to libreadline.

FossilOrigin-Name: e474fd9e7f89644a7840e33e9df03dbaa4dd28bd

14 years agoImproved documentation for SQLITE_FCNTL_FILE_POINTER.
drh [Tue, 7 Dec 2010 23:24:00 +0000 (23:24 +0000)] 
Improved documentation for SQLITE_FCNTL_FILE_POINTER.

FossilOrigin-Name: 43935548ae79d4d1a71549820a77368cda77104a

14 years agoVersion 3.7.4 release candidate 4 version-3.7.4
drh [Tue, 7 Dec 2010 20:14:08 +0000 (20:14 +0000)] 
Version 3.7.4 release candidate 4

FossilOrigin-Name: a586a4deeb25330037a49df295b36aaf624d0f45

14 years agoWork around restriction in Windows file locking.
shaneh [Tue, 7 Dec 2010 17:12:21 +0000 (17:12 +0000)] 
Work around restriction in Windows file locking.

FossilOrigin-Name: fe441df9ba447d97571e919099846efa3ec87427

14 years agoFix a bug in the demo "superlock" code preventing locks from being released in some...
dan [Tue, 7 Dec 2010 16:39:25 +0000 (16:39 +0000)] 
Fix a bug in the demo "superlock" code preventing locks from being released in some circumstances.

FossilOrigin-Name: 65c393793ff5fdb935d5acfe5bdc3bca052f7314

14 years agoVersion 3.7.4 release candidate 3
drh [Tue, 7 Dec 2010 14:59:22 +0000 (14:59 +0000)] 
Version 3.7.4 release candidate 3

FossilOrigin-Name: 11c74c0dae0e302f248ec4af6dc8a9376203b034

14 years agoRun some of the existing test scripts with optimizations disabled as part of all...
dan [Tue, 7 Dec 2010 14:32:28 +0000 (14:32 +0000)] 
Run some of the existing test scripts with optimizations disabled as part of all.test.

FossilOrigin-Name: b0634d2f909fb192d20315e59fa31fcd8f316541

14 years agoAdd tests to tkt-80ba201079.test.
dan [Tue, 7 Dec 2010 07:57:49 +0000 (07:57 +0000)] 
Add tests to tkt-80ba201079.test.

FossilOrigin-Name: c370338c772bcd0797a23f83c3f6dc019640c6dd

14 years agoFix the build so that it once again works with SQLITE_OMIT_SHARED_CACHE
drh [Mon, 6 Dec 2010 21:09:59 +0000 (21:09 +0000)] 
Fix the build so that it once again works with SQLITE_OMIT_SHARED_CACHE
and SQLITE_OMIT_AUTOVACUUM.

FossilOrigin-Name: fabcb6b95e1d4059d1e6c6183f65846f6cbd5749

14 years agoAdd the ability to disable constant factoring using sqlite3_test_control().
drh [Mon, 6 Dec 2010 21:06:09 +0000 (21:06 +0000)] 
Add the ability to disable constant factoring using sqlite3_test_control().
Add a TCL interface to this new capability and add tests cases to the TCL
test scripts to actually use the new capability.

FossilOrigin-Name: ad8bc68197f2b47435149c3dbc035f4e7210fc76

14 years agoBack out part of the previous change that was not really necessary in order
drh [Mon, 6 Dec 2010 18:59:13 +0000 (18:59 +0000)] 
Back out part of the previous change that was not really necessary in order
to fix [80ba201079ea60], and which in fact serves no useful purpose.

FossilOrigin-Name: fa9eef865f2f399870305bef82296db25e5b3e90

14 years agoInitialize all constants at the very beginning of a prepared statement.
drh [Mon, 6 Dec 2010 18:50:32 +0000 (18:50 +0000)] 
Initialize all constants at the very beginning of a prepared statement.
Do not allow constant initialization to occur once control flow has a chance
to diverge, to avoid the possibility of having uninitialized registers.
Ticket [80ba201079ea60807].

FossilOrigin-Name: c5c53152d68218bb5e7f922271dd7c50da2361c1

14 years agoHave sqlite3_blob_bytes() return 0 following a failed call to sqlite3_reopen_blob().
dan [Mon, 6 Dec 2010 17:11:05 +0000 (17:11 +0000)] 
Have sqlite3_blob_bytes() return 0 following a failed call to sqlite3_reopen_blob().

FossilOrigin-Name: 476a8b492124d31e0656e61a6183ab55684c0bdf

14 years agoVersion 3.7.4 release candidate 2.
drh [Sat, 4 Dec 2010 19:35:04 +0000 (19:35 +0000)] 
Version 3.7.4 release candidate 2.

FossilOrigin-Name: 40756fe1f109da8bccac0ca28f05435792c62f81

14 years agoFix a memory leak in fts3 that can occur in an OOM condition.
dan [Sat, 4 Dec 2010 18:20:18 +0000 (18:20 +0000)] 
Fix a memory leak in fts3 that can occur in an OOM condition.

FossilOrigin-Name: 507027b70f71689f77dee3e849ebc66a1c4c3166

14 years agoRemove an over-zealous call to memAboutToChange() from OP_MustBeInt.
drh [Fri, 3 Dec 2010 18:57:17 +0000 (18:57 +0000)] 
Remove an over-zealous call to memAboutToChange() from OP_MustBeInt.
OP_MustBeInt will never invalidate the Mem.z pointer so the memAboutToChange()
call is not necessary.

FossilOrigin-Name: 841cf7a7dbf0947cb7bde864609a8d3294f78689

14 years agoVersion 3.7.4 release candidate 1
drh [Fri, 3 Dec 2010 15:41:57 +0000 (15:41 +0000)] 
Version 3.7.4 release candidate 1

FossilOrigin-Name: 2e800cb87ded1a080469ea46878ac61f945f789e

14 years agoAdd tests for fts3 to backcompat.test.
dan [Fri, 3 Dec 2010 15:04:26 +0000 (15:04 +0000)] 
Add tests for fts3 to backcompat.test.

FossilOrigin-Name: b4eafde823bf30ebbb9232a88c9ddfa52f3cbabf

14 years agoAdd the "valgrind" permutation. This is the same as veryquick.test except that it...
dan [Fri, 3 Dec 2010 10:32:06 +0000 (10:32 +0000)] 
Add the "valgrind" permutation. This is the same as veryquick.test except that it omits the multi-process tests that do not work under valgrind. No changes to production or existing test code.

FossilOrigin-Name: 49531300676b303f2ccec8d8d587b389c9eae98b

14 years agoFix a bug causing fts3 to incorrectly return SQLITE_CORRUPT.
dan [Thu, 2 Dec 2010 17:39:26 +0000 (17:39 +0000)] 
Fix a bug causing fts3 to incorrectly return SQLITE_CORRUPT.

FossilOrigin-Name: 099195b14829f375055345b8322905ccd073d442

14 years agoExclude a test case from the inmemory_journal permutation of multiplex.test.
dan [Thu, 2 Dec 2010 14:47:06 +0000 (14:47 +0000)] 
Exclude a test case from the inmemory_journal permutation of multiplex.test.

FossilOrigin-Name: 474196d6452f5868a712a9b0116d5f64c90d67c1

14 years agoFix a (harmless) valgrind warning in the rtree extension.
dan [Thu, 2 Dec 2010 11:24:58 +0000 (11:24 +0000)] 
Fix a (harmless) valgrind warning in the rtree extension.

FossilOrigin-Name: a94b9a395e0be9549d8c28e2b86b995c73c7b671

14 years agoUpdate misc7.test to account for EQP changes.
dan [Thu, 2 Dec 2010 06:08:53 +0000 (06:08 +0000)] 
Update misc7.test to account for EQP changes.

FossilOrigin-Name: 917af565ac0c71c14fcba56632e687ed938a856c

14 years agoChanged multiplex shim's xFilesize to return an error on mismatched chunk size.
shaneh [Wed, 1 Dec 2010 23:42:42 +0000 (23:42 +0000)] 
Changed multiplex shim's xFilesize to return an error on mismatched chunk size.
Added test of same.

FossilOrigin-Name: 6818c6e42faf233afa6b30799c5b425aa42d0783

14 years agoMake sure a test of multiplex shim doesn't fail if a file already exists.
shaneh [Wed, 1 Dec 2010 22:08:45 +0000 (22:08 +0000)] 
Make sure a test of multiplex shim doesn't fail if a file already exists.

FossilOrigin-Name: 80de240a329d8df4aa1e437711bf6ed889d92c5f

14 years agoAdded TCL test case for converting to WAL mode with multiple connections.
shaneh [Wed, 1 Dec 2010 20:49:42 +0000 (20:49 +0000)] 
Added TCL test case for converting to WAL mode with multiple connections.
Added exception to the test case for Windows for not being able to delete the open journal file.

FossilOrigin-Name: 7061601f4935af483f4068d257d6f8a9c728fd33

14 years agoChange the type of a variable in struct SrcList so that it fits in a 100 byte lookasi...
dan [Wed, 1 Dec 2010 19:00:48 +0000 (19:00 +0000)] 
Change the type of a variable in struct SrcList so that it fits in a 100 byte lookaside buffer on a 64-bit architecture.

FossilOrigin-Name: 7df43f4892e628ecb8a83c5ed2dce5e24f6dd529

14 years agoFix some warnings under MSVC in fts3 module.
shaneh [Wed, 1 Dec 2010 15:36:00 +0000 (15:36 +0000)] 
Fix some warnings under MSVC in fts3 module.

FossilOrigin-Name: c7771c0b22f2b45a47070cf84b9ecf1011e40404

14 years agoAdd test file e_resolve.test.
dan [Wed, 1 Dec 2010 11:46:53 +0000 (11:46 +0000)] 
Add test file e_resolve.test.

FossilOrigin-Name: 6858df9c72b1e9fb6c1a0050035b11822f87a5a7

14 years agoAvoid recursive calls to sqlite3VdbeMemRelease() when deleting VM frames used by...
dan [Wed, 1 Dec 2010 08:04:47 +0000 (08:04 +0000)] 
Avoid recursive calls to sqlite3VdbeMemRelease() when deleting VM frames used by trigger programs.

FossilOrigin-Name: 119ffe955eb1e8016cb8131a63bd17557f395f3f