]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
14 years agoToward version 3.7.5.1. This check-in updates the version number and also branch-3.7.5
drh [Wed, 1 Jun 2011 11:26:51 +0000 (11:26 +0000)] 
Toward version 3.7.5.1.  This check-in updates the version number and also
patches the pager so that it never spills cache while in WAL mode.  The
latter patch fixes ticket [2d1a5c67dfc23] and also prevents excessive WAL
file sizes if the pager cache starts thrashing.  A few test cases fail.

FossilOrigin-Name: 2e5a912ad781f7554c718df6340c809472f87022

14 years agoSQLite version 3.7.5 release candidate 2 version-3.7.5
drh [Fri, 28 Jan 2011 17:03:50 +0000 (17:03 +0000)] 
SQLite version 3.7.5 release candidate 2

FossilOrigin-Name: ed759d5a9edb3bba5f48f243df47be29e3fe8cd7

14 years agoAdd test script pagerfault3.test. No changes to code or existing tests.
dan [Fri, 28 Jan 2011 16:45:42 +0000 (16:45 +0000)] 
Add test script pagerfault3.test. No changes to code or existing tests.

FossilOrigin-Name: 682fe41efd3578e8c9abc7138b61f361c3adbe95

14 years agoChange pager_truncate() to a different method for extending files while
drh [Fri, 28 Jan 2011 15:46:14 +0000 (15:46 +0000)] 
Change pager_truncate() to a different method for extending files while
also ensuring that writes are page-size and page-aligned.

FossilOrigin-Name: 874bc8844f6494cdbf700bd884dee67d40f11fc0

14 years agoWhen extending a database file, do so by writing one or more page-size chunks of...
dan [Fri, 28 Jan 2011 15:07:55 +0000 (15:07 +0000)] 
When extending a database file, do so by writing one or more page-size chunks of data to the file, instead of just a single byte to the end.

FossilOrigin-Name: 58577135a81d3f19667b1de6167d2e3f1b74cd53

14 years agoSQLite version 3.7.5 release candidate 1
drh [Thu, 27 Jan 2011 14:35:01 +0000 (14:35 +0000)] 
SQLite version 3.7.5 release candidate 1

FossilOrigin-Name: 35ac78f55159705af140b949ee33852aedd62816

14 years agoUpdate all built-in VFSes to return SQLITE_OK for the
drh [Wed, 26 Jan 2011 19:46:22 +0000 (19:46 +0000)] 
Update all built-in VFSes to return SQLITE_OK for the
SQLITE_FCNTL_SYNC_OMITTED file-control operation.  Also change the
xFileControl methods to return SQLITE_NOTFOUND for unrecognized
operation codes.

FossilOrigin-Name: 6f2c72a0f6579db3f40c079436ca40e3e52bd6d9

14 years agoUpdate test file mutex1.test to account for [e3b500fb5d].
dan [Wed, 26 Jan 2011 15:23:22 +0000 (15:23 +0000)] 
Update test file mutex1.test to account for [e3b500fb5d].

FossilOrigin-Name: c86e46f4fd8f485fa1d34c70e17ea3aa1b334ce3

14 years agoMore mutexes around another sqlite3StatusAdd() call.
drh [Wed, 26 Jan 2011 13:28:06 +0000 (13:28 +0000)] 
More mutexes around another sqlite3StatusAdd() call.

FossilOrigin-Name: e3b500fb5d93d98e6e1ddf6d494a841274d1b68d

14 years agoAdd a mutex around an sqlite3StatusAdd() call to prevent the pagecount
drh [Wed, 26 Jan 2011 13:24:40 +0000 (13:24 +0000)] 
Add a mutex around an sqlite3StatusAdd() call to prevent the pagecount
overflow measurements from getting off in multithreaded applications.

FossilOrigin-Name: 3d8b298dc24fe13a3f390da41f79b8613a6f25a7

