]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
11 years agoPerformance enhancement in sqlite3PutVarint().
drh [Fri, 22 Aug 2014 18:48:25 +0000 (18:48 +0000)] 
Performance enhancement in sqlite3PutVarint().

FossilOrigin-Name: a929be551924144c9bc7aab608404d59e479abb5

11 years agoSplit the sqlite3Error() routine into sqlite3Error() and
drh [Fri, 22 Aug 2014 18:00:11 +0000 (18:00 +0000)] 
Split the sqlite3Error() routine into sqlite3Error() and
sqlite3ErrorWithMsg(), for a slight size reduction and performance increase.

FossilOrigin-Name: cf561d1f0bb60b3d638632d20bd686dda4fa4a04

11 years agoPerformance improvement in the printf() logic by avoiding unnecessary stack
drh [Fri, 22 Aug 2014 15:40:20 +0000 (15:40 +0000)] 
Performance improvement in the printf() logic by avoiding unnecessary stack
pointer movement.

FossilOrigin-Name: f7f2160db014f0ae11ad13c8ad70ad3444124e3e

11 years agoImprove the performance and reduce the size of the sqlite3VdbeSerialGet()
drh [Fri, 22 Aug 2014 15:19:59 +0000 (15:19 +0000)] 
Improve the performance and reduce the size of the sqlite3VdbeSerialGet()
routine by avoiding the use of stack.

FossilOrigin-Name: ebc10e46c15017d7cd232b5f4f3ef67ef740d87f

11 years agoHandle the 4-byte integer case in the stackless routine.
drh [Fri, 22 Aug 2014 14:56:13 +0000 (14:56 +0000)] 
Handle the 4-byte integer case in the stackless routine.

FossilOrigin-Name: 3f55484e81000c75e231f5580632a68e782ded4f

11 years agoGet the sqlite3VdbeSerialGet() routine to run faster by avoiding the use
drh [Fri, 22 Aug 2014 14:34:05 +0000 (14:34 +0000)] 
Get the sqlite3VdbeSerialGet() routine to run faster by avoiding the use
of local variables.

FossilOrigin-Name: 8267d82174099e548a4f78d06af0c6324c89b83d

11 years agoChange a while-loop into a do-loop in sqlite3VdbeSerialPut() for a small
drh [Fri, 22 Aug 2014 13:22:32 +0000 (13:22 +0000)] 
Change a while-loop into a do-loop in sqlite3VdbeSerialPut() for a small
size reduction and performance improvement.

FossilOrigin-Name: 750bb0a0960606ab24037e0992e9f7a17524cc3e

11 years agoEnhance the spellfix extension with the ability to specify a rowid when
drh [Fri, 22 Aug 2014 11:11:30 +0000 (11:11 +0000)] 
Enhance the spellfix extension with the ability to specify a rowid when
inserting new rows.

FossilOrigin-Name: 369c480cda6fa66394b995346bbf51f3298446e1

11 years agoSimplify the interface to the symbol table, saving 600 bytes of code space.
drh [Thu, 21 Aug 2014 20:26:37 +0000 (20:26 +0000)] 
Simplify the interface to the symbol table, saving 600 bytes of code space.

FossilOrigin-Name: 14b0f561fe15622b61c6676c9c455dca6b9ba5f0

11 years agoFor sqlite3_win32_is_nt(), assume WinRT is NT-based.
mistachkin [Thu, 21 Aug 2014 19:11:17 +0000 (19:11 +0000)] 
For sqlite3_win32_is_nt(), assume WinRT is NT-based.

FossilOrigin-Name: 2f59e71fbf31d2bd788d11197943b2ff3f4046e1

11 years agoMerge all recent trunk changes, especially the fix for
drh [Thu, 21 Aug 2014 16:09:36 +0000 (16:09 +0000)] 
Merge all recent trunk changes, especially the fix for
ticket [369d57fb8e5ccdff06f1], but also the skip-scan improvement and
performance improvements in the b-tree code.

FossilOrigin-Name: 0b9e2c3269695713b538561d999c68097db70f0c

11 years agoFix a faulty assert() statement. Add comments to clarify the behavior of
drh [Thu, 21 Aug 2014 14:10:23 +0000 (14:10 +0000)] 
Fix a faulty assert() statement.  Add comments to clarify the behavior of
the sqlite3OpenTableAndIndices() routine in insert.c.  Add test cases to
verify that the assert() statement is not firing inappropriately.
Ticket [369d57fb8e5ccdff06f1].

