]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
14 years agoA proposed change to the sqlite3_step() API such that it will only auto-reset step-autoreset
drh [Tue, 11 Jan 2011 01:42:47 +0000 (01:42 +0000)] 
A proposed change to the sqlite3_step() API such that it will only auto-reset
following an SQLITE_BUSY or SQLITE_LOCKED error.  Calls after any other result
other than SQLITE_ROW will return SQLITE_MISUSE.

FossilOrigin-Name: d1b3c54f42b1765e7565aeff517835c28528b177

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

14 years agoAdd test file e_dropview.test.
dan [Tue, 30 Nov 2010 12:12:24 +0000 (12:12 +0000)] 
Add test file e_dropview.test.

FossilOrigin-Name: 6197822cc8310fd7e1d7151683833e8b39fe631a

14 years agoFix a warning in os_unix.c.
dan [Mon, 29 Nov 2010 18:36:22 +0000 (18:36 +0000)] 
Fix a warning in os_unix.c.

FossilOrigin-Name: ee8dc8c87ed15b76ba437df23e1d7b1b7fa30296

14 years agoOn *BSD systems, reduce the number of open connections used by wal3.test to avoid...
dan [Mon, 29 Nov 2010 18:22:44 +0000 (18:22 +0000)] 
On *BSD systems, reduce the number of open connections used by wal3.test to avoid running out of file-descriptors.

FossilOrigin-Name: 0a3cba95a14ae7a24b2d268567a02d651ab278dc