14 years agoUpdate mutex1.test so that it works with the memsubsys1 permutation (pagecache memory...
dan [Wed, 26 Jan 2011 07:25:32 +0000 (07:25 +0000)] 
Update mutex1.test so that it works with the memsubsys1 permutation (pagecache memory). Change a few instances of SQLITE_MUTEX_STATIC_LRU2 in comments and test code to STATIC_PMEM.

FossilOrigin-Name: 456bd5c63b41bae8e389df81e318b830aa314000

14 years agoChanges to exclusive2.test to make it more deterministic.
dan [Wed, 26 Jan 2011 06:13:14 +0000 (06:13 +0000)] 
Changes to exclusive2.test to make it more deterministic.

FossilOrigin-Name: 84b0c2bc7125623be2ee526b5ca75e1b72debb93

14 years agoRename the PCache1.mxPinned field to n90pct (since it is 90% of nMax) in order
drh [Wed, 26 Jan 2011 00:07:03 +0000 (00:07 +0000)] 
Rename the PCache1.mxPinned field to n90pct (since it is 90% of nMax) in order
to distinguish it from PGroup.mxPinned.  Fix the computation of n90pct so that
it does not overflow adversely on excessively large cache sizes.

FossilOrigin-Name: c85202baac49b22a4be36b9733d44f01d83edb28

14 years agoFix new compiler warnings in pcache1.c that were introduced by the recent
drh [Tue, 25 Jan 2011 18:30:51 +0000 (18:30 +0000)] 
Fix new compiler warnings in pcache1.c that were introduced by the recent
performance enhancement patches of [e14649301138b684].

FossilOrigin-Name: c17703ec1e604934f8bd5b1f66f34b19d17a6d1f

14 years agoAdd a missing call to sqlite3PagerSync() removed by [ce552d975] to the backup code.
dan [Tue, 25 Jan 2011 18:19:24 +0000 (18:19 +0000)] 
Add a missing call to sqlite3PagerSync() removed by [ce552d975] to the backup code.

FossilOrigin-Name: 1965b85318c1fac62fae9691059021b298c17dde

14 years agoMake sure the return code from doing an xSync is correctly initialized
drh [Tue, 25 Jan 2011 16:48:56 +0000 (16:48 +0000)] 
Make sure the return code from doing an xSync is correctly initialized
so that a valid return code is produced regardless of the path taken through
the logic.

FossilOrigin-Name: f12b5d76854c2f294ac60afe38a6dac37eb5b174

14 years agoChange the name of SQLITE_FCNTL_SYNC to SQLITE_FCNTL_SYNC_OMITTED and only
drh [Tue, 25 Jan 2011 16:20:16 +0000 (16:20 +0000)] 
Change the name of SQLITE_FCNTL_SYNC to SQLITE_FCNTL_SYNC_OMITTED and only
send it when PRAGMA synchronous=OFF.  Add better documentation to explain
what that file-control opcode is used for.

FossilOrigin-Name: 64914980855dbbf19512642836ca962a507b3ddb

14 years agoFix a couple of typos in comments. No changes to actual code.
dan [Tue, 25 Jan 2011 13:43:35 +0000 (13:43 +0000)] 
Fix a couple of typos in comments. No changes to actual code.

FossilOrigin-Name: 9167fdb3560b1567a0bdc9a1906a87ec98e161f1

14 years agoFix a broken assert() in pager.c.
dan [Tue, 25 Jan 2011 11:33:01 +0000 (11:33 +0000)] 
Fix a broken assert() in pager.c.

FossilOrigin-Name: 13108ce13c281f31aa60b403567710ae3d925797

14 years agoFix a problem in memsubsys1.test. Modifications to test code only.
dan [Tue, 25 Jan 2011 09:54:53 +0000 (09:54 +0000)] 
Fix a problem in memsubsys1.test. Modifications to test code only.

FossilOrigin-Name: 7ef3f7cba768ef0c4782a6c80424833b4df6a059

14 years agoShave a few cycles so that performance is better than 3.7.4 in speed tests.
drh [Tue, 25 Jan 2011 04:34:51 +0000 (04:34 +0000)] 
Shave a few cycles so that performance is better than 3.7.4 in speed tests.

FossilOrigin-Name: e14649301138b6840e24a4bbd2cf5205c0f72409

14 years agoModify the test_quote.c demonstration shim so that it works when
drh [Mon, 24 Jan 2011 20:18:05 +0000 (20:18 +0000)] 
Modify the test_quote.c demonstration shim so that it works when
SQLITE_THREADSAFE=0 is defined.

FossilOrigin-Name: b70bcccaf5597c8a59cccb64fb997523f7b8fe4f

14 years agoFix a typo in the documentation for sqlite3_snprintf(). No changes to code.
drh [Mon, 24 Jan 2011 19:45:07 +0000 (19:45 +0000)] 
Fix a typo in the documentation for sqlite3_snprintf().  No changes to code.

FossilOrigin-Name: 8d1065411aadf189880606c48ab63dd2a56b9793

14 years agoFix a harmless compiler warning (a shadowed local variable) in analyze.c.
drh [Mon, 24 Jan 2011 19:14:06 +0000 (19:14 +0000)] 
Fix a harmless compiler warning (a shadowed local variable) in analyze.c.

FossilOrigin-Name: a1ad7fb38bb38909ca2fddee31c7a8001f10686f

14 years agoModify the trace callback mechanism so that SQL commands executed from within virtual...
dan [Sat, 22 Jan 2011 13:32:29 +0000 (13:32 +0000)] 
Modify the trace callback mechanism so that SQL commands executed from within virtual table or user function callbacks are passed to the trace callback without parameter expansion and enclosed in SQL comments.

FossilOrigin-Name: a764915b87564fa91ee68e9b1f41394ce0f1fc7e

14 years agoChange sqlite3StrAccumAppend() to use realloc instead of malloc.
dan [Fri, 21 Jan 2011 18:25:29 +0000 (18:25 +0000)] 
Change sqlite3StrAccumAppend() to use realloc instead of malloc.

FossilOrigin-Name: 380f61df0754ceec6b3f6a758d04e951cce8c3d9

14 years agoAdd options to test command [do_faultsim_test] to support testing VFS implementations.
dan [Fri, 21 Jan 2011 15:52:02 +0000 (15:52 +0000)] 
Add options to test command [do_faultsim_test] to support testing VFS implementations.

FossilOrigin-Name: 503ad889da675b3dd83da7338e2902e42f69acac

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