]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
13 years agoFix the multiplexor logging so that it works with SQLITE_ENABLE_8_3_NAMES. nx-devkit
drh [Wed, 4 Apr 2012 13:51:22 +0000 (13:51 +0000)] 
Fix the multiplexor logging so that it works with SQLITE_ENABLE_8_3_NAMES.

FossilOrigin-Name: 627eff32a23ec676f7e87f6904981b3804e0e1f0

13 years agoIn the multiplexor extension, improve the error logging when a chunk fails
drh [Wed, 4 Apr 2012 13:47:35 +0000 (13:47 +0000)] 
In the multiplexor extension, improve the error logging when a chunk fails
to open.

FossilOrigin-Name: e6806f0dc6a06796700d805952f95e2cc18f0ea3

13 years agoPort the command-line shell enhancements including the new --cmd option
drh [Tue, 7 Feb 2012 14:22:18 +0000 (14:22 +0000)] 
Port the command-line shell enhancements including the new --cmd option
to the nx-devkit branch.

FossilOrigin-Name: 81ce52afb1bdb55d4585f01e7fb3ab86f81b7512

13 years agoDo not rely on the _WIN32_WINNT macro as vs2005 does not define it by default.
drh [Mon, 30 Jan 2012 16:13:51 +0000 (16:13 +0000)] 
Do not rely on the _WIN32_WINNT macro as vs2005 does not define it by default.
Instead, always assume winNT unless the makefile explicitly sets
SQLITE_OS_WINNT=0.

FossilOrigin-Name: 4f0997c7fab79cb7f12cf30f5ea5c87ce96bc266

13 years agoCherrypick the FTS fix in [c05c3fd0d] into the nx-devkit branch.
drh [Wed, 25 Jan 2012 22:08:39 +0000 (22:08 +0000)] 
Cherrypick the FTS fix in [c05c3fd0d] into the nx-devkit branch.
Ticket [edb497982c].

FossilOrigin-Name: 2a7170f03c746473aca38ddc4b4a4091fe8331eb

13 years agoCherrypick the fix from [629108c8e5376f989] into the nx-devkit branch.
drh [Fri, 20 Jan 2012 15:05:05 +0000 (15:05 +0000)] 
Cherrypick the fix from [629108c8e5376f989] into the nx-devkit branch.

FossilOrigin-Name: d7374568cbce156523f5a6930e473ba2653c758b

13 years agoCherry-pick the fix to surplus overflow files in the multiplexor,
drh [Mon, 9 Jan 2012 14:57:38 +0000 (14:57 +0000)] 
Cherry-pick the fix to surplus overflow files in the multiplexor,
check-in [1238619756c0c] in the trunk.

FossilOrigin-Name: 2f8c62c3378a702fa623a2880a989d958eece0df

13 years agoCherry-pick the SQLITE_DIRECT_OVERFLOW_READ fix for ticket
drh [Wed, 21 Dec 2011 23:38:21 +0000 (23:38 +0000)] 
Cherry-pick the SQLITE_DIRECT_OVERFLOW_READ fix for ticket
[ac0ff496b7e3] of changes [c5256b59ad] and [c723e3e18a]
into the nx-devkit branch.

FossilOrigin-Name: 42f31f190a0ac971fa0ee361fe4c175f479c75e3

13 years agoTweaks to the way multiplexSubOpen() works, for backwards compatibility.
drh [Fri, 16 Dec 2011 05:50:39 +0000 (05:50 +0000)] 
Tweaks to the way multiplexSubOpen() works, for backwards compatibility.

FossilOrigin-Name: bb40338887c912be70cb6fe3b760d87c14bb88a5

13 years agoFix a potential infinite loop (inserted by the previous check-in)
drh [Fri, 16 Dec 2011 05:09:46 +0000 (05:09 +0000)] 
Fix a potential infinite loop (inserted by the previous check-in)
on the multiplexWrite() method of the multiplexor.

FossilOrigin-Name: 022bf427c2edfe494ec7c222f436953ff56574a6

13 years agoThe xTruncate method for the multiplexor now changes surplus overflow
drh [Fri, 16 Dec 2011 04:57:32 +0000 (04:57 +0000)] 
The xTruncate method for the multiplexor now changes surplus overflow
files to zero-length by default.  Or if the "truncate" query parameter
is used, it actually deletes the surplus overflow files.  This allows
VACUUM to shrink the database again.

FossilOrigin-Name: 5aefef04d6cc3b734c3f05e036b3869a52248f4d

13 years agoCall sqlite3_log() with an appropriate message if unable to find a unique
drh [Fri, 16 Dec 2011 01:30:15 +0000 (01:30 +0000)] 
Call sqlite3_log() with an appropriate message if unable to find a unique
master-journal filename.

FossilOrigin-Name: e9177f7d4ec19f0841d0613990d2fb5725700ba1