FossilOrigin-Name: 7029b3404d3f5f698a496934f3a3f2972051b257

11 years agoIncrease the version number to 3.8.7
drh [Wed, 20 Aug 2014 23:42:50 +0000 (23:42 +0000)] 
Increase the version number to 3.8.7

FossilOrigin-Name: 91594aae0725388765070c80039dfe1bf126392d

11 years agoEnhancements to skip-scan such that it is operable when a middle column of
drh [Wed, 20 Aug 2014 23:38:07 +0000 (23:38 +0000)] 
Enhancements to skip-scan such that it is operable when a middle column of
an index is skipped while the left-most column is constrained in the WHERE
clause.

FossilOrigin-Name: bc985caa7816f1f873ad8e4467c5278399f315ce

11 years agoA small performance improvement in freeSpace() by special-casing the
drh [Wed, 20 Aug 2014 18:43:44 +0000 (18:43 +0000)] 
A small performance improvement in freeSpace() by special-casing the
relatively common case of an empty freelist.

FossilOrigin-Name: 49f44d355ff70744e4951baca2481c7c2b6c02b3

11 years agoReimplement the freeSpace() routine in btree.c so that it runs faster.
drh [Wed, 20 Aug 2014 17:56:27 +0000 (17:56 +0000)] 
Reimplement the freeSpace() routine in btree.c so that it runs faster.

FossilOrigin-Name: fe4fd014b42b7b158ca968f1535b5636c67769f6

11 years agoRefactor local variable names in the freeSpace() routine of btree.c for
drh [Wed, 20 Aug 2014 14:37:09 +0000 (14:37 +0000)] 
Refactor local variable names in the freeSpace() routine of btree.c for
improved understandability.

FossilOrigin-Name: 7e63089a191f29aefde05e89bb612f3036cfa034

11 years agoSize reduction and performance improvements in btree.c and the
drh [Wed, 20 Aug 2014 13:35:45 +0000 (13:35 +0000)] 
Size reduction and performance improvements in btree.c and the
allocateSpace() routine.  Also fix an assert() in freeSpace().

FossilOrigin-Name: 121308fa869ad490a6924798d276c0ff32759acc

11 years agoAdd SQLITE_API macros in front of interface routines in the test_intarray.c
drh [Wed, 20 Aug 2014 13:25:06 +0000 (13:25 +0000)] 
Add SQLITE_API macros in front of interface routines in the test_intarray.c
extension.

FossilOrigin-Name: eea0661798e10018615854c871f24be0f8bb2ff9

11 years agoChange an assert() added by the previous commit into a testcase(). btree-speedup
drh [Wed, 20 Aug 2014 13:17:43 +0000 (13:17 +0000)] 
Change an assert() added by the previous commit into a testcase().
Fix a separate assert() in btree.c:freeSpace().

FossilOrigin-Name: fe51d3aa0ce7021213293a0647e31164073e78f7

11 years agoFurther size reduction and performance improvement in btree.c:allocateSpace().
drh [Wed, 20 Aug 2014 11:56:14 +0000 (11:56 +0000)] 
Further size reduction and performance improvement in btree.c:allocateSpace().

FossilOrigin-Name: 1cb1cd64930a6bc371143f7d2e77eb1c51498cb0

11 years agoFix a typo in the showdb usage message.
dan [Wed, 20 Aug 2014 10:42:16 +0000 (10:42 +0000)] 
Fix a typo in the showdb usage message.

FossilOrigin-Name: 6c66beae97ba1799c908d3a33371dedbc7f3f58c

11 years agoMinor performance improvement and size reduction for the btree-page space
drh [Wed, 20 Aug 2014 00:54:46 +0000 (00:54 +0000)] 
Minor performance improvement and size reduction for the btree-page space
allocator.

FossilOrigin-Name: 73637d12e31f5489efe37d8cf4ab50a1911d4c75

11 years agoModify the memsubsys1-3.1.4 test so that it does not fail arbitrarily due
drh [Tue, 19 Aug 2014 23:04:49 +0000 (23:04 +0000)] 
Modify the memsubsys1-3.1.4 test so that it does not fail arbitrarily due
to variations in the behavior of system malloc().

FossilOrigin-Name: d280157da0b5275f3e3c875d2dcfb9998d374ac0

