]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
9 years agoIdentify indexes that complete cover their table. covering-index
drh [Wed, 24 Feb 2016 15:43:05 +0000 (15:43 +0000)] 
Identify indexes that complete cover their table.

FossilOrigin-Name: 71d488b599cbde817de369efac4412569a55b43d

9 years agoAdd the SQLITE_BITMASK_TYPE compile-time option.
drh [Tue, 23 Feb 2016 16:28:34 +0000 (16:28 +0000)] 
Add the SQLITE_BITMASK_TYPE compile-time option.

FossilOrigin-Name: 0064a8c77b2b048c71277d1cfd1ba3975b513b70

9 years agoRemove code not needed now that synchronous=OFF database files no longer
drh [Mon, 22 Feb 2016 23:44:42 +0000 (23:44 +0000)] 
Remove code not needed now that synchronous=OFF database files no longer
trigger the use of a master journal.

FossilOrigin-Name: aa9f4c622af191edbeb6a535942944f8c91f5c37

9 years agoAvoid an unnecessary seek operation some corner-case skip-scan operations.
drh [Mon, 22 Feb 2016 23:14:11 +0000 (23:14 +0000)] 
Avoid an unnecessary seek operation some corner-case skip-scan operations.

FossilOrigin-Name: 2a6003a937a210dfc279e393d3a0b49d1f3ac92e

9 years agoClearer presentation of the logic. No functional changes. skip-scan-improvement
drh [Mon, 22 Feb 2016 21:19:54 +0000 (21:19 +0000)] 
Clearer presentation of the logic.  No functional changes.

FossilOrigin-Name: a3dcf6db76cc09bdfedb1bbeba3b359b77762cbe

9 years agoAvoid an unnecessary seek operation on some corner-case skip-scans.
drh [Mon, 22 Feb 2016 20:52:26 +0000 (20:52 +0000)] 
Avoid an unnecessary seek operation on some corner-case skip-scans.

FossilOrigin-Name: 38e837e605076124b73235e1fd832838d9545cb2

9 years agoAlways use the sqlite3VdbeDeleteAuxdata() routine for clearing auxdata on
drh [Mon, 22 Feb 2016 16:04:31 +0000 (16:04 +0000)] 
Always use the sqlite3VdbeDeleteAuxdata() routine for clearing auxdata on
function parameter, rather than having a separate deleteAuxdataFromFrame()
for doing the job for trigger frames.

FossilOrigin-Name: 64386fa339adb91439da979d74062f67a6ec68fd

9 years agoAvoid creating a master journal unless two or more databases in the
drh [Mon, 22 Feb 2016 14:57:38 +0000 (14:57 +0000)] 
Avoid creating a master journal unless two or more databases in the
transaction can actually benefit from that master journal.

FossilOrigin-Name: 3ed1890612bd45bd9c72f670d2cbb0b8fbd35d92

9 years agoChange magic numbers associated with synchronous settings to named constants.
drh [Mon, 22 Feb 2016 13:23:16 +0000 (13:23 +0000)] 
Change magic numbers associated with synchronous settings to named constants.

FossilOrigin-Name: 9230ba6c01f4a550d92a0cbbf36dbe81af14fbfc

9 years agoAdd an extra test case for the change in commit [c4295725].
dan [Mon, 22 Feb 2016 09:45:27 +0000 (09:45 +0000)] 
Add an extra test case for the change in commit [c4295725].

FossilOrigin-Name: a48ac4c347813bd2b416b1cb06c3cbf1f4b3781a

10 years agoFurther enhancements to the MSVC batch build tool.
mistachkin [Fri, 19 Feb 2016 19:46:58 +0000 (19:46 +0000)] 
Further enhancements to the MSVC batch build tool.

FossilOrigin-Name: 06f1495f4b7465e3992f524f56d97847643a9895

10 years agoUse the arguments to NMAKE consistently in the MSVC batch build tool.
mistachkin [Fri, 19 Feb 2016 19:29:44 +0000 (19:29 +0000)] 
Use the arguments to NMAKE consistently in the MSVC batch build tool.

FossilOrigin-Name: 480e5049486b8b047f533d78b040daa47dd6b946

10 years agoEnhance clean target in the MSVC makefiles.
mistachkin [Fri, 19 Feb 2016 19:03:04 +0000 (19:03 +0000)] 
Enhance clean target in the MSVC makefiles.

FossilOrigin-Name: 66a9ad4a6df513f4c35c3d337d4e2e80cd38d586