13 years agoA better solution to being unable to find a unique master-journal filename:
drh [Fri, 16 Dec 2011 01:21:31 +0000 (01:21 +0000)] 
A better solution to being unable to find a unique master-journal filename:
just delete an existing master-journal and reuse it.

FossilOrigin-Name: 2685c2b949061f18bf6a4940eac8c8148873abb6

13 years agoMake sure the antipenultimate character of master-journal filenames is a "9"
drh [Fri, 16 Dec 2011 00:33:04 +0000 (00:33 +0000)] 
Make sure the antipenultimate character of master-journal filenames is a "9"
in order to avoid collisions with other files in 8+3 filename mode.  Also,
limit the number of attempts at finding a unique master-journal filename.

FossilOrigin-Name: 34a0483605d36e6cf03065ed0df33fb1f7c8a272

13 years agoWhen deleting a file with the multiplexor VFS, also delete any overflow files that...
dan [Thu, 15 Dec 2011 17:00:10 +0000 (17:00 +0000)] 
When deleting a file with the multiplexor VFS, also delete any overflow files that exist.

FossilOrigin-Name: 3af1feaa35d3fb2e7be550cd32a727001b874938

13 years agoMake sure the chunksize in test_multiplex does not cause the pending byte
drh [Thu, 15 Dec 2011 13:29:12 +0000 (13:29 +0000)] 
Make sure the chunksize in test_multiplex does not cause the pending byte
to fall near the end of a chunk.  Adjust the chunksize upward as necessary
to prevent this.

FossilOrigin-Name: e05f8a2998f4f4cbdb65702baa65893c538b3d38

13 years agoFix some problems with dropped error codes in multiplexOpen().
dan [Thu, 15 Dec 2011 11:45:19 +0000 (11:45 +0000)] 
Fix some problems with dropped error codes in multiplexOpen().

FossilOrigin-Name: 2d50f78188e3297e8cefdf73cff51fa0a3b36e65

13 years agoIn the multiplexor, do not try to delete overflow files that do not exist.
drh [Thu, 15 Dec 2011 02:22:16 +0000 (02:22 +0000)] 
In the multiplexor, do not try to delete overflow files that do not exist.
And assume all but the last overflow file is the size of the chunk size.

FossilOrigin-Name: a822a80d3cfe42b2fca6f8c9ff11762993114a27

13 years agoMerge the VFSNAME file-control addition into the nx-devkit branch.
drh [Wed, 14 Dec 2011 18:28:18 +0000 (18:28 +0000)] 
Merge the VFSNAME file-control addition into the nx-devkit branch.

FossilOrigin-Name: 08c1dc517c1340737a55ad9012b7b06f72899c6f

13 years agoAdd a file-control that will discover the name of the bottom-level VFS and vfsname-filectrl
drh [Wed, 14 Dec 2011 17:53:36 +0000 (17:53 +0000)] 
Add a file-control that will discover the name of the bottom-level VFS and
all the shims in between.

FossilOrigin-Name: cdbfb553af02d10767a905489d9dfc57fc6be54e

13 years agoImprovements to comments. No code changes.
drh [Wed, 14 Dec 2011 01:38:12 +0000 (01:38 +0000)] 
Improvements to comments.  No code changes.

FossilOrigin-Name: 08bbbd8e38697908ab8ae0f6b512d01c32f7e4da

13 years agoAdd a hard limit to the number of chunks a multiplexed database may consist of if...
dan [Tue, 13 Dec 2011 19:03:34 +0000 (19:03 +0000)] 
Add a hard limit to the number of chunks a multiplexed database may consist of if ENABLE_8_3_NAMES is defined.

FossilOrigin-Name: 43a1264088c57bf598787b7a9f5d7a2536603d67

13 years agoChange the SQLITE_EXTRA_INIT routine to take a single argument which is a
drh [Tue, 13 Dec 2011 18:22:38 +0000 (18:22 +0000)] 
Change the SQLITE_EXTRA_INIT routine to take a single argument which is a
pointer to a string.  Call SQLITE_EXTRA_INIT with a NULL argument.
Fixes to multiplexor to treat the VFS properly in corner cases.  Fix the
initialization of multiplex3.test.

FossilOrigin-Name: 8e65b9132530e46c62bd1352bfc2e9c29f57af5f

13 years agoAdd extra tests for the multiplexor VFS. No changes to code.
dan [Tue, 13 Dec 2011 16:40:33 +0000 (16:40 +0000)] 
Add extra tests for the multiplexor VFS. No changes to code.

FossilOrigin-Name: c7de6f683d0fec62bc138b4a53b5cccc80c736c3

13 years agoUpdate the multiplex.test script to conform to that found in the "experimental"
drh [Tue, 13 Dec 2011 15:25:06 +0000 (15:25 +0000)] 
Update the multiplex.test script to conform to that found in the "experimental"
branch off of trunk.