11 years agoA better fix for the sqlite3_trace() problem.
drh [Tue, 19 Aug 2014 20:41:36 +0000 (20:41 +0000)] 
A better fix for the sqlite3_trace() problem.
Ticket [11d5aa455e0d98f3c1e6a]

FossilOrigin-Name: 44d5bd4cc3f76e9a151ba0abae1092bd184af264

11 years agoMake sure the sqlite3_trace() callback is invoked, even if the prepared
drh [Tue, 19 Aug 2014 20:27:40 +0000 (20:27 +0000)] 
Make sure the sqlite3_trace() callback is invoked, even if the prepared
statement was marked "expired" before it ever entered sqlite3_step().
Ticket [11d5aa455e0d98f3c1e6a08].

FossilOrigin-Name: 0d4d3df4bc5e75ce1543b5539a1e9e279d2a062f

11 years agoImprovements to output formatting with the ".trace" command in the
drh [Tue, 19 Aug 2014 19:28:00 +0000 (19:28 +0000)] 
Improvements to output formatting with the ".trace" command in the
command-line shell.

FossilOrigin-Name: d09d63c07748839e9b778a769b183bdd614c6c13

11 years agoMinor changes to do with the Tcl tea extension package autoconf system.
dan [Tue, 19 Aug 2014 09:15:41 +0000 (09:15 +0000)] 
Minor changes to do with the Tcl tea extension package autoconf system.

FossilOrigin-Name: f10a6111262ce6ee6984c64fa0e0023642eca27d

11 years agoDisable the hook-7.5.2 tests when using sessions, since that are not correct
drh [Tue, 19 Aug 2014 00:33:22 +0000 (00:33 +0000)] 
Disable the hook-7.5.2 tests when using sessions, since that are not correct
in that case.

FossilOrigin-Name: 6d5b9332e8d8bb572ac98b0f4e47e59ad12aac26

11 years agoImproved response to error conditions in the ".session" shell command and
drh [Tue, 19 Aug 2014 00:26:17 +0000 (00:26 +0000)] 
Improved response to error conditions in the ".session" shell command and
in the "changeset" command-line program.

FossilOrigin-Name: b69f7dd1f35846c3bb9f4f160d50c4f03796f887

11 years agoFix the autoconf and MSVC makefiles so that they construct the changeset
drh [Mon, 18 Aug 2014 20:23:29 +0000 (20:23 +0000)] 
Fix the autoconf and MSVC makefiles so that they construct the changeset
command-line utility upon request.  Delete that utility program when
"make clean" is run.

FossilOrigin-Name: 4dc15fe066f079ff31c89a5e0242dd5b3c851d29

11 years agoFix a harmless compiler warning in the sessionAppendDelete() function.
drh [Mon, 18 Aug 2014 20:14:30 +0000 (20:14 +0000)] 
Fix a harmless compiler warning in the sessionAppendDelete() function.

FossilOrigin-Name: 1324d08d0c639378cf1b03bd6410db81947747ac

11 years agoAdd the "changeset" command-line tool for analyzing and manipulating
drh [Mon, 18 Aug 2014 20:08:25 +0000 (20:08 +0000)] 
Add the "changeset" command-line tool for analyzing and manipulating
changesets in files on disk.  Add the ".session" command to the command-line
tool.

FossilOrigin-Name: 31addb627fdbaeb908e0611ad82f6db7537428ea

11 years agoA reasonably complete implementation of the "changeset" command-line tool sessions_from_cli
drh [Mon, 18 Aug 2014 20:01:31 +0000 (20:01 +0000)] 
A reasonably complete implementation of the "changeset" command-line tool
and the ".sessions" command in the command-line shell.

FossilOrigin-Name: 7b12f1f9c012f33d376242920583807b014b3287

11 years agoAdd an "automerge=0" mode that disables auto-merging and falls back to fts4-style...
dan [Mon, 18 Aug 2014 19:30:01 +0000 (19:30 +0000)] 
Add an "automerge=0" mode that disables auto-merging and falls back to fts4-style crisis merges.

FossilOrigin-Name: 2397404e152b908d838e6491294b263b05943b3f

11 years agoAdd the "changeset" command-line utility for getting an ASCII dump of
drh [Mon, 18 Aug 2014 17:56:31 +0000 (17:56 +0000)] 
Add the "changeset" command-line utility for getting an ASCII dump of
change sets.

FossilOrigin-Name: 55bb3544a6b474c04853270067a35ca4b0079f52

