]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
9 years agoMake the SQLITE_DEFAULT_SYNCHRONOUS and SQLITE_DEFAULT_WAL_SYNCHRONOUS default-synchronous
drh [Tue, 8 Mar 2016 15:30:01 +0000 (15:30 +0000)] 
Make the SQLITE_DEFAULT_SYNCHRONOUS and SQLITE_DEFAULT_WAL_SYNCHRONOUS
values zero-based to agree with PRAGMA synchronous.

FossilOrigin-Name: 592d2104361500e5002783ba329a2609389c57b9

9 years agoIf SQLITE_DEFAULT_WAL_SYNCHRONOUS is not the same value as
drh [Tue, 8 Mar 2016 15:14:26 +0000 (15:14 +0000)] 
If SQLITE_DEFAULT_WAL_SYNCHRONOUS is not the same value as
SQLITE_DEFAULT_SYNCHRONOUS and the application has not run
"PRAGMA synchronous", then set synchronous to the
SQLITE_DEFAULT_WAL_SYNCHRONOUS setting when entering WAL mode for
the first time.

FossilOrigin-Name: 5791407b523abd24e832fc2361b3e9f01ee2f36a

9 years agoAdd compile-time options SQLITE_DEFAULT_SYNCHRONOUS and
drh [Tue, 8 Mar 2016 14:40:11 +0000 (14:40 +0000)] 
Add compile-time options SQLITE_DEFAULT_SYNCHRONOUS and
SQLITE_DEFAULT_WAL_SYNCHRONOUS used to specify the default synchronous
settings for all database connections.

FossilOrigin-Name: 1fefa967aa93372d232b96b1e0232b7b855d6d00

9 years agoFix ATTACH to use the symbolic name PAGER_SYNCHRONOUS_FULL rather than
drh [Tue, 8 Mar 2016 14:16:23 +0000 (14:16 +0000)] 
Fix ATTACH to use the symbolic name PAGER_SYNCHRONOUS_FULL rather than
an integer literal.

FossilOrigin-Name: c4e192a0e5a408e198dbacb2752859a00d2b572f

9 years agoFix comments on pager flag settings to include synchronous=EXTRA.
drh [Tue, 8 Mar 2016 13:56:02 +0000 (13:56 +0000)] 
Fix comments on pager flag settings to include synchronous=EXTRA.

FossilOrigin-Name: 3a65a1fc0fd2408c6984153801ec5dcd5211c897

9 years agoSimplified error detection in the xBestIndex processing.
drh [Tue, 8 Mar 2016 02:59:33 +0000 (02:59 +0000)] 
Simplified error detection in the xBestIndex processing.

FossilOrigin-Name: 82ca2131b670505578628687746135ac413d156b

9 years agoAdd the ALLBITS macro as a shorthand for "(Bitmask)(-1)".
drh [Tue, 8 Mar 2016 01:32:30 +0000 (01:32 +0000)] 
Add the ALLBITS macro as a shorthand for "(Bitmask)(-1)".

FossilOrigin-Name: 91bd619d27e4d91510a187bbb88de961a31c8a2e

9 years agoAdd a NEVER() to the code generator. Change the parameter name "mExtra"
drh [Tue, 8 Mar 2016 01:11:51 +0000 (01:11 +0000)] 
Add a NEVER() to the code generator.  Change the parameter name "mExtra"
to "mPrereq" in the query planner, to more closely reflect its meaning.

FossilOrigin-Name: 721ae51e443647291f3a8f7f2128aa410fee2682

9 years agoChanges so that some assert()s in the virtual table query planner are
drh [Tue, 8 Mar 2016 00:39:58 +0000 (00:39 +0000)] 
Changes so that some assert()s in the virtual table query planner are
correct even following an OOM error.

FossilOrigin-Name: 9805f6f85211dcb5a0ab3ceca204e6f2e48530ea

9 years agoUpdate fts3/4 so that the 'merge=X,0' command merges X pages from all segments of...
dan [Mon, 7 Mar 2016 20:14:27 +0000 (20:14 +0000)] 
Update fts3/4 so that the 'merge=X,0' command merges X pages from all segments of the first level in the fts index that contains 2 or more segments.

FossilOrigin-Name: cddf69dbc46f10ee7e87538dd850e086386b544c

9 years agoAvoid a NULL pointer dereference following an OOM while generating code
drh [Mon, 7 Mar 2016 19:08:27 +0000 (19:08 +0000)] 
Avoid a NULL pointer dereference following an OOM while generating code
for IN operators on virtual tables.

FossilOrigin-Name: c924008692e35f1f5144830af08d6de051dd21dd