FossilOrigin-Name: 2eb79efbff9cdab843b172e9fa9fb400c542fab1

13 years agoMove the multiplexor changes in the experimental branch
drh [Tue, 13 Dec 2011 15:02:54 +0000 (15:02 +0000)] 
Move the multiplexor changes in the experimental branch
(check-ins [255d21499b] and [199f52bced]) into the nx-devkit branch.

FossilOrigin-Name: eb95d2f72c625bcfd0f8e9db1db2cb8799854b57

13 years agoWhen an sqlite3_auto_extension() function fails, report back its actual
drh [Tue, 13 Dec 2011 04:08:36 +0000 (04:08 +0000)] 
When an sqlite3_auto_extension() function fails, report back its actual
error code, not the generic SQLITE_ERROR.

FossilOrigin-Name: ce55f250f56fa3a1ca864f81e9e86f911b981490

13 years agoWhen the multiplexor FileSize procedure fails to open the file, assume that
drh [Tue, 13 Dec 2011 02:41:13 +0000 (02:41 +0000)] 
When the multiplexor FileSize procedure fails to open the file, assume that
the file is zero bytes in size.

FossilOrigin-Name: dc8118cd89da71f2035c6ee07c0edb772bba2186

13 years agoAdd a compile-time shutdown procedure to be called by sqlite3_shutdown()
drh [Tue, 13 Dec 2011 01:34:21 +0000 (01:34 +0000)] 
Add a compile-time shutdown procedure to be called by sqlite3_shutdown()
to undo the effects of the compile-time initialization procedure.

FossilOrigin-Name: c2ed86f5945662a4ddcdc7b303df3f64fb3bf17d

13 years agoBackport a minimal set of changes needed to get 8+3 filenames and the
drh [Mon, 12 Dec 2011 20:01:12 +0000 (20:01 +0000)] 
Backport a minimal set of changes needed to get 8+3 filenames and the
multiplexor shim playing well together.

FossilOrigin-Name: c4e2ce486217c96373836bfe641f46abf891799a

13 years agoImprovements to the documentation of the sqlite3_db_filename() interface.
drh [Thu, 17 Nov 2011 11:49:58 +0000 (11:49 +0000)] 
Improvements to the documentation of the sqlite3_db_filename() interface.

FossilOrigin-Name: 1c45b2a0c055f6fc5da9d00ae2e9171099d904d4

13 years agoRestore the test for sqlite3OsFullPathname() failure that was mistakenly
drh [Thu, 17 Nov 2011 11:43:19 +0000 (11:43 +0000)] 
Restore the test for sqlite3OsFullPathname() failure that was mistakenly
removed when [ceee03c79a] was backed out by [69ec53fc1c].

FossilOrigin-Name: 4d3cf9e1d8ac356db5a708913f614e42a6a56b94

13 years agoAdd the sqlite3_db_filename() interface.
drh [Thu, 17 Nov 2011 00:56:20 +0000 (00:56 +0000)] 
Add the sqlite3_db_filename() interface.

FossilOrigin-Name: 93a947989b57959aacc37007a143fdf3921793ab

13 years agoBack out the [ceee03c79a] change.
drh [Wed, 16 Nov 2011 23:29:37 +0000 (23:29 +0000)] 
Back out the [ceee03c79a] change.

FossilOrigin-Name: 69ec53fc1c60b07bf4aaa983dcd5bf3164fb1ea5

13 years agoAdd the sqlite3_db_release_memory() interface and the shrink_memory pragma.
drh [Wed, 16 Nov 2011 19:29:17 +0000 (19:29 +0000)] 
Add the sqlite3_db_release_memory() interface and the shrink_memory pragma.

FossilOrigin-Name: 3f58e7c8895d1252eff56282c08b1a6f1194452c

13 years agoMerge the PCACHE2 changes into trunk.
drh [Wed, 16 Nov 2011 18:08:07 +0000 (18:08 +0000)] 
Merge the PCACHE2 changes into trunk.

FossilOrigin-Name: 457513f21f2438c61b1a214716e338a4e3eeaafa

13 years agoRemove code made obsolete by the changes to index processing that allow
drh [Wed, 16 Nov 2011 16:23:15 +0000 (16:23 +0000)] 
Remove code made obsolete by the changes to index processing that allow
range search on the rowid.

FossilOrigin-Name: a5418c7fc216a30abf7b2fa8c579aee586393a91

13 years agoFix an invalid assert() statement added by [3b58f5f066].
dan [Wed, 16 Nov 2011 15:41:29 +0000 (15:41 +0000)] 
Fix an invalid assert() statement added by [3b58f5f066].

FossilOrigin-Name: 888b09dd8fc0a31b69852a2c10eebb5f31fe35de