11 years agoAdd miscellaneous test cases to improve coverage of sessions module.
dan [Mon, 18 Aug 2014 16:03:46 +0000 (16:03 +0000)] 
Add miscellaneous test cases to improve coverage of sessions module.

FossilOrigin-Name: 0fac6cfffe628ea02c78ebad065307309ec9eaa1

11 years agoBegin adding commands to the command-line interface for interacting with
drh [Mon, 18 Aug 2014 15:08:26 +0000 (15:08 +0000)] 
Begin adding commands to the command-line interface for interacting with
the sessions extension.  This is the first check-in of a work-in-progress.

FossilOrigin-Name: c2fcf0b9f4bdc48dfc6530bda4f531b94a833207

11 years agoMerge the latest trunk changes, and in particular the refactoring of the
drh [Mon, 18 Aug 2014 13:48:41 +0000 (13:48 +0000)] 
Merge the latest trunk changes, and in particular the refactoring of the
object names in the command-line shell.

FossilOrigin-Name: 419d286a2fc465f6e0f9662909d0cc52a18eefa4

11 years agoRefactor the names of state objects in the command-line shell implementation..
drh [Mon, 18 Aug 2014 13:45:42 +0000 (13:45 +0000)] 
Refactor the names of state objects in the command-line shell implementation..

FossilOrigin-Name: 11a70e1ae7f05d06e4e09c9d20db0444b8881584

11 years agoAdd tests for sessions module.
dan [Mon, 18 Aug 2014 08:42:36 +0000 (08:42 +0000)] 
Add tests for sessions module.

FossilOrigin-Name: 82fdb1975f5b29a751089a8582713372999ae56e

11 years agoFix some missing and out-of-date comments in the sessions module.
dan [Sat, 16 Aug 2014 19:01:00 +0000 (19:01 +0000)] 
Fix some missing and out-of-date comments in the sessions module.

FossilOrigin-Name: 05c1d9149b27c68e2654ed28491722927d2176f5

11 years agoFixes for the sqlite3changeset_concat() API regarding patchsets.
dan [Sat, 16 Aug 2014 16:47:55 +0000 (16:47 +0000)] 
Fixes for the sqlite3changeset_concat() API regarding patchsets.

FossilOrigin-Name: dccb34859508eac8146ae5b19c447673d04be3b0

11 years agoBegin adding the sqlite3session_patchset() API to the sessions extension. This is...
dan [Fri, 15 Aug 2014 20:15:49 +0000 (20:15 +0000)] 
Begin adding the sqlite3session_patchset() API to the sessions extension. This is an interim commit.

FossilOrigin-Name: 60a4565a8c44762a002cd02979317df5ca47e899

11 years agoFix compiler warnings on WinCE.
drh [Fri, 15 Aug 2014 16:13:07 +0000 (16:13 +0000)] 
Fix compiler warnings on WinCE.

FossilOrigin-Name: 28a379fcd43389ad3249eff51a621d0bb7c81640

11 years agoMerge the 3.8.6 release into the threads branch.
drh [Fri, 15 Aug 2014 15:46:21 +0000 (15:46 +0000)] 
Merge the 3.8.6 release into the threads branch.

FossilOrigin-Name: 05807c4122505567ec64fb2d142077f48a0a10b1

11 years agoUpdate the sessions branch for version 3.8.6.
drh [Fri, 15 Aug 2014 15:10:46 +0000 (15:10 +0000)] 
Update the sessions branch for version 3.8.6.

FossilOrigin-Name: 2acbeac1fd9b9feb26e1c24d4ae50ce79f17a3f8

11 years agoVersion 3.8.6 version-3.8.6
drh [Fri, 15 Aug 2014 11:46:33 +0000 (11:46 +0000)] 
Version 3.8.6

FossilOrigin-Name: 9491ba7d738528f168657adb43a198238abde19e

11 years agoFix an assert that can fail if the database file is corrupted.
dan [Thu, 14 Aug 2014 19:53:37 +0000 (19:53 +0000)] 
Fix an assert that can fail if the database file is corrupted.

FossilOrigin-Name: 3f45b8192dad7fb1f027cbaa694046e3c1b3e278

11 years agoFix compiler warnings on WinCE. winCeWarn
mistachkin [Thu, 14 Aug 2014 18:31:56 +0000 (18:31 +0000)] 
Fix compiler warnings on WinCE.

FossilOrigin-Name: cc910b8e0c45e7387024f3a729003e2fef08b198