14 years agoFix compiler warnings discovered while building SQLite on [http://www.devio.us/].
dan [Mon, 29 Nov 2010 17:55:18 +0000 (17:55 +0000)] 
Fix compiler warnings discovered while building SQLite on [http://www.devio.us/].

FossilOrigin-Name: 5602ec95aa2a74d0624bb6c7d53e7a0d35536253

14 years agoAdd tests for very small cache-sizes (less than 10 pages).
dan [Mon, 29 Nov 2010 16:10:01 +0000 (16:10 +0000)] 
Add tests for very small cache-sizes (less than 10 pages).

FossilOrigin-Name: 46b3fbdafe191cd0974cc3f46bc6aa52b3f1270e

14 years agoAdd new test file e_droptrigger.test.
dan [Mon, 29 Nov 2010 12:06:45 +0000 (12:06 +0000)] 
Add new test file e_droptrigger.test.

FossilOrigin-Name: d23ef9b88c6705219e5138e50f0f351f6401c401

14 years agoFix various compiler warnings.
drh [Fri, 26 Nov 2010 16:49:59 +0000 (16:49 +0000)] 
Fix various compiler warnings.

FossilOrigin-Name: c412f61229b6ab1ac90b932afd56f7c5e3ba1cfe

14 years agoFix an uninitialized variable in fts3.c.
dan [Fri, 26 Nov 2010 16:31:43 +0000 (16:31 +0000)] 
Fix an uninitialized variable in fts3.c.

FossilOrigin-Name: 3c3d076b42da36cd5413749ec022d0349325edfa

14 years agoMerge fts3 matchinfo() changes with trunk.
dan [Fri, 26 Nov 2010 15:17:12 +0000 (15:17 +0000)] 
Merge fts3 matchinfo() changes with trunk.

FossilOrigin-Name: 7d660b91b748126c499285713bd0237530a1a601

14 years agoAdd a couple of comments to fts3_snippet.c. fts3-experimental
dan [Fri, 26 Nov 2010 15:13:31 +0000 (15:13 +0000)] 
Add a couple of comments to fts3_snippet.c.

FossilOrigin-Name: ad8df6c5ee0055cf1161a3b700d69dbe07d969bc

14 years agoMerge with latest trunk changes.
dan [Fri, 26 Nov 2010 10:58:48 +0000 (10:58 +0000)] 
Merge with latest trunk changes.

FossilOrigin-Name: 515cb3f4e5282551d300ba79c8885b8ca016a408

14 years agoAdd coverage tests (and associated fixes) for new matchinfo() code.
dan [Thu, 25 Nov 2010 17:49:28 +0000 (17:49 +0000)] 
Add coverage tests (and associated fixes) for new matchinfo() code.

FossilOrigin-Name: 70495ceccc793d608930f59e330777f287ba1ede

14 years agoFix bugs in fts3 function matchinfo() when used with deferred tokens.
dan [Thu, 25 Nov 2010 10:33:54 +0000 (10:33 +0000)] 
Fix bugs in fts3 function matchinfo() when used with deferred tokens.

FossilOrigin-Name: ddc2b7ec2618b010c981ecfa05b3e53a9fac686f

14 years agoAdd code for the matchinfo 'longest common substring' feature.
dan [Wed, 24 Nov 2010 19:26:18 +0000 (19:26 +0000)] 
Add code for the matchinfo 'longest common substring' feature.

FossilOrigin-Name: 71011a4f9baf09ec6935ad591145252bf3c286ed

14 years agoFix crashes that can occur when queries are run on an FTS4 table containing zero...
dan [Wed, 24 Nov 2010 15:02:22 +0000 (15:02 +0000)] 
Fix crashes that can occur when queries are run on an FTS4 table containing zero rows.

FossilOrigin-Name: ed61fd20adef44d0f6b2345e0205b25f3641a15e

14 years agoFix a couple of compiler warnings in test_superlock.c. Add superlock.c
drh [Wed, 24 Nov 2010 13:04:22 +0000 (13:04 +0000)] 
Fix a couple of compiler warnings in test_superlock.c.  Add superlock.c
to the Makefile.in used by the configure script.

FossilOrigin-Name: 461f1a010f55e7da6b43ea65550066b1ca7abad0

14 years agoRemove some unused code from fts3. Add tests to fts3matchinfo.test.
dan [Wed, 24 Nov 2010 11:51:56 +0000 (11:51 +0000)] 
Remove some unused code from fts3. Add tests to fts3matchinfo.test.

FossilOrigin-Name: ae40b34cf7c24c9601bdfb5cbe5b20f05a376ea8

14 years agoCherry-pick the lemon.c updates out of the lemon-update-2010 branch into
drh [Tue, 23 Nov 2010 20:55:27 +0000 (20:55 +0000)] 
Cherry-pick the lemon.c updates out of the lemon-update-2010 branch into
the trunk.

FossilOrigin-Name: 1541ae3fbd7b3d471e002c0ad14e7846f7ad9415

14 years agoThe previous check-in with changes to the max_page_count pragma was not
drh [Tue, 23 Nov 2010 20:25:08 +0000 (20:25 +0000)] 
The previous check-in with changes to the max_page_count pragma was not
quite correct.  This check-in fixes the problem.

FossilOrigin-Name: 30c26c3b13b29ce57683e91ac11641d4eb4d678f

14 years agoExperimental changes to fts3 function matchinfo().
dan [Tue, 23 Nov 2010 19:16:47 +0000 (19:16 +0000)] 
Experimental changes to fts3 function matchinfo().

FossilOrigin-Name: 9cf0f2b76bc68c168e3fa861b7235f384db21d38

14 years agoFix the max_page_count pragma so that it will not set to a value smaller
drh [Tue, 23 Nov 2010 18:59:27 +0000 (18:59 +0000)] 
Fix the max_page_count pragma so that it will not set to a value smaller
than the current database size, as the documentation requires.  Also,
remove all occurances of atoi() from the core.

FossilOrigin-Name: 2031974b606ef713b5f34522b2221470d98687c5

14 years agoFix a typo in unixCurrentTimeInt64() preventing compilation with NO_GETTOD defined.
dan [Mon, 22 Nov 2010 17:26:07 +0000 (17:26 +0000)] 
Fix a typo in unixCurrentTimeInt64() preventing compilation with NO_GETTOD defined.

FossilOrigin-Name: 3df3e79b56821201b4f5ecd23f94d485745c48c3

14 years agoExtra tests for "PRAGMA checkpoint_fullfsync".
dan [Sat, 20 Nov 2010 12:01:35 +0000 (12:01 +0000)] 
Extra tests for "PRAGMA checkpoint_fullfsync".

FossilOrigin-Name: e38c81cc18d2ceaa1644aaba64530ba5d1fbf2cf

14 years agoAdd extra tests for test_superlock.c.
dan [Sat, 20 Nov 2010 10:57:44 +0000 (10:57 +0000)] 
Add extra tests for test_superlock.c.

FossilOrigin-Name: 1c4e58e7211522f0e7dfddd3a2b52f1d0c5421e7

14 years agoAdd tests for "PRAGMA checkpoint_fullfsync".
dan [Fri, 19 Nov 2010 18:48:10 +0000 (18:48 +0000)] 
Add tests for "PRAGMA checkpoint_fullfsync".

FossilOrigin-Name: 765aa1b862fa38cede89bafe0e10c094e0544b7e

14 years agoMerge in the superlock demonstration changes.
drh [Fri, 19 Nov 2010 18:36:44 +0000 (18:36 +0000)] 
Merge in the superlock demonstration changes.

FossilOrigin-Name: 570e79a8eb3bb2d2a15c46c55fbf52c9dd3e3ae8

14 years agoAdd the checkpoint_fullfsync pragma which enables F_FULLFSYNC on checkpoint
drh [Fri, 19 Nov 2010 18:23:35 +0000 (18:23 +0000)] 
Add the checkpoint_fullfsync pragma which enables F_FULLFSYNC on checkpoint
operations only, not during ordinary commit fsyncs.

FossilOrigin-Name: a069867301de3ca2e1753bd4d2e426d27365be4c

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