13 years agoWhere possible, take advantage of the rowid at the end of index records to optimize...
dan [Wed, 16 Nov 2011 15:27:09 +0000 (15:27 +0000)] 
Where possible, take advantage of the rowid at the end of index records to optimize range constraints (<, >, <=, >=) on the rowid column.

FossilOrigin-Name: 3b58f5f06648205a47e5cace0201269c406e476a

13 years agoUpdate memsubsys1.test to account for the recently increased size of the MemPage...
dan [Wed, 16 Nov 2011 08:18:20 +0000 (08:18 +0000)] 
Update memsubsys1.test to account for the recently increased size of the MemPage structure in btreeInt.h.

FossilOrigin-Name: 4fb3ca756a3a7c66baa4745a9b2c1e246a67c699

13 years agoForward port the 8-byte alignment fix from branch-3.7.9.
drh [Mon, 14 Nov 2011 03:00:28 +0000 (03:00 +0000)] 
Forward port the 8-byte alignment fix from branch-3.7.9.

FossilOrigin-Name: ebf6eb6ed756c0a3158b4cb5fb4b460c79d93c29

13 years agoFix a 8-byte alignment problem that causes a SIGBUS on Sparc.
drh [Mon, 14 Nov 2011 02:53:54 +0000 (02:53 +0000)] 
Fix a 8-byte alignment problem that causes a SIGBUS on Sparc.

FossilOrigin-Name: 54cc11981127b52145e39f551d958580b1d45169

13 years agoAdd a version number to the sqlite3_pcache_methods2 object. Other PCACHE2 experimental-pcache
drh [Sun, 13 Nov 2011 21:44:03 +0000 (21:44 +0000)] 
Add a version number to the sqlite3_pcache_methods2 object.  Other PCACHE2
documentation improvements.

FossilOrigin-Name: 9f839ac05a9f3cfe587d2ccdccd50dac41baedbe

13 years agoAttempt to modify btree.c so that it assumes that calls to sqlite3PagerWrite()
drh [Sat, 12 Nov 2011 23:10:13 +0000 (23:10 +0000)] 
Attempt to modify btree.c so that it assumes that calls to sqlite3PagerWrite()
will reallocate the page buffer.  As there is not good way to test this
assumption yet, probably a few spots were missed.

FossilOrigin-Name: ceee03c79a55ea39866758aa76b78b10e5f4246d

13 years agoRemove a couple of incorrect assert statements so that the test suite will
drh [Sat, 12 Nov 2011 16:46:55 +0000 (16:46 +0000)] 
Remove a couple of incorrect assert statements so that the test suite will
run with -DSQLITE_DEFAULT_CACHE_SIZE=0.

FossilOrigin-Name: 87614b62ace530761e0e1170ec5840b212735ec6

13 years agoMerge the windows xSyscall enhancements into trunk.
drh [Sat, 12 Nov 2011 15:41:52 +0000 (15:41 +0000)] 
Merge the windows xSyscall enhancements into trunk.

FossilOrigin-Name: c1fab9aca1fe1dda2b4c7e4fdc0a406998847bdb

13 years agoMake sure to flag benign malloc failures in the Windows VFS as such. Expand use... winSyscall
mistachkin [Sat, 12 Nov 2011 03:17:40 +0000 (03:17 +0000)] 
Make sure to flag benign malloc failures in the Windows VFS as such.  Expand use of the DO_OS_MALLOC_TEST to cover the VFS functions that can now return an out of memory error.  Support an experimental --match option to the test suite that will run only those tests matching the specified pattern.

FossilOrigin-Name: 76dec8aa9dbbc39e0a7c3b358b58ce7f7a477a2b

13 years agoCatch and report errors from sqlite3OsFullPathname().
drh [Fri, 11 Nov 2011 23:51:15 +0000 (23:51 +0000)] 
Catch and report errors from sqlite3OsFullPathname().

FossilOrigin-Name: 77119785c84ac7f416ed72c38c532399b6093d7a

13 years agoRemove use of malloc and free from the Windows VFS. Also, prevent sqlite3BtreeOpen...
mistachkin [Fri, 11 Nov 2011 23:31:04 +0000 (23:31 +0000)] 
Remove use of malloc and free from the Windows VFS.  Also, prevent sqlite3BtreeOpen from assuming that sqlite3OsFullPathname cannot fail.

FossilOrigin-Name: 8966ec1797be63d1305628d459bdad5be08cf3ca

13 years agoWork in progress to implement the 'syscall' functionality for Windows.
mistachkin [Fri, 11 Nov 2011 22:08:54 +0000 (22:08 +0000)] 
Work in progress to implement the 'syscall' functionality for Windows.

FossilOrigin-Name: ed88fb00240de75457c0da19e87c12082622ca17