10 years agoUse a separate list of aux-data structures for each trigger program at the VDBE level...
dan [Fri, 19 Feb 2016 18:54:29 +0000 (18:54 +0000)] 
Use a separate list of aux-data structures for each trigger program at the VDBE level. Fix for [dc9b1c91].

FossilOrigin-Name: c4295725015d394f01b8563f47236e0890f1cc0d

10 years agoEnhance speedtest1 to display the particular version of SQLite under test.
drh [Fri, 19 Feb 2016 16:19:23 +0000 (16:19 +0000)] 
Enhance speedtest1 to display the particular version of SQLite under test.

FossilOrigin-Name: 0cb728c15c66f1bf09cc1e0731a95ba937c6c71c

10 years agoFix a couple of harmless warnings generated by clang.
drh [Fri, 19 Feb 2016 15:17:53 +0000 (15:17 +0000)] 
Fix a couple of harmless warnings generated by clang.

FossilOrigin-Name: a1a3ff1f53145c5a9fbf29398cf4a453729e71f0

10 years agoFix a harmless uninitialized variable access.
drh [Fri, 19 Feb 2016 14:20:46 +0000 (14:20 +0000)] 
Fix a harmless uninitialized variable access.

FossilOrigin-Name: 398522e686b34e7f82a62e62d8b0a0ea924de064

10 years agoMake sure WhereClause objects are fully initialized before use when
drh [Fri, 19 Feb 2016 14:10:44 +0000 (14:10 +0000)] 
Make sure WhereClause objects are fully initialized before use when
planning OR queries.

FossilOrigin-Name: 162053021795ff40c447498a76de4d31d58aa808

10 years agoFix (harmless) compiler warnings in some of the TCL-based test code.
drh [Fri, 19 Feb 2016 13:29:52 +0000 (13:29 +0000)] 
Fix (harmless) compiler warnings in some of the TCL-based test code.

FossilOrigin-Name: 7c26d2b47025edaa289bd4a383b5c1536482ec11

10 years agoAdd an SQLITE_DISABLE_INTRINSIC #ifdef to the sqlite3Put4Byte() function.
drh [Fri, 19 Feb 2016 13:20:02 +0000 (13:20 +0000)] 
Add an SQLITE_DISABLE_INTRINSIC #ifdef to the sqlite3Put4Byte() function.

FossilOrigin-Name: ba9c6827d0890aaed9168c221fefbdbe89f4f9d3

10 years agoOmit the unused yyzerominor constant.
drh [Fri, 19 Feb 2016 13:19:22 +0000 (13:19 +0000)] 
Omit the unused yyzerominor constant.

FossilOrigin-Name: 60ad68a9f569d2446d76a6453be4fa1c4ed2cd93

10 years agoAdd an "#ifndef SQLITE_AMALGAMATION" guard around a typedef in fts5_test_mi.c to...
dan [Fri, 19 Feb 2016 10:18:36 +0000 (10:18 +0000)] 
Add an "#ifndef SQLITE_AMALGAMATION" guard around a typedef in fts5_test_mi.c to avoid redefining "u32" if it is compiled as part of the amalgamation.

FossilOrigin-Name: f9c49ba1edf13cb8c48d73f1b2e3f80c46b3c030

10 years agoModify the MSVC batch build tool to support the MSVC autoconf Makefile.
mistachkin [Fri, 19 Feb 2016 05:07:56 +0000 (05:07 +0000)] 
Modify the MSVC batch build tool to support the MSVC autoconf Makefile.

FossilOrigin-Name: 72b10e5e7d2db436c7b03cc3735a2e9d0e53ab5d

10 years agoFurther improvements to the MSVC batch build tool.
mistachkin [Fri, 19 Feb 2016 00:48:23 +0000 (00:48 +0000)] 
Further improvements to the MSVC batch build tool.

FossilOrigin-Name: b9626b5954068ae2e7733dd14f906a1f6d7090a5

10 years agoFurther improvements to the MSVC batch build tool.
mistachkin [Fri, 19 Feb 2016 00:47:18 +0000 (00:47 +0000)] 
Further improvements to the MSVC batch build tool.

FossilOrigin-Name: 90dd6eb1fec22460473d670519d0e730bb37067d

10 years agoCorrect the install location for the UWP VSIX package.
mistachkin [Thu, 18 Feb 2016 21:15:12 +0000 (21:15 +0000)] 
Correct the install location for the UWP VSIX package.

FossilOrigin-Name: f74de325ffb01a1ca8ddd4f011188e38296c3402

10 years agoCorrect the install location for the UWP VSIX package.
mistachkin [Thu, 18 Feb 2016 21:00:29 +0000 (21:00 +0000)] 
Correct the install location for the UWP VSIX package.