9 years agoAdd the SQLITE_CONFIG_STMTJRNL_SPILL option for sqlite3_config().
drh [Mon, 7 Mar 2016 17:37:37 +0000 (17:37 +0000)] 
Add the SQLITE_CONFIG_STMTJRNL_SPILL option for sqlite3_config().

FossilOrigin-Name: b6c4202432dc96f8f1740f52d0bf872116357fcc

9 years agoFix a problem in the previous commit affecting queries with three or more tables...
dan [Sat, 5 Mar 2016 21:32:14 +0000 (21:32 +0000)] 
Fix a problem in the previous commit affecting queries with three or more tables joined together to the right of a LEFT or CROSS JOIN operator.

FossilOrigin-Name: d8d89d69a490a708b83147945f74134ae0e4b387

9 years agoChange the way SQLite invokes the xBestIndex method of virtual tables so that N-way...
dan [Sat, 5 Mar 2016 21:07:49 +0000 (21:07 +0000)] 
Change the way SQLite invokes the xBestIndex method of virtual tables so that N-way joins involving virtual tables work as expected.

FossilOrigin-Name: 195444380bafd3d95d37ad83047c75ca20978de4

9 years agoAdjust the cost estimates for RTREE such that the expected number of rows and xbestindex-fix
drh [Sat, 5 Mar 2016 20:28:24 +0000 (20:28 +0000)] 
Adjust the cost estimates for RTREE such that the expected number of rows and
expected cost is halved for each additional constraint.

FossilOrigin-Name: fd7cd0609381a85673d1f737ebeb19dde3de180f

9 years agoChange the way SQLite invokes the xBestIndex method of virtual tables so that N-way...
dan [Sat, 5 Mar 2016 17:29:08 +0000 (17:29 +0000)] 
Change the way SQLite invokes the xBestIndex method of virtual tables so that N-way joins involving virtual tables work as expected.

FossilOrigin-Name: ffc65968ede2c402e616147e6e3d737e6f9de21d