11 years agoMerge the pre-3.8.6 changes into the threads branch.
drh [Thu, 14 Aug 2014 14:02:48 +0000 (14:02 +0000)] 
Merge the pre-3.8.6 changes into the threads branch.

FossilOrigin-Name: a608fd1d52606a009c3acc7f1d184b86a7df3c82

11 years agoFix typos in comments used to help generate documentation. No changes to code.
drh [Thu, 14 Aug 2014 13:06:25 +0000 (13:06 +0000)] 
Fix typos in comments used to help generate documentation.  No changes to code.

FossilOrigin-Name: 13a2d90a2869c53b79754de39045bbbdbc7688e3

11 years agoAdd icon to the Windows shell executable. This is a resource change only, no changes...
mistachkin [Thu, 14 Aug 2014 02:59:51 +0000 (02:59 +0000)] 
Add icon to the Windows shell executable.  This is a resource change only, no changes to code.

FossilOrigin-Name: f5cce9db109a2bbe9a05b4c01b076a51d5fad8ba

11 years agoMerge the trunk changes for 3.8.6 beta3 into the sessions branch.
drh [Wed, 13 Aug 2014 14:43:32 +0000 (14:43 +0000)] 
Merge the trunk changes for 3.8.6 beta3 into the sessions branch.

FossilOrigin-Name: d49455d9a972fc2224d9beb97165a998ca56e838

11 years agoMinor change to unixDelete for VxWorks with a DOS filesystem.
drh [Wed, 13 Aug 2014 11:39:42 +0000 (11:39 +0000)] 
Minor change to unixDelete for VxWorks with a DOS filesystem.

FossilOrigin-Name: f01d42cc8b00d2b7c4f14defcb05fdc493cf1bfd

11 years agoFix where9.test so that it works with the "no_optimization" permutation.
dan [Tue, 12 Aug 2014 20:13:22 +0000 (20:13 +0000)] 
Fix where9.test so that it works with the "no_optimization" permutation.

FossilOrigin-Name: d46adf9d8f741838b9c30f915231d6a3986c3591

11 years agoFix compilation issue in the Win32 VFS when manually defining SQLITE_WIN32_NO_ANSI.
mistachkin [Tue, 12 Aug 2014 16:13:37 +0000 (16:13 +0000)] 
Fix compilation issue in the Win32 VFS when manually defining SQLITE_WIN32_NO_ANSI.

FossilOrigin-Name: 6715991296886c2a02b9a285a1e61189ad1f79c0

11 years agoCache the value of the "totals" record in memory during transactions.
dan [Tue, 12 Aug 2014 16:07:35 +0000 (16:07 +0000)] 
Cache the value of the "totals" record in memory during transactions.

FossilOrigin-Name: 05dfdad445b22f375b71abe0b1fa1bf7ca331be7

11 years agoImprove the comments associated with SQLITE_TEST_REALLOC_STRESS and add
drh [Tue, 12 Aug 2014 14:29:20 +0000 (14:29 +0000)] 
Improve the comments associated with SQLITE_TEST_REALLOC_STRESS and add
an extra assert() to prove an assumption.

FossilOrigin-Name: 35c454616321d480ecbc4efdf6869bbcdf0d3aa2

11 years agoRun a test with TEST_REALLOC_STRESS and OMIT_LOOKASIDE defined as part of releasetest...
dan [Tue, 12 Aug 2014 14:06:13 +0000 (14:06 +0000)] 
Run a test with TEST_REALLOC_STRESS and OMIT_LOOKASIDE defined as part of releasetest.tcl on Linux/x86-64.

FossilOrigin-Name: a1baf3a7b177728cdfcd6d9345a0d6bf0a8887c0

11 years agoIf SQLITE_TEST_REALLOC_STRESS is defined, extend the op-code array used by virtual...
dan [Tue, 12 Aug 2014 13:38:52 +0000 (13:38 +0000)] 
If SQLITE_TEST_REALLOC_STRESS is defined, extend the op-code array used by virtual-machine programs by one element at a time, instead of doubling its size with each realloc().

FossilOrigin-Name: 4c291827224b84487a38e7ccba2edabc0f15b5ba

11 years agoFix typos in the VxWorks code of os_unix.c.
drh [Tue, 12 Aug 2014 12:19:25 +0000 (12:19 +0000)] 
Fix typos in the VxWorks code of os_unix.c.

FossilOrigin-Name: 19682e8fdc4a3b7884dba3e4387763e435ec16e6