FossilOrigin-Name: b47d03027e973e3c8d77246a2d2100881f6a9bd2

10 years agoAvoid a potential buffer overrun if an SQL statement being parsed ends
drh [Thu, 18 Feb 2016 14:49:28 +0000 (14:49 +0000)] 
Avoid a potential buffer overrun if an SQL statement being parsed ends
with an illegal "!" token.  (This problem was detected by fuzzcheck
running under valgrind. The problem was introduced by check-in [9570b6b43df3].)

FossilOrigin-Name: 2a8d97e7c8976df0312e1294e8c1da8b15686654

10 years agoImproved handling of the -v option on the fuzzcheck test program.
drh [Thu, 18 Feb 2016 14:03:15 +0000 (14:03 +0000)] 
Improved handling of the -v option on the fuzzcheck test program.

FossilOrigin-Name: c8cd7804dc905b2b20cd7c0192bcfaceaaa7e2a8

10 years agoRemove an unnecessary "include <tcl.h>" line from fts5_test_mi.c.
dan [Thu, 18 Feb 2016 13:32:34 +0000 (13:32 +0000)] 
Remove an unnecessary "include <tcl.h>" line from fts5_test_mi.c.

FossilOrigin-Name: 31d8b69e9e0747e573516570bfe2770384e99134

10 years agoAdd extra API armor on the sqlite3_bind_blob() interface.
drh [Thu, 18 Feb 2016 01:29:12 +0000 (01:29 +0000)] 
Add extra API armor on the sqlite3_bind_blob() interface.

FossilOrigin-Name: 80de1ad5eb4c3839756b6467d5b8195b4abfb1f8

10 years agoWhen VDBE opcodes fail, they cause an immediate exit from the loop, rather
drh [Wed, 17 Feb 2016 20:47:24 +0000 (20:47 +0000)] 
When VDBE opcodes fail, they cause an immediate exit from the loop, rather
than depending on the rc==SQLITE_OK test at the top of the loop.  This is
faster and smaller.

FossilOrigin-Name: 24c7151c1aabeaffcb8bb5836404e70a3ec4681b

10 years agoFix up all VDBE opcodes so that they cause an immediate exit on any kind of vdbe-performance
drh [Wed, 17 Feb 2016 18:44:11 +0000 (18:44 +0000)] 
Fix up all VDBE opcodes so that they cause an immediate exit on any kind of
error, and thereby eliminate the need to test "rc" at the top of the loop.
Resulting code is a little smaller and faster.

FossilOrigin-Name: a444633a827642bcf4d02a461e7e5f66769d39fd

10 years agoBump the version number to 3.12.0.
drh [Wed, 17 Feb 2016 15:01:18 +0000 (15:01 +0000)] 
Bump the version number to 3.12.0.

FossilOrigin-Name: c17d7276b8c114df5fe6e9ea14d59758443c281b

10 years agoRemove the "#ifdef SQLITE_TEST" condition from fts5_test_mi.c. Update fts5_main.c...
dan [Wed, 17 Feb 2016 14:48:26 +0000 (14:48 +0000)] 
Remove the "#ifdef SQLITE_TEST" condition from fts5_test_mi.c. Update fts5_main.c so that if SQLITE_FTS5_TEST_MI is defined when it is built the fts5_test_mi.c entry point is automatically called. This makes it easier to build versions of fts5 that include the matchinfo() demo by default.

FossilOrigin-Name: 87e6e225aea3a4d10476d16eab4a6403a4a128c9

10 years agoImprove test coverage of demo code in fts5_test_mi.c.
dan [Wed, 17 Feb 2016 14:11:06 +0000 (14:11 +0000)] 
Improve test coverage of demo code in fts5_test_mi.c.

FossilOrigin-Name: 8a78050dc0e374a0df0f29716df60250e2c4b4f7

10 years agoEnhance Lemon to generate more compact and efficient code for yy_reduce().
drh [Wed, 17 Feb 2016 13:24:12 +0000 (13:24 +0000)] 
Enhance Lemon to generate more compact and efficient code for yy_reduce().
Update the main SQL grammar to take advantage of the new capabilities.

FossilOrigin-Name: 53fd040c98d9647ea135d43c493777bf8da4aebd

10 years agoMore agressive use of /*A-overwrites-X*/ in the parser. Fix an off-by-one parser-performance
drh [Wed, 17 Feb 2016 12:34:03 +0000 (12:34 +0000)] 
More agressive use of /*A-overwrites-X*/ in the parser.  Fix an off-by-one
error in parser stack overflow detection.