13 years agoPull over all the latest changes from trunk.
drh [Fri, 11 Nov 2011 14:12:36 +0000 (14:12 +0000)] 
Pull over all the latest changes from trunk.

FossilOrigin-Name: 1bbbf8574a820c5f787a937f02a8e2a91264ace0

13 years agoMake sure a corrupt index does not cause a buffer overread in
drh [Fri, 11 Nov 2011 00:27:15 +0000 (00:27 +0000)] 
Make sure a corrupt index does not cause a buffer overread in
sqlite3VdbeRecordCompare().

FossilOrigin-Name: 471cf0d8e7857110e525e029c2d535cb518dba6a

13 years agoExpand passing of a last error argument to the getLastErrorMsg function. Also, remov...
mistachkin [Thu, 10 Nov 2011 21:45:06 +0000 (21:45 +0000)] 
Expand passing of a last error argument to the getLastErrorMsg function.  Also, remove unused SQLITE_W32_THREADS define.

FossilOrigin-Name: 8f28797984c1d4700357a75815ca4b324c3ebf5c

13 years agoIn winAccess, save the Win32 last error value prior to invoking user logging callback...
mistachkin [Thu, 10 Nov 2011 20:21:20 +0000 (20:21 +0000)] 
In winAccess, save the Win32 last error value prior to invoking user logging callback.  Also, explicitly pass the Win32 last error value to winLogError in order to keep it accurate.  Fixes a problem reported on the mailing list.

FossilOrigin-Name: 32ab365715e2c50f30aa2f92a323857b9d917bf6

13 years agoFollow-on to the previous check-in to prevent a division by zero if the
drh [Thu, 10 Nov 2011 02:39:28 +0000 (02:39 +0000)] 
Follow-on to the previous check-in to prevent a division by zero if the
lookahead slot size is something goofy like 6 on a 32-bit machine.

FossilOrigin-Name: 6bda711f93e753dd0be8d896a007b3f7b5064787

13 years agoUse sqlite3MallocSize() to get the actual size of the memory allocation
drh [Thu, 10 Nov 2011 02:24:11 +0000 (02:24 +0000)] 
Use sqlite3MallocSize() to get the actual size of the memory allocation
used for lookaside cache and increase the size of the cache to use the
full allocation.

FossilOrigin-Name: 0e53ecad9468d0a13d155a4462551d4c234a7d5c

13 years agoOmit an unnecessary Sleep() call in windows pending-lock retry
drh [Wed, 9 Nov 2011 18:07:34 +0000 (18:07 +0000)] 
Omit an unnecessary Sleep() call in windows pending-lock retry
logic.  Enhance the comment on that logic to discourage people
from copying it into other VFSes.

FossilOrigin-Name: 0c951a970436725b6bbd64568de500f7a4e6460b

13 years agoWhen compiling with MSVC, use the _msize function.
mistachkin [Wed, 9 Nov 2011 17:01:40 +0000 (17:01 +0000)] 
When compiling with MSVC, use the _msize function.

FossilOrigin-Name: 797a147934743a565c6f1f9dd4d41574690b4c2b

13 years agoMinor changes needed to restore full branch test coverage.
drh [Wed, 9 Nov 2011 16:12:24 +0000 (16:12 +0000)] 
Minor changes needed to restore full branch test coverage.

FossilOrigin-Name: bc10a753579b65ba4604867204b7b3d8383f3ac7

13 years agoA negative value N for the cache_size pragma adjusts the number of cache
drh [Wed, 9 Nov 2011 14:23:04 +0000 (14:23 +0000)] 
A negative value N for the cache_size pragma adjusts the number of cache
pages to use approximately N kibibytes of memory.

FossilOrigin-Name: b3faa680aedc94ed8aa2819228c0d304b181cc51

13 years agoFor the mem1.c system malloc implementation, use the malloc_usable_size()
drh [Wed, 9 Nov 2011 01:53:25 +0000 (01:53 +0000)] 
For the mem1.c system malloc implementation, use the malloc_usable_size()
function if the HAVE_MALLOC_USABLE_SIZE macro is defined.  Update autoconf
to look for that function when configuring.

FossilOrigin-Name: 2e8ab3cedfebc33a831837792b523d1aa7cdc6b7

13 years agoUpdate the API documentation for the new pcache2 interface. Change the
drh [Wed, 9 Nov 2011 00:06:05 +0000 (00:06 +0000)] 
Update the API documentation for the new pcache2 interface.  Change the
order of parameters on the xCreate method of pcache2.

FossilOrigin-Name: 4da7095683ec821414e255419d63a24dbd9d726d

13 years agoExperimental change to the pcache interface to allow page buffers to be allocated...
dan [Tue, 8 Nov 2011 20:08:44 +0000 (20:08 +0000)] 
Experimental change to the pcache interface to allow page buffers to be allocated separately from their associated container structures.