11 years agoAdd a test to ensure that the problem fixed by [a179e41e40] does not recur.
dan [Tue, 12 Aug 2014 09:36:08 +0000 (09:36 +0000)] 
Add a test to ensure that the problem fixed by [a179e41e40] does not recur.

FossilOrigin-Name: 31356f2cae26278660e6bd360ad35e57261d977c

11 years agoAutomatically resize the hash table used by fts5.
dan [Tue, 12 Aug 2014 08:36:00 +0000 (08:36 +0000)] 
Automatically resize the hash table used by fts5.

FossilOrigin-Name: f1cb48f412a5f200f1fe04f91072864f379db08f

11 years agoFix an assert() statement in the SELECT code generator that was
drh [Tue, 12 Aug 2014 01:23:07 +0000 (01:23 +0000)] 
Fix an assert() statement in the SELECT code generator that was
incorrect following an OOM error.

FossilOrigin-Name: a179e41e40dba4c19a488985f77777acd27b689d

11 years agoSimplify the way position lists are copied when merging data.
dan [Mon, 11 Aug 2014 20:26:34 +0000 (20:26 +0000)] 
Simplify the way position lists are copied when merging data.

FossilOrigin-Name: 9f8d678a0ea75e169daf8b3f00bd05f52a050ea6

11 years agoReplace the hash table borrowed from fts3.
dan [Mon, 11 Aug 2014 19:44:52 +0000 (19:44 +0000)] 
Replace the hash table borrowed from fts3.

FossilOrigin-Name: 617e2fac1c128212254f71b1a8fddaf0d1d90262

11 years agoModify GetVersionEx Win32 VFS fix for use with the test suite.
mistachkin [Mon, 11 Aug 2014 17:51:23 +0000 (17:51 +0000)] 
Modify GetVersionEx Win32 VFS fix for use with the test suite.

FossilOrigin-Name: fd2221768b45d9006bbb2919a4977cf2791826d6

11 years agoFurther clarification and typo fixes for the previous comment change.
drh [Mon, 11 Aug 2014 17:41:53 +0000 (17:41 +0000)] 
Further clarification and typo fixes for the previous comment change.

FossilOrigin-Name: 87ef9e2f293afd89901fed6be45b0f0052df6846

11 years agoClarify the comment explaining the meaning of the SQLITE_WIN32_GETVERSIONEX
drh [Mon, 11 Aug 2014 17:40:30 +0000 (17:40 +0000)] 
Clarify the comment explaining the meaning of the SQLITE_WIN32_GETVERSIONEX
macro in the Windows VFS.

FossilOrigin-Name: 69714287dbbdbf4ef2a2c5e99ed740ae7d27e051

11 years agoFix for #ifdef issue with GetVersionEx in the Win32 VFS.
mistachkin [Mon, 11 Aug 2014 17:38:38 +0000 (17:38 +0000)] 
Fix for #ifdef issue with GetVersionEx in the Win32 VFS.

FossilOrigin-Name: 1a0d466dd48163c86de4774035fe4a30c1c55311

11 years agoAdd a few more requirements tests.
drh [Mon, 11 Aug 2014 17:37:27 +0000 (17:37 +0000)] 
Add a few more requirements tests.

FossilOrigin-Name: b5652439d5d770f0edeb80c8f55fa7cc515482e3

11 years agoUpdates to evidence marks and requirements. No changes to code.
drh [Mon, 11 Aug 2014 15:54:11 +0000 (15:54 +0000)] 
Updates to evidence marks and requirements.  No changes to code.

FossilOrigin-Name: 62d38308b519a5362f559b296a0cf1acccf8f673

11 years agoFix harmless compiler warnings.
drh [Mon, 11 Aug 2014 14:21:32 +0000 (14:21 +0000)] 
Fix harmless compiler warnings.

FossilOrigin-Name: 52b03f045edf6fc29f9ba9a5cac53a59f0feb0eb

11 years agoChanges that will perhaps enable SQLite to work better on VxWorks.
drh [Mon, 11 Aug 2014 13:53:30 +0000 (13:53 +0000)] 
Changes that will perhaps enable SQLite to work better on VxWorks.

FossilOrigin-Name: de27c742c0dcda20b51339598bf6094a8dcf5fb9

11 years agoFix an uninitialized variable causing a problem during fts5 table initialization.
dan [Sat, 9 Aug 2014 18:22:59 +0000 (18:22 +0000)] 
Fix an uninitialized variable causing a problem during fts5 table initialization.