FossilOrigin-Name: 417e777701bbf4bd67626d4ca3bc2c5d847f6cd0

10 years agoDocumentation typo on sqlite3_wal_hook(). No changes to code.
drh [Wed, 17 Feb 2016 11:13:20 +0000 (11:13 +0000)] 
Documentation typo on sqlite3_wal_hook().  No changes to code.

FossilOrigin-Name: fc2043ebaa3f106529500164936bb82f9b921b1c

10 years agoEnhance Lemon so that if reduce code contains a comment of the form
drh [Wed, 17 Feb 2016 04:33:10 +0000 (04:33 +0000)] 
Enhance Lemon so that if reduce code contains a comment of the form
"/*A-overwrites-X*/" then a LHS label A is allowed to overwrite the
RHS label X.

FossilOrigin-Name: 5cfe9545d478a2c500083613dd20e14b2ffce645

10 years agoFurther improvements to the Lemon-generated code for yy_reduce().
drh [Wed, 17 Feb 2016 01:46:19 +0000 (01:46 +0000)] 
Further improvements to the Lemon-generated code for yy_reduce().

FossilOrigin-Name: ef95a7d6490e33a9af4bc7b4b622de7328742ca7

10 years agoIn Lemon, add the ability for the left-most RHS label to be the same as the
drh [Wed, 17 Feb 2016 01:18:33 +0000 (01:18 +0000)] 
In Lemon, add the ability for the left-most RHS label to be the same as the
LHS label, causing the LHS values to be written directly into the stack.

FossilOrigin-Name: 4bb94c7c4c3cb3ccad72c2451d88684130dde845

10 years agoExperimental changes to Lemon for improved parser performance.
drh [Tue, 16 Feb 2016 21:19:49 +0000 (21:19 +0000)] 
Experimental changes to Lemon for improved parser performance.

FossilOrigin-Name: a65d583ce97b8c08157268bd054479cda3957a94

10 years agoMinor simplification to the tokenizer. Slightly smaller and faster.
drh [Tue, 16 Feb 2016 13:04:19 +0000 (13:04 +0000)] 
Minor simplification to the tokenizer.  Slightly smaller and faster.

FossilOrigin-Name: 9570b6b43df3bc5ce314cded20bca8be9e968efe

10 years agoImprove the Lemon parser template (lempar.c) so that it avoids unnecessary
drh [Tue, 16 Feb 2016 01:01:43 +0000 (01:01 +0000)] 
Improve the Lemon parser template (lempar.c) so that it avoids unnecessary
work when the grammer defines YYNOERRORRECOVERY (as SQLite does).  Slightly
smaller and faster code results.

FossilOrigin-Name: 9235b0cf6a37712ae9e5deeb1e5ee064dd5511fa

10 years agoFix a harmless compiler warning in FTS5.
drh [Mon, 15 Feb 2016 23:46:36 +0000 (23:46 +0000)] 
Fix a harmless compiler warning in FTS5.

FossilOrigin-Name: e52c90758c53cbb0f74e0d8582e4c3c1bee04150

10 years agoReadability improvements for winRandomness.
mistachkin [Mon, 15 Feb 2016 22:37:18 +0000 (22:37 +0000)] 
Readability improvements for winRandomness.

FossilOrigin-Name: 1640f814c7a5210f08c81e52e5a3fb89ac26f4d4

10 years agoFix comment. No changes to code.
mistachkin [Mon, 15 Feb 2016 22:28:50 +0000 (22:28 +0000)] 
Fix comment.  No changes to code.

FossilOrigin-Name: 2e1f2eff27e25280fe626c07b6260b0a7aa903d3

10 years agoRevise compiler checks for the rand_s() function.
mistachkin [Mon, 15 Feb 2016 22:01:24 +0000 (22:01 +0000)] 
Revise compiler checks for the rand_s() function.

FossilOrigin-Name: 287f508dd6abc1b9ffdbec6a685ebe79eeac992b

10 years agoOn windows systems when rand_s() is available, use it to obtain additional
drh [Mon, 15 Feb 2016 21:31:51 +0000 (21:31 +0000)] 
On windows systems when rand_s() is available, use it to obtain additional
seed material in winRandomness().

FossilOrigin-Name: 139081bef9f63c3ebbe9e992408597b1349bdf37

10 years agoImproved entropy gathering for the implementation of winRandomness().
drh [Mon, 15 Feb 2016 20:41:56 +0000 (20:41 +0000)] 
Improved entropy gathering for the implementation of winRandomness().

FossilOrigin-Name: fea3705e7750d276a8c8300b7a82dfae2d5979c0