FossilOrigin-Name: c275c9d323cb1dccb031b199d413ac3a0b244fea

13 years agoMake the unix VFS tolerant of read() calls that return less than the
drh [Mon, 7 Nov 2011 18:16:00 +0000 (18:16 +0000)] 
Make the unix VFS tolerant of read() calls that return less than the
requested number of bytes.

FossilOrigin-Name: a210695abcfa5cb04279edfd04824d881b7c4ada

13 years agoAmplify the restriction on commit-hooks that they cannot recursively
drh [Mon, 7 Nov 2011 17:54:26 +0000 (17:54 +0000)] 
Amplify the restriction on commit-hooks that they cannot recursively
run SQL on the same database connection.

FossilOrigin-Name: 4fe5b73115a8b44950767f1b528107261d7312c9

13 years agoAdd a makefile target for tclsqlite3.c to Makefile.in.
drh [Mon, 7 Nov 2011 16:46:43 +0000 (16:46 +0000)] 
Add a makefile target for tclsqlite3.c to Makefile.in.

FossilOrigin-Name: f521b6b7e42c82f09a91df5a5acf4e46c860e72a

13 years agoChange the default file format from 1 to 4. This means that, unless
drh [Mon, 7 Nov 2011 13:05:23 +0000 (13:05 +0000)] 
Change the default file format from 1 to 4.  This means that, unless
PRAGMA legacy_file_format=ON is used first,
new databases will not be readable by versions prior to 3.3.0 (2006-01-10).

FossilOrigin-Name: a35f52b1ad22c2ad49fb1083f892b92c72da348c

13 years agoMove function sqlite3PagerClearCache() out of the "ifndef SQLITE_OMIT_WAL" block...
dan [Sun, 6 Nov 2011 05:06:13 +0000 (05:06 +0000)] 
Move function sqlite3PagerClearCache() out of the "ifndef SQLITE_OMIT_WAL" block and into an "ifndef SQLITE_OMIT_VACUUM" block.

FossilOrigin-Name: 5dbfaed8c3e09ea35033dacf6faa3d6a0202cc68

13 years agoUpdate the xfer optimization code so that the xfer optimization can be used
drh [Fri, 4 Nov 2011 14:36:02 +0000 (14:36 +0000)] 
Update the xfer optimization code so that the xfer optimization can be used
with INTEGER PRIMARY KEY ON CONFLICT ... as long as the destination table
is initially empty.  Improvements to the comments on the xfer optimization.
New test cases added.

FossilOrigin-Name: e3f368cd5ef66a56fd4bd05a77276039e26b9e0e

13 years agoChange a memcpy() in sqlite3FileSuffix() to memmove() on the grounds that the source...
dan [Fri, 4 Nov 2011 12:05:52 +0000 (12:05 +0000)] 
Change a memcpy() in sqlite3FileSuffix() to memmove() on the grounds that the source and destination may overlap.

FossilOrigin-Name: 5e1d247e5b3b5dcf6763f01002e996786db48152

13 years agoAdd a missing va_end() macro to fts3.c.
dan [Fri, 4 Nov 2011 10:37:21 +0000 (10:37 +0000)] 
Add a missing va_end() macro to fts3.c.

FossilOrigin-Name: e6f825748a1d510c8f5529c79656bb5db9216231

13 years agoUse mkdir() and rmdir() rather than open() and unlink() to create the lock
drh [Fri, 4 Nov 2011 02:24:02 +0000 (02:24 +0000)] 
Use mkdir() and rmdir() rather than open() and unlink() to create the lock
files with the unix-dotlock VFS.  The change is backwards compatible and,
we are told, works better on some network filesystems.

FossilOrigin-Name: e2f08426d7a84a2ac6148f485b7af377201a175b

13 years agoEnhance the shell so that the ".schema" command works with case insensitive
drh [Fri, 4 Nov 2011 00:35:56 +0000 (00:35 +0000)] 
Enhance the shell so that the ".schema" command works with case insensitive
LIKE patterns even with PRAGMA cache_sensitive_like=ON.

FossilOrigin-Name: b06bf3b3605a3c39cdfbb76c9a9f6b5202bb95ec

13 years agoMake sure the INSERT INTO ... SELECT statement works correctly even when
drh [Fri, 4 Nov 2011 00:23:53 +0000 (00:23 +0000)] 
Make sure the INSERT INTO ... SELECT statement works correctly even when
the destination table contains an INTEGER PRIMARY KEY ON CONFLICT... column.
Ticket [676bc02b87176125].

FossilOrigin-Name: 6f9898db7ff0730cc03f561f9c32ef3dee7e5d81

13 years agoVersion 3.7.9 version-3.7.9
drh [Tue, 1 Nov 2011 00:52:41 +0000 (00:52 +0000)] 
Version 3.7.9