FossilOrigin-Name: a14fa876f0eb66028e302b908967cc4a05ede9fc

11 years agoUse multiple memory allocations for a single Fts5Structure object. This is probably...
dan [Sat, 9 Aug 2014 18:02:27 +0000 (18:02 +0000)] 
Use multiple memory allocations for a single Fts5Structure object. This is probably less efficient but much easier to get right.

FossilOrigin-Name: 2821825f7a481755a333dcdcad780b3e24448f20

11 years agoUpdate requirements marks. No changes to code.
drh [Fri, 8 Aug 2014 18:26:20 +0000 (18:26 +0000)] 
Update requirements marks.  No changes to code.

FossilOrigin-Name: 7556bd9aa5db1b9cd92d0e48effcda9fe96f3128

11 years agoImprovements to the way the query planner handles sorting costs, so that
drh [Fri, 8 Aug 2014 17:49:55 +0000 (17:49 +0000)] 
Improvements to the way the query planner handles sorting costs, so that
very large sorting costs do not overwhelm the loop costs.

FossilOrigin-Name: bdaa6947371a60a31b6a13267b0ba6e46df2a8ce

11 years agoFix a buffer overrun in the previous commit. query-planner-fix
dan [Fri, 8 Aug 2014 17:25:33 +0000 (17:25 +0000)] 
Fix a buffer overrun in the previous commit.

FossilOrigin-Name: 43c59c85436dc8001c81f4aac7f5231b13d741cb

11 years agoBecause SQLite internally calculates query plan costs using a logarithmic scale,...
dan [Fri, 8 Aug 2014 16:52:28 +0000 (16:52 +0000)] 
Because SQLite internally calculates query plan costs using a logarithmic scale, very large estimated sorting costs can cause all other estimated costs to be rounded down to zero. In these cases break ties between plans with the same total cost by comparing the costs with sorting excluded. This is an alternative fix for the same problem as addressed by [2af630c572].

FossilOrigin-Name: 299b9570279ded7158d22349ef93384286a5c755

11 years agoThe SQLITE_IOERR_BLOCKED extended error code is not longer used, so remove
drh [Fri, 8 Aug 2014 15:38:11 +0000 (15:38 +0000)] 
The SQLITE_IOERR_BLOCKED extended error code is not longer used, so remove
assert() statements and documentation for that error code.  Also make other
documentation improvements.

FossilOrigin-Name: 36b7c5cefcad6bad044806092593c84876fee8bc

11 years agoReworking the documentation on integer result codes. This is a comment
drh [Fri, 8 Aug 2014 12:51:42 +0000 (12:51 +0000)] 
Reworking the documentation on integer result codes.  This is a comment
and documentation change only.  There are no changes to code.

FossilOrigin-Name: 54f1df7b63166f14b2f0d5955c546820e5cbdec9

11 years agoWhen the estimated sorting cost overwhelms the estimated lookup cost, ensure
drh [Thu, 7 Aug 2014 20:42:33 +0000 (20:42 +0000)] 
When the estimated sorting cost overwhelms the estimated lookup cost, ensure
that lookup costs are still taken into account when selecting a lookup
algorithm.

FossilOrigin-Name: 2af630c5720a4d71f22a952af29346a09bd8dfd0

11 years agoClarify the computation of compatible isOrdered by in the plan solver of
drh [Thu, 7 Aug 2014 20:37:01 +0000 (20:37 +0000)] 
Clarify the computation of compatible isOrdered by in the plan solver of
the query planner.

FossilOrigin-Name: b5e8fd575a80334160de0aac8084ed5cd28816a5

11 years agoRemove the extraneous debugging printf() from the previous check-in.
drh [Thu, 7 Aug 2014 20:25:37 +0000 (20:25 +0000)] 
Remove the extraneous debugging printf() from the previous check-in.

FossilOrigin-Name: 8f04d2c0084afa6381e78847c9aa296498d448cb

11 years agoAdd "segment promotion" to fts5. This prevents the FTS index from growing indefinitel...
dan [Thu, 7 Aug 2014 18:47:33 +0000 (18:47 +0000)] 
Add "segment promotion" to fts5. This prevents the FTS index from growing indefinitely as data is added and deleted.

FossilOrigin-Name: ba359d78e166d78e0dc89e3c63a9a41e9ffea989