10 years agoAdd working -q and --help options to testfixture.
drh [Mon, 15 Feb 2016 19:38:17 +0000 (19:38 +0000)] 
Add working -q and --help options to testfixture.

FossilOrigin-Name: 404494e52b6385671ccde1c83b7b868986645536

10 years agoIn the tool/warning.sh script, disable Android-specific compiler warning tests
drh [Mon, 15 Feb 2016 18:58:37 +0000 (18:58 +0000)] 
In the tool/warning.sh script, disable Android-specific compiler warning tests
when not running on Linux.

FossilOrigin-Name: 153f01a821e9844d0a2e418eb83c60f6c7695c8d

10 years agoFix harmless compiler warnings previously seen in 64-bit MSVC builds.
drh [Mon, 15 Feb 2016 18:47:26 +0000 (18:47 +0000)] 
Fix harmless compiler warnings previously seen in 64-bit MSVC builds.

FossilOrigin-Name: 7026246300392a83cc23817dbc54c2c66bf1f2b3

10 years agoAdd the SQLITE_NOMEM_BKPT macro to enhance the ability to debug OOM errors.
drh [Mon, 15 Feb 2016 18:15:15 +0000 (18:15 +0000)] 
Add the SQLITE_NOMEM_BKPT macro to enhance the ability to debug OOM errors.
Only effective with compiling with SQLITE_DEBUG.

FossilOrigin-Name: 9b3454762d142113f5923d754ca6bd2edefbd362

10 years agoMinor code simplifications.
drh [Mon, 15 Feb 2016 18:02:13 +0000 (18:02 +0000)] 
Minor code simplifications.

FossilOrigin-Name: c3b38efd50c3c07b6dee5dea4c1f95b37d1c0994

10 years agoMake the application-defined SQL function logic more compact and faster,
drh [Mon, 15 Feb 2016 17:56:35 +0000 (17:56 +0000)] 
Make the application-defined SQL function logic more compact and faster,
especially faster for the case where an application defines thousands of
new SQL functions.

FossilOrigin-Name: 7d49ed32a7262ec95d72ce520ab75402633386a1

10 years agoVersion 3.11.0 version-3.11.0
drh [Mon, 15 Feb 2016 17:29:24 +0000 (17:29 +0000)] 
Version 3.11.0

FossilOrigin-Name: 3d862f207e3adc00f78066799ac5a8c282430a5f

10 years agoMake sure the codec is invoked when overwriting existing frames of the
drh [Mon, 15 Feb 2016 15:06:47 +0000 (15:06 +0000)] 
Make sure the codec is invoked when overwriting existing frames of the
WAL file.  Yikes!

FossilOrigin-Name: f694e60a79024967a3f4574e3928f0b28589d381

10 years agoImprovements to the application-defined function mechanism so that it is many-app-functions
drh [Mon, 15 Feb 2016 00:34:16 +0000 (00:34 +0000)] 
Improvements to the application-defined function mechanism so that it is
more compact and runs faster, especially when the application defines
thousands of new SQL functions.

FossilOrigin-Name: 3201fbcc5105d23132e6b8b7ac825e66af4f8a39

10 years agoUpdate a comment. noMemBkpt
mistachkin [Sun, 14 Feb 2016 00:14:35 +0000 (00:14 +0000)] 
Update a comment.

FossilOrigin-Name: e9753d9a2c1269050f886e6cb9bc9cba0a8df6ce

10 years agoEnhance ability to debug out-of-memory errors.
mistachkin [Sat, 13 Feb 2016 23:43:46 +0000 (23:43 +0000)] 
Enhance ability to debug out-of-memory errors.

FossilOrigin-Name: 6a9c4a3ebfb7cc0738ef6634440ccab44a21ff28

10 years agoProvide Sqlite3_SafeInit() and Sqlite3_SafeUnload() entry points on the TCL
drh [Sat, 13 Feb 2016 18:54:10 +0000 (18:54 +0000)] 
Provide Sqlite3_SafeInit() and Sqlite3_SafeUnload() entry points on the TCL
interface, but have the always return TCL_ERROR, because the non-standard
TCL builds on Macs require this.

FossilOrigin-Name: 37ec3015ec95035d31e3672f520908a0d36c9d67

10 years agoFix a potential buffer overread provoked by invalid utf-8 in fts5.
dan [Fri, 12 Feb 2016 18:48:09 +0000 (18:48 +0000)] 
Fix a potential buffer overread provoked by invalid utf-8 in fts5.

FossilOrigin-Name: a049fbbde5da2e43d41aa8c2b41f9eb21507ac76