FossilOrigin-Name: c7c6050ef060877ebe77b41d959e9df13f8c9b5e

13 years agoFix a typo in a comment. No code changes.
drh [Mon, 31 Oct 2011 12:25:01 +0000 (12:25 +0000)] 
Fix a typo in a comment.  No code changes.

FossilOrigin-Name: 6635cd9a7714b681dd8aa96e90be462a40d10178

13 years agoAdd new file ext/fts3/README.content, describing the experimental FTS4 content option.
dan [Mon, 31 Oct 2011 11:36:29 +0000 (11:36 +0000)] 
Add new file ext/fts3/README.content, describing the experimental FTS4 content option.

FossilOrigin-Name: 13a9d085e1a5654a97b8d26bae7182ca6c0c237b

13 years agoUpdate fts3fault.test to account for the sqlite3_errmsg() related changes in [8f88cc4...
dan [Mon, 31 Oct 2011 06:52:51 +0000 (06:52 +0000)] 
Update fts3fault.test to account for the sqlite3_errmsg() related changes in [8f88cc4e61] and [dcb7879347].

FossilOrigin-Name: 3f2d49c6786beb6ff9d56376364ebc6cd9136346

13 years agoUpdate fkey_malloc.test to account for the sqlite3_errmsg() related changes in [8f88c...
dan [Sat, 29 Oct 2011 19:25:08 +0000 (19:25 +0000)] 
Update fkey_malloc.test to account for the sqlite3_errmsg() related changes in [8f88cc4e61] and [dcb7879347].

FossilOrigin-Name: 5b82ec6fbbd2f4195ad06dd911de3817373ad5bf

13 years agoAdd a test for [48f29963] that does not depend on FTS.
dan [Sat, 29 Oct 2011 15:29:43 +0000 (15:29 +0000)] 
Add a test for [48f29963] that does not depend on FTS.

FossilOrigin-Name: fb15f5458eb3e17ce9795c09bffe1224fea0eecd

13 years agoFix some code formatting in sqlite3Ext.h to avoid lines longer than 80
drh [Sat, 29 Oct 2011 12:42:31 +0000 (12:42 +0000)] 
Fix some code formatting in sqlite3Ext.h to avoid lines longer than 80
characters.

FossilOrigin-Name: 3ec20c3020e1bb5ec2815848af75cf4847a218e5

13 years agoAvoid attempting to call savepoint related methods on deleted sqlite3_vtab objects...
dan [Sat, 29 Oct 2011 11:43:04 +0000 (11:43 +0000)] 
Avoid attempting to call savepoint related methods on deleted sqlite3_vtab objects. Fix for [48f299634a].

FossilOrigin-Name: 3565fcf898960d7a23d23a2f363b039b2e29447b

13 years agoAvoid reporting a NOMEM error if a memory allocation fails while copying
drh [Sat, 29 Oct 2011 01:33:24 +0000 (01:33 +0000)] 
Avoid reporting a NOMEM error if a memory allocation fails while copying
the error message from a prepared statement into the database connection.

FossilOrigin-Name: dcb78793474e533c3e4f5c6389ba3c997f062eee

13 years agoIf an error occurs within sqlite3_step() on a statement prepared using sqlite3_prepar...
dan [Thu, 27 Oct 2011 15:19:58 +0000 (15:19 +0000)] 
If an error occurs within sqlite3_step() on a statement prepared using sqlite3_prepare_v2(), transfer both the error code and error message to the database handle before sqlite3_step() returns (so that they are available via sqlite3_errcode() and sqlite3_errmsg(). Prior to this commit, only the error code was transfered. The error message was not available until after either sqlite3_reset() or sqlite3_finalize() had been called on the statement handle.

FossilOrigin-Name: 8f88cc4e616b4b30ed349f89e148f782da5cb6c4

13 years agoAvoid a harmless reference to an uninitialized variable following an
drh [Sat, 22 Oct 2011 21:00:46 +0000 (21:00 +0000)] 
Avoid a harmless reference to an uninitialized variable following an
error in FTS3.  This is not a bug.  The change is to silence a valgrind
warning.

FossilOrigin-Name: d980c5b22fd700afb3cac5de5501c9350f2f589e

13 years agoPurge lingering references to SQLITE_STAT2 from the code and test scripts.
drh [Fri, 21 Oct 2011 19:06:32 +0000 (19:06 +0000)] 
Purge lingering references to SQLITE_STAT2 from the code and test scripts.

FossilOrigin-Name: aed2bf7a3c828a7191389b3f8235a9387977b476

13 years agoRemove stale requirements marks from the query planner.
drh [Fri, 21 Oct 2011 16:47:31 +0000 (16:47 +0000)] 
Remove stale requirements marks from the query planner.

FossilOrigin-Name: 76de9914bed11abda3898928633ad09d5a284f84

13 years agoIf an error occurs while writing to the database file during a VACUUM, discard the...
dan [Fri, 21 Oct 2011 14:27:32 +0000 (14:27 +0000)] 
If an error occurs while writing to the database file during a VACUUM, discard the contents of the in-memory cache. This is required as if the database is a zipvfs database, the contents of the cache may be inconsistent with respect to the database as stored on disk.

FossilOrigin-Name: 07159e84b40b01fa40cac5fad1f433888e5984f8

13 years agoFix an issue with finding the access permissions of journal files when
drh [Thu, 20 Oct 2011 18:23:35 +0000 (18:23 +0000)] 
Fix an issue with finding the access permissions of journal files when
8+3 filenames are in use.

FossilOrigin-Name: 2b35c5144ddcc2ed6d0fcaa8c0ba5d20b9487be7

13 years agoEnhancements to the omittest.tcl script used to verify that the
drh [Thu, 20 Oct 2011 00:55:54 +0000 (00:55 +0000)] 
Enhancements to the omittest.tcl script used to verify that the
SQLITE_OMIT compile-time options are working.

FossilOrigin-Name: 4344483f7d7f64dffadde0053e6c745948db9486

13 years agoFix harmless compiler warnings in FTS4.
drh [Wed, 19 Oct 2011 18:21:47 +0000 (18:21 +0000)] 
Fix harmless compiler warnings in FTS4.

FossilOrigin-Name: 1af4a25631c4077a9bfc64e15eb92fbf5146c89c

13 years agoFix comments on SQLITE_CONFIG_HEAP so that they do not interfere with the
drh [Wed, 19 Oct 2011 17:13:08 +0000 (17:13 +0000)] 
Fix comments on SQLITE_CONFIG_HEAP so that they do not interfere with the
requirements scanner.

FossilOrigin-Name: a3151ce15c256219646013d695b6e162e306cef8

13 years agoMerge the fts4-content branch with the trunk.
dan [Wed, 19 Oct 2011 16:20:40 +0000 (16:20 +0000)] 
Merge the fts4-content branch with the trunk.

FossilOrigin-Name: 8a4077057ddeb08e8edc5f20a75abaaba7a278ba

13 years agoHave FTS3 ignore ^ prefixes. The ^ syntax is only supported on FTS4 tables. fts4-content
dan [Wed, 19 Oct 2011 15:52:48 +0000 (15:52 +0000)] 
Have FTS3 ignore ^ prefixes. The ^ syntax is only supported on FTS4 tables.

FossilOrigin-Name: df36ac948179f37b432a88701b6c79299e073ce8

13 years agoChange the way ^ tokens work in FTS so that the filtering is done as part of reading...
dan [Wed, 19 Oct 2011 11:57:13 +0000 (11:57 +0000)] 
Change the way ^ tokens work in FTS so that the filtering is done as part of reading the FTS index instead of waiting until an entire doclist has been retrieved and then filtering it.

FossilOrigin-Name: 9b58c59eb4efaa38ce50a3ce1b52f9ba578c71d6

13 years agoAdd tests for FTS ^ searches and matchinfo().
dan [Wed, 19 Oct 2011 10:18:01 +0000 (10:18 +0000)] 
Add tests for FTS ^ searches and matchinfo().

FossilOrigin-Name: 92618c1463fb304cf8057d082b2c7096152dff27

13 years agoFix a problem in FTS to do with ^ tokens and the snippet() function.
dan [Wed, 19 Oct 2011 09:40:49 +0000 (09:40 +0000)] 
Fix a problem in FTS to do with ^ tokens and the snippet() function.

FossilOrigin-Name: 2c03b24f4cc6f2c28c9d5b9984320d41b8486c32

13 years agoFix the virtual table rename logic so that it works even if the database
drh [Tue, 18 Oct 2011 22:07:47 +0000 (22:07 +0000)] 
Fix the virtual table rename logic so that it works even if the database
encoding is something other than UTF8.
Ticket [8290242b2a9a81683]

FossilOrigin-Name: d65f63531c3f8e3e55e656f049240714a3d7433f

13 years agoIf a token within an FTS query is prefixed with a '^' character, it must be the first...
dan [Tue, 18 Oct 2011 19:39:41 +0000 (19:39 +0000)] 
If a token within an FTS query is prefixed with a '^' character, it must be the first token in a column of data to match.

FossilOrigin-Name: 63ac33c860eb32ce96699f06bf83121cec2ffaca

13 years agoFix an uninitialized variable in OR-clause processing.
drh [Tue, 18 Oct 2011 19:14:33 +0000 (19:14 +0000)] 
Fix an uninitialized variable in OR-clause processing.

FossilOrigin-Name: 54aecd929867606d14a062b501abbfb6f5f05e37