11 years agoWhen the estimated cost to do a sort overwhelms the estimated cost to do
drh [Thu, 7 Aug 2014 16:50:00 +0000 (16:50 +0000)] 
When the estimated cost to do a sort overwhelms the estimated cost to do
individual table lookups, make sure that the table lookup costs are still
taken into consideration when selecting the lookup algorithm.

FossilOrigin-Name: ec5d84ba69c100d9565425ed74040a49e410ea03

11 years agoAvoid writing delete markers to the oldest segment in an FTS index.
dan [Wed, 6 Aug 2014 20:04:14 +0000 (20:04 +0000)] 
Avoid writing delete markers to the oldest segment in an FTS index.

FossilOrigin-Name: 1baeb1cee61d9c56c718b50af034a24f1018a322

11 years agoA couple more harmless compiler warnings eliminated.
drh [Wed, 6 Aug 2014 18:50:51 +0000 (18:50 +0000)] 
A couple more harmless compiler warnings eliminated.

FossilOrigin-Name: bcf6d775f90f4d1ba018a1b965f2f710df130f01

11 years agoFix two more harmless compiler warnings. Make sure the fts3_unicode2.c file
drh [Wed, 6 Aug 2014 17:49:13 +0000 (17:49 +0000)] 
Fix two more harmless compiler warnings.  Make sure the fts3_unicode2.c file
is in sync with mkunicode.tcl.

FossilOrigin-Name: a2a60307ea68a3230952a56cb65369ba0a208967

11 years agoAdd support for savepoints to fts5.
dan [Wed, 6 Aug 2014 16:30:21 +0000 (16:30 +0000)] 
Add support for savepoints to fts5.

FossilOrigin-Name: 3b19eba042bb2eeb1be60f8d58ebaa0a045d6a5c

11 years agoFix harmless compiler warnings. In the command-line shell, report if the
drh [Wed, 6 Aug 2014 14:36:53 +0000 (14:36 +0000)] 
Fix harmless compiler warnings.  In the command-line shell, report if the
".system" command returns a non-zero result.

FossilOrigin-Name: 1202e9771f6d699dbf5268368108a3527d06d799

11 years agoMerge the second InterlockedCompareExchange() fix from trunk.
drh [Wed, 6 Aug 2014 12:00:08 +0000 (12:00 +0000)] 
Merge the second InterlockedCompareExchange() fix from trunk.

FossilOrigin-Name: 69018967f6e38521dd9b0fa9ce05c9b947635335

11 years agoFix an obsolete comment in the func.c source file. No changes to code.
drh [Wed, 6 Aug 2014 11:58:40 +0000 (11:58 +0000)] 
Fix an obsolete comment in the func.c source file.  No changes to code.

FossilOrigin-Name: 5c6bb57d90bad32785d6d9cdf110a825bbc5ec73

11 years agoOn the windows VFS, do not try to make InterlockedCompareExchange an
drh [Wed, 6 Aug 2014 11:57:54 +0000 (11:57 +0000)] 
On the windows VFS, do not try to make InterlockedCompareExchange an
overloadable function, since sometimes it is a macro.

FossilOrigin-Name: ab1a751e1304749bef5bc5c833f9abed8950f7d0

11 years agoFix an obsolete comment in the func.c source file. No changes to code.
drh [Wed, 6 Aug 2014 11:49:31 +0000 (11:49 +0000)] 
Fix an obsolete comment in the func.c source file.  No changes to code.

FossilOrigin-Name: 7a145c9409e70b92946534eb44c2e205f7309897

11 years agoMerge in the fix for the InterlockedCompareExchange() build issue.
drh [Wed, 6 Aug 2014 03:16:56 +0000 (03:16 +0000)] 
Merge in the fix for the InterlockedCompareExchange() build issue.

FossilOrigin-Name: 091aa5f1047f0ec984a69ab1f356c1960813b77b

11 years agoIn the Win32 VFS, work around InterlockedCompareExchange() being a macro on some...
mistachkin [Wed, 6 Aug 2014 03:06:01 +0000 (03:06 +0000)] 
In the Win32 VFS, work around InterlockedCompareExchange() being a macro on some platforms (e.g. x64).

FossilOrigin-Name: 7be244ce129d6502f3a3e3f3e8a1dd61ef71d878

11 years agoMerge all recent changes from trunk.
drh [Wed, 6 Aug 2014 02:03:35 +0000 (02:03 +0000)] 
Merge all recent changes from trunk.

FossilOrigin-Name: a353a8515fb2eff86042d0c33e39772f4d04e0b3