10 years agoFix a fairly obscure buffer overread in fts5.
dan [Fri, 12 Feb 2016 17:56:27 +0000 (17:56 +0000)] 
Fix a fairly obscure buffer overread in fts5.

FossilOrigin-Name: 130580207ab5cee762b2893808acef7c8afad027

10 years agoFix a documentation typo. No changes to code.
drh [Fri, 12 Feb 2016 17:30:39 +0000 (17:30 +0000)] 
Fix a documentation typo.  No changes to code.

FossilOrigin-Name: d9c985878cf7c74a79ccdb9cf94a2d48fdde3e6f

10 years agoEnhance mptester so that it takes great care to delete its test database
drh [Fri, 12 Feb 2016 17:27:32 +0000 (17:27 +0000)] 
Enhance mptester so that it takes great care to delete its test database
prior to start-up, including checking the return code from unlink() and
retrying after a delay if unlink() fails.  Hopefully this will clear
intermittant startup problems on Windows.

FossilOrigin-Name: 6ea84ec1e02f0a48953bc758027ab7148529c36e

10 years agoNaming updates for Universal Windows Platform.
mistachkin [Fri, 12 Feb 2016 05:19:29 +0000 (05:19 +0000)] 
Naming updates for Universal Windows Platform.

FossilOrigin-Name: 717c1fc41a2246e27b324a4071073c286bac4efc

10 years agoRemove an unused parameter from whereSortingCost().
drh [Fri, 12 Feb 2016 00:13:38 +0000 (00:13 +0000)] 
Remove an unused parameter from whereSortingCost().

FossilOrigin-Name: b5d771991686bf86a679b7dff9f16301a5029c8b

10 years agoAutomatically disable FTS3 and FTS4 when building with SQLITE_OMIT_VIRTUALTABLE.
drh [Thu, 11 Feb 2016 22:41:04 +0000 (22:41 +0000)] 
Automatically disable FTS3 and FTS4 when building with SQLITE_OMIT_VIRTUALTABLE.

FossilOrigin-Name: 0beb32d20d8dd698138cdb2de6b6056de176754d

10 years agoEnhance the MSVC makefile to enable building 'testfixture' fully from source code.
mistachkin [Thu, 11 Feb 2016 21:59:02 +0000 (21:59 +0000)] 
Enhance the MSVC makefile to enable building 'testfixture' fully from source code.

FossilOrigin-Name: f183e05990608d1a4002fa8a02c2d2eea6bc94b6

10 years agoRemove the unexplained extra 3.0 cost factor for the B-tree sorting that is
drh [Thu, 11 Feb 2016 21:55:23 +0000 (21:55 +0000)] 
Remove the unexplained extra 3.0 cost factor for the B-tree sorting that is
done to implement DISTINCT in the absence of an index to help.

FossilOrigin-Name: 52571991fcfa2629e8a8354e0c9a62e749a092bf

10 years agoRemove the unused fts5BlobCompare() routine.
drh [Thu, 11 Feb 2016 21:53:57 +0000 (21:53 +0000)] 
Remove the unused fts5BlobCompare() routine.

FossilOrigin-Name: defc762dd11144402abd591278819768a080d5ea

10 years agoPrevent 'expanded command line X too long' errors during the batch 'for' loops used... testFixtureSrc
mistachkin [Thu, 11 Feb 2016 21:38:05 +0000 (21:38 +0000)] 
Prevent 'expanded command line X too long' errors during the batch 'for' loops used for copying files.

FossilOrigin-Name: 67ee9b5af10a8b57a37f19ac040e49fdfcec4145

10 years agoEnhance the MSVC makefile to enable building 'testfixture' fully from source code.
mistachkin [Thu, 11 Feb 2016 21:28:16 +0000 (21:28 +0000)] 
Enhance the MSVC makefile to enable building 'testfixture' fully from source code.

FossilOrigin-Name: 54ff3a26bc45a1c3c0690119e8fd00b02e2a16ba

10 years agoFix another unused variable warning in fts5 code.
dan [Thu, 11 Feb 2016 18:18:33 +0000 (18:18 +0000)] 
Fix another unused variable warning in fts5 code.

FossilOrigin-Name: 61b4c120540afd80a4021b0d3990f13acc38a059

10 years agoAvoid a buffer overread when reading a corrupt fts5 structure record.
dan [Thu, 11 Feb 2016 18:08:38 +0000 (18:08 +0000)] 
Avoid a buffer overread when reading a corrupt fts5 structure record.

FossilOrigin-Name: facbc424e555061135aced7b134bf6c19f54e484