9 years agoRemove the unused journal.c source file (its function have been subsumed into
drh [Sat, 5 Mar 2016 15:35:09 +0000 (15:35 +0000)] 
Remove the unused journal.c source file (its function have been subsumed into
memjournal.c).  Refactor some of the names in memjournal.c.  No functional
changes.

FossilOrigin-Name: 5f2a262d3f6b1531001326faf1d3b3d92c20a30a

9 years agoWork around (incorrect) ASAN warnings in memjournal.c.
drh [Sat, 5 Mar 2016 15:03:31 +0000 (15:03 +0000)] 
Work around (incorrect) ASAN warnings in memjournal.c.

FossilOrigin-Name: 4de09777dad6188b7e897473700af3c9655e8547

9 years agoFix an integer size mismatch problem in test_bestindex.c
drh [Sat, 5 Mar 2016 14:19:32 +0000 (14:19 +0000)] 
Fix an integer size mismatch problem in test_bestindex.c

FossilOrigin-Name: 2e35eb6b7464455467c868adfbcaad4da16d3207

9 years agoFix an incorrect #ifdef on sqlite3LogEstToInt().
drh [Sat, 5 Mar 2016 14:00:09 +0000 (14:00 +0000)] 
Fix an incorrect #ifdef on sqlite3LogEstToInt().

FossilOrigin-Name: dca7b23354a6b08c926b6ed3f7345d942a409862

9 years agoFix an assert() in sqlite3VarintLen(), even though it is impossible to hit
drh [Fri, 4 Mar 2016 21:18:09 +0000 (21:18 +0000)] 
Fix an assert() in sqlite3VarintLen(), even though it is impossible to hit
in SQLite due to the way sqlite3VarintLen() is used.

FossilOrigin-Name: 251424c5869f43012fc1e1a545de362036b883db

9 years agoDefer opening and writing statement journals until the size reaches a
drh [Fri, 4 Mar 2016 14:43:44 +0000 (14:43 +0000)] 
Defer opening and writing statement journals until the size reaches a
threshold (currently 64KiB).

FossilOrigin-Name: cb9302cca423de41305719a49208daa392ec09da

9 years agoUpdate test cases to taken deferred statement-journal opening into account.
drh [Fri, 4 Mar 2016 14:23:10 +0000 (14:23 +0000)] 
Update test cases to taken deferred statement-journal opening into account.

FossilOrigin-Name: 5b2fe5219ab9ad15969e3374894a75979b65cb3c

9 years agoMerge changes from trunk.
drh [Fri, 4 Mar 2016 13:08:35 +0000 (13:08 +0000)] 
Merge changes from trunk.

FossilOrigin-Name: a87305dfd49ee17632d0bce66ce7c2e9407b7b3e

9 years agoChange the default cache_size to -2000 (which means 2000*1024 bytes
drh [Fri, 4 Mar 2016 04:01:43 +0000 (04:01 +0000)] 
Change the default cache_size to -2000 (which means 2000*1024 bytes
independent of page_size).

FossilOrigin-Name: 2682e8e413fadbca0673f242769af17bfd291559

9 years agoChange the default page size for new database files to 4096 (from 1024).
drh [Fri, 4 Mar 2016 03:43:10 +0000 (03:43 +0000)] 
Change the default page size for new database files to 4096 (from 1024).
Except, when building the testfixture, preserve the legacy page size.
Also fix a comment on SQLITE_MAX_ATTACHED.

FossilOrigin-Name: 2e8a9ca9d3d6efddc31f01074d14acae56568c37

9 years agoDetect the presence of pread()/pwrite() system calls on unix systems and
drh [Fri, 4 Mar 2016 03:20:05 +0000 (03:20 +0000)] 
Detect the presence of pread()/pwrite() system calls on unix systems and
use them if available.

FossilOrigin-Name: 82cbf5ad2ed988a006106e188e98096a52e6779d

9 years agoFurther fixes to the pread()/pwrite() enabling logic. pread
drh [Fri, 4 Mar 2016 03:14:39 +0000 (03:14 +0000)] 
Further fixes to the pread()/pwrite() enabling logic.

FossilOrigin-Name: 38fb54e7854ac0500a88585ff9dd7487b4b2e586

9 years agoFix the build for cases when pread()/pwrite() are not available.
drh [Fri, 4 Mar 2016 03:02:06 +0000 (03:02 +0000)] 
Fix the build for cases when pread()/pwrite() are not available.

FossilOrigin-Name: 7d67d876b70c7a4199697c5b112d809c600e140e

9 years agoAdd the test_bestindex.c file to Makefile.in and Makefile.msc so that
drh [Fri, 4 Mar 2016 02:59:35 +0000 (02:59 +0000)] 
Add the test_bestindex.c file to Makefile.in and Makefile.msc so that
"make test" will work again.

FossilOrigin-Name: 6ec6b6a97e62be1abe1e349b5bc04c6f5ae88968

9 years agoUpdate the configure script to detect pread/pwrite and update os_unix.c to
drh [Fri, 4 Mar 2016 02:38:00 +0000 (02:38 +0000)] 
Update the configure script to detect pread/pwrite and update os_unix.c to
use those routines if they are available.

FossilOrigin-Name: 2cffb9e50bed77d1079603f5b4a71b7559de7294

9 years agoGet in-memory subjournals working for builds without SQLITE_ENABLE_ATOMIC_WRITE.
drh [Fri, 4 Mar 2016 00:13:29 +0000 (00:13 +0000)] 
Get in-memory subjournals working for builds without SQLITE_ENABLE_ATOMIC_WRITE.

FossilOrigin-Name: b5378dcea53d4cd1744d13ddee5e50869607b771

9 years agoMerge the latest updates from trunk.
drh [Thu, 3 Mar 2016 21:29:10 +0000 (21:29 +0000)] 
Merge the latest updates from trunk.

FossilOrigin-Name: 55c00f716dc98b188c91f3a5a010242c9497785f

9 years agoReduce the amount of heap memory required to store many schemas by storing
drh [Thu, 3 Mar 2016 21:22:53 +0000 (21:22 +0000)] 
Reduce the amount of heap memory required to store many schemas by storing
the column datatype appended to the column name (with a \000 separator),
rather than in separate memory allocation.

FossilOrigin-Name: 16fbf2e19c22df9441aef5c8b7f5670adc38a6b6

9 years agoAllow the left-hand side of IN operators on virtual tables to have the
drh [Thu, 3 Mar 2016 20:42:18 +0000 (20:42 +0000)] 
Allow the left-hand side of IN operators on virtual tables to have the
aConstraintUsage[].omit flag clear.

FossilOrigin-Name: 3eb74342740cd393e03aa38cd01690ccab173b76

9 years agoMerge 3.11.1 changes into trunk.
drh [Thu, 3 Mar 2016 17:54:30 +0000 (17:54 +0000)] 
Merge 3.11.1 changes into trunk.

FossilOrigin-Name: 7abc2dd953477797fa05421b061d73596aa025fb

9 years agoVersion 3.11.1 branch-3.11 version-3.11.1
drh [Thu, 3 Mar 2016 16:17:53 +0000 (16:17 +0000)] 
Version 3.11.1

FossilOrigin-Name: f047920ce16971e573bc6ec9a48b118c9de2b3a7

9 years agoIncrease the default upper bound on scope to 30.
drh [Thu, 3 Mar 2016 15:16:15 +0000 (15:16 +0000)] 
Increase the default upper bound on scope to 30.

FossilOrigin-Name: b1258814f6100f594210775e9e3007b5b0c65025

9 years agoAdd new test script bestindex1.test to the utf16 permutation. vtab-IN-opt
dan [Wed, 2 Mar 2016 17:57:53 +0000 (17:57 +0000)] 
Add new test script bestindex1.test to the utf16 permutation.

FossilOrigin-Name: 5893e97244126c80762e55249461f21a4e81bb70

9 years agoAdd an extra test for the change on this branch.
dan [Wed, 2 Mar 2016 16:13:53 +0000 (16:13 +0000)] 
Add an extra test for the change on this branch.

FossilOrigin-Name: d2d28251566d2a0ec1a07fe5b8ed047136840bfd

9 years agoEnhance test_bestindex.c so that it can be used to test plans generated by xBestIndex.
dan [Wed, 2 Mar 2016 16:01:41 +0000 (16:01 +0000)] 
Enhance test_bestindex.c so that it can be used to test plans generated by xBestIndex.

FossilOrigin-Name: 3c15a9bf45cd7dae2fbd99123b8dd75ce278d6e4

9 years agoFix a recently introduced problem in permutations.test causing an error when the...
dan [Wed, 2 Mar 2016 15:37:50 +0000 (15:37 +0000)] 
Fix a recently introduced problem in permutations.test causing an error when the QUICKTEST_OMIT environment variable is defined.

FossilOrigin-Name: 45bc9557722cc2a1398a53fdb2acd8b6692f3121

9 years agoFix an error in an fts5 test script.
dan [Wed, 2 Mar 2016 13:26:19 +0000 (13:26 +0000)] 
Fix an error in an fts5 test script.

FossilOrigin-Name: b2a03e2d479aec2fc68dfc83a1fa34c740f44e13

9 years agoAllow the left-hand side of IN operators on virtual tables to have the
drh [Wed, 2 Mar 2016 03:28:07 +0000 (03:28 +0000)] 
Allow the left-hand side of IN operators on virtual tables to have the
aConstraintUsage[].omit flag clear.

FossilOrigin-Name: 1622623cbbfc4325c53d731aba78ca9c382ec612

9 years agoAdd the optional -DSERIES_OMIT_CONSTRAINT_VERIFY=0 option to the series.c
drh [Wed, 2 Mar 2016 00:58:49 +0000 (00:58 +0000)] 
Add the optional -DSERIES_OMIT_CONSTRAINT_VERIFY=0 option to the series.c
extension that implements the generate_series() virtual table.

FossilOrigin-Name: 3d9daa929c0abe6dc01e800ef343b0eef2f0c76a

9 years agoNew test cases and infrastructure for testing the xBestIndex method of
drh [Tue, 1 Mar 2016 22:48:00 +0000 (22:48 +0000)] 
New test cases and infrastructure for testing the xBestIndex method of
virtual tables.

FossilOrigin-Name: 1d41c161165006d6c2af47e476f05fb13039f8b8

9 years agoImproved debugging output with wheretrace. Fix some typos in test script
drh [Tue, 1 Mar 2016 22:41:27 +0000 (22:41 +0000)] 
Improved debugging output with wheretrace.  Fix some typos in test script
comments.

FossilOrigin-Name: 13a37fd487ce7d4f98a12f7a67a9c05dadc66557

9 years agoFix a memory leak in the test code on this branch. test-bestindex
dan [Tue, 1 Mar 2016 18:35:55 +0000 (18:35 +0000)] 
Fix a memory leak in the test code on this branch.

FossilOrigin-Name: 7a1add56341f43dc41adc7b370e58860f4dd50a3

9 years agoAllow test_bestindex.c to set the omit flag for a constraint.
dan [Tue, 1 Mar 2016 18:24:36 +0000 (18:24 +0000)] 
Allow test_bestindex.c to set the omit flag for a constraint.

FossilOrigin-Name: 759b9d5b22aa60cc1d6b606f81eb7366c28cbcbe

9 years agoAdd test code useful for testing the planners use of teh virtual table xBestIndex...
dan [Tue, 1 Mar 2016 18:07:43 +0000 (18:07 +0000)] 
Add test code useful for testing the planners use of teh virtual table xBestIndex() method.

FossilOrigin-Name: de034c0db66298454ae8418949d58eb6e223c0de

9 years agoDo not attempt to run fts5bigtok.test or fts5merge2.test if FTS5 is not compiled in.
dan [Tue, 1 Mar 2016 16:56:26 +0000 (16:56 +0000)] 
Do not attempt to run fts5bigtok.test or fts5merge2.test if FTS5 is not compiled in.

FossilOrigin-Name: f7ed373953c2dea0919a85dfb461dfef512cd5fc

9 years agoAdd -DSQLITE_ENABLE_FTS5 to one of the release-test configurations in releasetest...
dan [Tue, 1 Mar 2016 16:02:57 +0000 (16:02 +0000)] 
Add -DSQLITE_ENABLE_FTS5 to one of the release-test configurations in releasetest.tcl. Run fts5 tests as part of "make test" if SQLITE_ENABLE_FTS5 is defined.

FossilOrigin-Name: 3cee93716f2aece03bf9b835fb7b5294e4ddc176

9 years agoRemove a forgotten "breakpoint" command from an FTS5 test script.
drh [Tue, 1 Mar 2016 15:52:41 +0000 (15:52 +0000)] 
Remove a forgotten "breakpoint" command from an FTS5 test script.

FossilOrigin-Name: 61927c8f3156c6e61b768318b3cd3bcc4144e17b

9 years agoIncrease the version number to 3.11.1
drh [Tue, 1 Mar 2016 15:41:31 +0000 (15:41 +0000)] 
Increase the version number to 3.11.1

FossilOrigin-Name: 2dcd2fdafe933b74e2d90923986c5ee5791d8223

9 years agoMerge branch-3.11-matchinfo into this branch.
dan [Tue, 1 Mar 2016 15:09:15 +0000 (15:09 +0000)] 
Merge branch-3.11-matchinfo into this branch.

FossilOrigin-Name: 42358170b35cc3e25c42f20e56f3f67e809001ba

9 years agoFix a problem in fts5 where a corrupt db could lead to a (huge) buffer overread.... branch-3.11-matchinfo
dan [Tue, 1 Mar 2016 14:51:36 +0000 (14:51 +0000)] 
Fix a problem in fts5 where a corrupt db could lead to a (huge) buffer overread. Cherrypick of [c9a30e117f].

FossilOrigin-Name: daef5869f4d62ebb24eb03b79fe4be0812fa0496

9 years agoFix an fts5 problem causing 'optimize' to corrupt the fts index under some circumstan...
dan [Tue, 1 Mar 2016 14:50:55 +0000 (14:50 +0000)] 
Fix an fts5 problem causing 'optimize' to corrupt the fts index under some circumstances. Cherrypick of [251d6473f7].

FossilOrigin-Name: 5b1b7ab5d67f3d691e52ba57dbc14c52d90c6631

9 years agoBetter estimatedCost in the xBestIndex method of the generate_series vtab.
drh [Tue, 1 Mar 2016 02:11:50 +0000 (02:11 +0000)] 
Better estimatedCost in the xBestIndex method of the generate_series vtab.

FossilOrigin-Name: f2c16094a536e7ef62444d0fe38cbee2a4999426

9 years agoWhen using a temporary file for a statement journal, store the first 64KiB in memory...
dan [Mon, 29 Feb 2016 20:18:21 +0000 (20:18 +0000)] 
When using a temporary file for a statement journal, store the first 64KiB in memory. If the file grows larger than that, flush it to disk and free the memory. Hardcoding to 64KiB is just an experiment to check that the memjournal.c code works.

FossilOrigin-Name: 44b2dc18e200e87cf062cb8f1659727c53fa36e9

9 years agoFix minor problems with new code in memjournal.c.
dan [Mon, 29 Feb 2016 20:00:13 +0000 (20:00 +0000)] 
Fix minor problems with new code in memjournal.c.

FossilOrigin-Name: 9fd3f7b9c93325a83cdbe7dc9ee312b22a9c2898

9 years agoFix a problem in fts5 where a corrupt db could lead to a (huge) buffer overread.
dan [Mon, 29 Feb 2016 17:34:16 +0000 (17:34 +0000)] 
Fix a problem in fts5 where a corrupt db could lead to a (huge) buffer overread.

FossilOrigin-Name: c9a30e117f2c6c9ef0cc0c6ca5227d2961715b8f

9 years agoFix an fts5 problem causing 'optimize' to corrupt the fts index under some circumstances.
dan [Mon, 29 Feb 2016 17:16:26 +0000 (17:16 +0000)] 
Fix an fts5 problem causing 'optimize' to corrupt the fts index under some circumstances.

FossilOrigin-Name: 251d6473f7c9ad95adbdcc49cb8eaf7c0956764b

9 years agoReduce the amount of heap required to store many schemas by storing each schema-storage
drh [Mon, 29 Feb 2016 15:53:11 +0000 (15:53 +0000)] 
Reduce the amount of heap required to store many schemas by storing each
column datatype appended to the column name, rather than as a separate
allocation.

FossilOrigin-Name: 842b21162713bb141b845b01c136457a31af4ab0

9 years agoVery minor improvement to the performance and reduction in size to the
drh [Mon, 29 Feb 2016 13:44:38 +0000 (13:44 +0000)] 
Very minor improvement to the performance and reduction in size to the
parser by capturing the name and datatype of table columns in a single
grammar rule reduction.

FossilOrigin-Name: 4b55c520f554163edc174e5995e66242f169cb04

9 years agoFurther simplifications to the grammar.
drh [Mon, 29 Feb 2016 13:37:21 +0000 (13:37 +0000)] 
Further simplifications to the grammar.

FossilOrigin-Name: 519fd03b845c9b53df9e5397282df2e99f36a672

9 years agoUpdate the parser so that it pulls out the column name and type all in one
drh [Sat, 27 Feb 2016 23:25:36 +0000 (23:25 +0000)] 
Update the parser so that it pulls out the column name and type all in one
go, rather than using separate reductions.

FossilOrigin-Name: ad3ffe2eec8e8ea2591a78c723d2665735553cb0

9 years agoEliminate the need for the Column.zDflt (using Column.pDflt instead) to reduce
drh [Sat, 27 Feb 2016 21:16:04 +0000 (21:16 +0000)] 
Eliminate the need for the Column.zDflt (using Column.pDflt instead) to reduce
the amount of memory needed to hold the schema.

FossilOrigin-Name: d8c94a46dfa94930732c2de2aa79675c5087d36e

9 years agoExtend the code in memjournal.c so that it subsumes the role of journal.c. And (untes...
dan [Sat, 27 Feb 2016 20:14:55 +0000 (20:14 +0000)] 
Extend the code in memjournal.c so that it subsumes the role of journal.c. And (untested) can flush journal or statement journal files to disk after they grow to a specified size.

FossilOrigin-Name: e0b0b4316531fc8afa74b4882d9c74a91030ec69

9 years agoTighter description of I/O stats in the shell. Show I/O stats on speedtest1.c.
drh [Sat, 27 Feb 2016 19:19:22 +0000 (19:19 +0000)] 
Tighter description of I/O stats in the shell.  Show I/O stats on speedtest1.c.

FossilOrigin-Name: f681d800340e0e710f73d0f7c09101f899249183

9 years agoEnhance the ".stats" command in sqlite3.exe to show one-time stats information
drh [Sat, 27 Feb 2016 17:12:36 +0000 (17:12 +0000)] 
Enhance the ".stats" command in sqlite3.exe to show one-time stats information
if invoked with one argument.  Also show /proc/PID/io information if run on
Linux.

FossilOrigin-Name: 3c36948f16b58fe8042c37d0df634308b4e48217

9 years agoFix a requirement mark to conform to a typo fix in the documentation.
drh [Sat, 27 Feb 2016 14:04:27 +0000 (14:04 +0000)] 
Fix a requirement mark to conform to a typo fix in the documentation.

FossilOrigin-Name: d1392c627934b89cdb86d82e73d56e8f76952b30

9 years agoEnhance documentation of sqlite3_snapshot_open() to explain that the database
drh [Sat, 27 Feb 2016 14:00:07 +0000 (14:00 +0000)] 
Enhance documentation of sqlite3_snapshot_open() to explain that the database
connection must have participated in at least one read operation prior to
the beginning of the transaction for which the snapshot is to be opened.
Add test cases for this fact.

FossilOrigin-Name: 33dd671cb9c17f08dbc61aed91e80eaeb84bfaf5

9 years agoAdd 'Replace.exe' to the MSVC clean target.
mistachkin [Sat, 27 Feb 2016 00:21:44 +0000 (00:21 +0000)] 
Add 'Replace.exe' to the MSVC clean target.

FossilOrigin-Name: c2277fab12d2aecf9e0f69683741a194df17e854

9 years agoFix typo in ICU error message.
mistachkin [Sat, 27 Feb 2016 00:21:16 +0000 (00:21 +0000)] 
Fix typo in ICU error message.

FossilOrigin-Name: 00c8fffd47cec763857389e1e91c026ba3179182

9 years agoMake sure the Replace.cs file is included in the autoconf tarball.
drh [Sat, 27 Feb 2016 00:07:18 +0000 (00:07 +0000)] 
Make sure the Replace.cs file is included in the autoconf tarball.

FossilOrigin-Name: b850df483d4dfc677ec61b119d8c1162b6a823d6

9 years agoSupport generating the '.def' file using the autoconf Makefile for MSVC.
mistachkin [Fri, 26 Feb 2016 23:13:16 +0000 (23:13 +0000)] 
Support generating the '.def' file using the autoconf Makefile for MSVC.

FossilOrigin-Name: 3617564cb630ed418badf43d2c0291c11c166d12

9 years agoFix a potential buffer overflow in the ICU upper() function.
drh [Fri, 26 Feb 2016 21:20:57 +0000 (21:20 +0000)] 
Fix a potential buffer overflow in the ICU upper() function.

FossilOrigin-Name: b8dc1b9f5d413000387bfe784b69f5d0ee5c0489

9 years agoFurther refinements to the MSVC batch build process.
mistachkin [Fri, 26 Feb 2016 21:03:16 +0000 (21:03 +0000)] 
Further refinements to the MSVC batch build process.

FossilOrigin-Name: cf4e4fbdb6a29b7fbd5150958ab4f8f2a1cd7f21

9 years agoFurther refinements to the MSVC batch build process.
mistachkin [Fri, 26 Feb 2016 21:01:37 +0000 (21:01 +0000)] 
Further refinements to the MSVC batch build process.

FossilOrigin-Name: 4e54e9c0fefe417f94a2d95921acf61b1dda5ca4

9 years agoFix the ICU extension LIKE function so that it does not read past the end of a buffer...
dan [Fri, 26 Feb 2016 16:03:29 +0000 (16:03 +0000)] 
Fix the ICU extension LIKE function so that it does not read past the end of a buffer if it it passed malformed utf-8.

FossilOrigin-Name: 424b7aee3310b9782bd312589dc3d9f287aa04b8

9 years agoProvide the new SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER option to
drh [Fri, 26 Feb 2016 15:38:24 +0000 (15:38 +0000)] 
Provide the new SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER option to
sqlite3_db_config() that can be used to activate the two-argument version
of fts3_tokenizer() for a specific database connection at run-time.

FossilOrigin-Name: 374b5108087a2eae03676c0f3469b37a272145bf

9 years agoFix a typo in a comment (though an important comment in that it is used
drh [Fri, 26 Feb 2016 13:22:21 +0000 (13:22 +0000)] 
Fix a typo in a comment (though an important comment in that it is used
to generate documentation).

FossilOrigin-Name: ff3d7f845e1875d6729f64f5231db1c376892f31

9 years agoEphemeral tables used to hold manifested views may not be unordered since
drh [Fri, 26 Feb 2016 04:13:39 +0000 (04:13 +0000)] 
Ephemeral tables used to hold manifested views may not be unordered since
they might be subject to an ordered comparison if they are part of a join.

FossilOrigin-Name: 3ef6a3153267d5328202fea24fd29ff4d5409295

9 years agoRemove a debuggin "exit" command mistakenly left in the "where.test" module.
drh [Fri, 26 Feb 2016 04:04:07 +0000 (04:04 +0000)] 
Remove a debuggin "exit" command mistakenly left in the "where.test" module.

FossilOrigin-Name: beda0b8c76c2c7328a44156257c978cf8f5df59b

9 years agoAdd some comments in the VSIX test tool.
mistachkin [Thu, 25 Feb 2016 23:27:02 +0000 (23:27 +0000)] 
Add some comments in the VSIX test tool.

FossilOrigin-Name: c871473ffee6dbb0f5b47f1c1329c84b902368ae

9 years agoAdd tool for smoke-testing the UWP VSIX package.
mistachkin [Thu, 25 Feb 2016 23:25:00 +0000 (23:25 +0000)] 
Add tool for smoke-testing the UWP VSIX package.

FossilOrigin-Name: d27f32c6d72182198ae6d6cf8e385be76335dc65

9 years agoEnhance checking of prerequisites in the vsixtest tool. vsixTest
mistachkin [Thu, 25 Feb 2016 23:22:26 +0000 (23:22 +0000)] 
Enhance checking of prerequisites in the vsixtest tool.

FossilOrigin-Name: 799d5f09ed058898167e43bd9c8d1bf8c5df23ba

9 years agoFix an incorrect cost computation for sorting (introduced just a few
drh [Thu, 25 Feb 2016 23:21:41 +0000 (23:21 +0000)] 
Fix an incorrect cost computation for sorting (introduced just a few
check-ins ago).  Should be NlogN, not NloglogN.

FossilOrigin-Name: 2459d3238853951bc3a507dd975e7ec921cf8446

9 years agoSmall optimization in FK handling.
mistachkin [Thu, 25 Feb 2016 21:38:28 +0000 (21:38 +0000)] 
Small optimization in FK handling.

FossilOrigin-Name: e0d25913b73a813f5987aa70b364b00f19351663

9 years agoChange the srcck1.c utility program to use only unsigned characters.
drh [Thu, 25 Feb 2016 21:27:03 +0000 (21:27 +0000)] 
Change the srcck1.c utility program to use only unsigned characters.

FossilOrigin-Name: d64d005eb5df2e3eb1248fc8eff8b1b683e48c74

9 years agoChange the "PRAGMA stats" command to report size values in LogEst units.
drh [Thu, 25 Feb 2016 21:19:03 +0000 (21:19 +0000)] 
Change the "PRAGMA stats" command to report size values in LogEst units.
The eliminates the need for sqlite3LogEstToInt() unless non-standard
compile-time options are used, so leave it out except in those cases.

FossilOrigin-Name: 832c237fcbe83dd4f5a18a06acb0aeb7e2b9e712

9 years agoDisable the RESTRICT foreign key action if "PRAGMA defer_foreign_keys" is set.
dan [Thu, 25 Feb 2016 20:17:55 +0000 (20:17 +0000)] 
Disable the RESTRICT foreign key action if "PRAGMA defer_foreign_keys" is set.

FossilOrigin-Name: 9ffff484bb4b67c29dda6180d7d766ad13988fe1

9 years agoQuery planner improvements: Take the LIMIT into account when estimated the
drh [Thu, 25 Feb 2016 18:40:18 +0000 (18:40 +0000)] 
Query planner improvements:  Take the LIMIT into account when estimated the
cost of an ORDER BY.  Avoid automatic indexes on query loops that are expected
to run less than twice.

FossilOrigin-Name: bf46179d4484376909dce40ffcc06fecb19b3544

9 years agoImprovement on the previous check-in: disallow automatic indexes for any planner-improvements
drh [Thu, 25 Feb 2016 18:22:09 +0000 (18:22 +0000)] 
Improvement on the previous check-in:  disallow automatic indexes for any
loop that is expected to run less than twice.

FossilOrigin-Name: aab53a21894ba51d325fd8f8f4bb4163ece74391

9 years agoDo not use an automatic index on an outer loop that only runs once.
drh [Thu, 25 Feb 2016 18:03:38 +0000 (18:03 +0000)] 
Do not use an automatic index on an outer loop that only runs once.

FossilOrigin-Name: 5957e793414ff80ed01a7a67e70c3fd096a3f6e0

9 years agoTake the LIMIT clause into account when estimating the cost of sorting.
drh [Thu, 25 Feb 2016 16:04:59 +0000 (16:04 +0000)] 
Take the LIMIT clause into account when estimating the cost of sorting.

FossilOrigin-Name: d491745cab951e0de70f1f79b7640ea8aff6e8bb

9 years agoIn the command-line shell: When the ".import" command is creating a new
drh [Thu, 25 Feb 2016 13:33:02 +0000 (13:33 +0000)] 
In the command-line shell:  When the ".import" command is creating a new
table using column names from the first row of CSV input, make sure
double-quotes in the name are properly escaped.

FossilOrigin-Name: 2e67a1c823c7003e7d2619c7d8b6db6ce046c527

9 years agoImprove readability and logging of the vsixtest script.
mistachkin [Thu, 25 Feb 2016 08:02:16 +0000 (08:02 +0000)] 
Improve readability and logging of the vsixtest script.

FossilOrigin-Name: 4fe7c4e90b7adbb1630b4aa15709968a1fcc7d83

9 years agoEnable all steps and add/update comments.
mistachkin [Thu, 25 Feb 2016 02:56:53 +0000 (02:56 +0000)] 
Enable all steps and add/update comments.

FossilOrigin-Name: 788f99f47f40be42f30d3f324983f39e84d8cfbb

9 years agoMore work. Install and build steps are now tested.
mistachkin [Thu, 25 Feb 2016 02:49:58 +0000 (02:49 +0000)] 
More work.  Install and build steps are now tested.

FossilOrigin-Name: 0ab74373bd37d48d6afa7aecb67885afcd3a85b1