10 years agoHandle parser stack overflow when parsing fts5 query expressions. Fix some compiler...
dan [Thu, 11 Feb 2016 17:01:32 +0000 (17:01 +0000)] 
Handle parser stack overflow when parsing fts5 query expressions. Fix some compiler warnings in fts5 code.

FossilOrigin-Name: bc3f7900d5a06829d123814a5ac7b951bcfc1560

10 years agoAdd JSON1 and FTS5 to the set of extensions subject to close compiler warning
drh [Thu, 11 Feb 2016 15:37:18 +0000 (15:37 +0000)] 
Add JSON1 and FTS5 to the set of extensions subject to close compiler warning
analysis.  Fix some warnings in each.   More (harmless) warnings still exist
in FTS5.

FossilOrigin-Name: cfe2eb88b504f5e9b1351022036641b1ac4c3e78

10 years agoMinor simplifications deferred to the next release. simplify
drh [Thu, 11 Feb 2016 13:30:36 +0000 (13:30 +0000)] 
Minor simplifications deferred to the next release.

FossilOrigin-Name: a863729ccb75a56330460d3b7d558e639ad733d1

10 years agoIn the MSVC makefile, include the working directory so that it can pickup build gener...
mistachkin [Wed, 10 Feb 2016 21:45:25 +0000 (21:45 +0000)] 
In the MSVC makefile, include the working directory so that it can pickup build generated files (e.g. sqlite3.h, etc).

FossilOrigin-Name: e9e6000bd2f7e0ef85178db2b5b8f20e4cf0093c

10 years agoAdd testcase() macros to the CHECK constraint avoidance logic. Avoid creating
drh [Wed, 10 Feb 2016 19:10:50 +0000 (19:10 +0000)] 
Add testcase() macros to the CHECK constraint avoidance logic.  Avoid creating
an unused VDBE label during CHECK constraint code generation.

FossilOrigin-Name: 970881befd5da6cc837c474d6e917de0bf029350

10 years agoFix to previous check-in: Make sure CHECK constraints involving the ROWID
drh [Wed, 10 Feb 2016 18:24:05 +0000 (18:24 +0000)] 
Fix to previous check-in: Make sure CHECK constraints involving the ROWID
are not ignored when the ROWID changes.

FossilOrigin-Name: 7782cb1dd5914b867caf5ff2f0f837407abbfd7a

10 years agoOmit unnecessary CHECK constraints in UPDATE statements, when none of the
drh [Wed, 10 Feb 2016 16:52:24 +0000 (16:52 +0000)] 
Omit unnecessary CHECK constraints in UPDATE statements, when none of the
columns referenced in the CHECK constraint are modified.

FossilOrigin-Name: 02fbdbc782dd98f080bf4482d820f36c0ef3d519

10 years agoOmit NOT NULL checks on unchanging columns in an UPDATE.
drh [Wed, 10 Feb 2016 16:03:20 +0000 (16:03 +0000)] 
Omit NOT NULL checks on unchanging columns in an UPDATE.

FossilOrigin-Name: 6a3aaedfb41735996470abbae6d3cd1be1f508b3

10 years agoWhen generating the snapshot-tarball, truncate the date/time in the name to
drh [Wed, 10 Feb 2016 13:36:17 +0000 (13:36 +0000)] 
When generating the snapshot-tarball, truncate the date/time in the name to
12 significant digits (YYYYMMDDhhmm) omitting the seconds and fractional
seconds.

FossilOrigin-Name: 604f77754797a4066f6cf275c7bc8a68d2839c2d

10 years agoUpdates to the autoconf tarball README.txt file.
drh [Wed, 10 Feb 2016 13:17:14 +0000 (13:17 +0000)] 
Updates to the autoconf tarball README.txt file.

FossilOrigin-Name: a3e911e3aa3e35446bed7f300bfe03f66e1494db

10 years agoUpdate the snapshot tarball name to use the date (ISO8601 format) instead
drh [Tue, 9 Feb 2016 22:54:39 +0000 (22:54 +0000)] 
Update the snapshot tarball name to use the date (ISO8601 format) instead
of the SHA1 hash in its name.

FossilOrigin-Name: 070ec66f677cdcd30087871feb8afd010a184b75

10 years agoAdd the new "snapshot-tarball" target to the unix makefiles, for building
drh [Tue, 9 Feb 2016 22:39:39 +0000 (22:39 +0000)] 
Add the new "snapshot-tarball" target to the unix makefiles, for building
a tarball similar to "amalgamation-tarball" but named by the SHA1 hash of
the current check-out rather than by the version number.

FossilOrigin-Name: 4f360b2ae78b3d4ccfe6c40ac6b27a00fc70cf23

10 years agoUpdate the MSVC autoconf makefile with the recent changes from the primary one.
mistachkin [Tue, 9 Feb 2016 22:00:48 +0000 (22:00 +0000)] 
Update the MSVC autoconf makefile with the recent changes from the primary one.

FossilOrigin-Name: c7242aa3e9c08e0c019388e89a785a6e59c915d5

10 years agoFix the makefiles in the autoconf-tarball so that they build the command-line
drh [Tue, 9 Feb 2016 20:37:46 +0000 (20:37 +0000)] 
Fix the makefiles in the autoconf-tarball so that they build the command-line
shell with SQLITE_ENABLE_EXPLAIN_COMMENTS.

FossilOrigin-Name: 1135ad014aac8a4ae5169375af1b368feaa8331b

10 years agoIn the shell, use the appropriate string constant instead of a literal new-line.
mistachkin [Tue, 9 Feb 2016 20:31:50 +0000 (20:31 +0000)] 
In the shell, use the appropriate string constant instead of a literal new-line.

FossilOrigin-Name: 61951b153d47096f30ebc8b84af408d9d709637c

10 years agoEnhance the command-line shell to be in auto-explain mode by default. It is
drh [Tue, 9 Feb 2016 20:11:14 +0000 (20:11 +0000)] 
Enhance the command-line shell to be in auto-explain mode by default.  It is
no longer necessary to use the ".explain" command to put the shell into a mode
where the EXPLAIN output is formatted nicely.  That now happens automatically.

FossilOrigin-Name: 751915cb7e4981661a40dc5e4d029ab27434c2d9

10 years agoImproved auto-detection of EXPLAIN output in the shell. auto-explain
drh [Tue, 9 Feb 2016 20:04:07 +0000 (20:04 +0000)] 
Improved auto-detection of EXPLAIN output in the shell.

FossilOrigin-Name: 6c6d7a6e89e67cdb0813d3eebb869aafb43d43ed

10 years agoAdd auto-explain mode to the command-line shell. Default on. Auto-explain
drh [Tue, 9 Feb 2016 18:39:25 +0000 (18:39 +0000)] 
Add auto-explain mode to the command-line shell.  Default on.  Auto-explain
tries to automatically detect EXPLAIN queries and format them appropriately.

FossilOrigin-Name: 1d62aa6b315df47cafb33da7ca79d3386a2fdd48

10 years agoFix MSVC makefile options that enable control-flow guard.
mistachkin [Tue, 9 Feb 2016 18:28:20 +0000 (18:28 +0000)] 
Fix MSVC makefile options that enable control-flow guard.

FossilOrigin-Name: 51b6823f4c9376d549f572f5a33cac1e4c9783a2

10 years agoFix the top-level makefiles to always include SQLITE_ENABLE_EXPLAIN_COMMENTS
drh [Tue, 9 Feb 2016 17:12:22 +0000 (17:12 +0000)] 
Fix the top-level makefiles to always include SQLITE_ENABLE_EXPLAIN_COMMENTS
when building the shell.  Still need to fix main.mk and the
amalgamation tarball.

FossilOrigin-Name: 992282399cd2d1fc52ff5a1a4bff59f30b62899a

10 years agoCode simplification: ALTER TABLE ADD COLUMN always upgrades the file_format
drh [Tue, 9 Feb 2016 16:09:22 +0000 (16:09 +0000)] 
Code simplification:  ALTER TABLE ADD COLUMN always upgrades the file_format
to 4 if is not there already.  No need to upgrade to only 2 or 3 since format
4 has now been supported for over 10 years.

FossilOrigin-Name: e1d8ec85546caeca3bb7a05ad962a2aed91194ce

10 years agoMake sure every co-routines has its own set of temporary registers and does
drh [Tue, 9 Feb 2016 02:12:20 +0000 (02:12 +0000)] 
Make sure every co-routines has its own set of temporary registers and does
not share temporaries, since a co-routine might expect the content of a
temporary register to be preserved across an OP_Yield.
Proposed fix for ticket [d06a25c84454a].

FossilOrigin-Name: ca72be8618e5d466d6f35819ca8bbd2b84269959

10 years agoFix spelling error in MSVC makefile comments.
mistachkin [Mon, 8 Feb 2016 20:45:37 +0000 (20:45 +0000)] 
Fix spelling error in MSVC makefile comments.

FossilOrigin-Name: 6eab74c9ae57676044b5bc82fa14e92fd2448008