]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
8 years agoRemove obselete and unused logic in the update code generator. unpacked-IdxInsert
drh [Fri, 11 Nov 2016 18:19:05 +0000 (18:19 +0000)] 
Remove obselete and unused logic in the update code generator.
Fix the sqlite3BtreeMovetoUnpacked() routine so that it remembers the
rowid of the row that it landed on.

FossilOrigin-Name: 1a587d72f981cb7064cfd8916a52a83ad9ba6074

8 years agoMerge enhancements and bug-fixes from trunk.
drh [Fri, 11 Nov 2016 17:52:57 +0000 (17:52 +0000)] 
Merge enhancements and bug-fixes from trunk.

FossilOrigin-Name: 5515b827dc1805a3010018cd6abf222b03525d24

8 years agoFix a problem with switching from wal to rollback mode when
dan [Fri, 11 Nov 2016 17:08:51 +0000 (17:08 +0000)] 
Fix a problem with switching from wal to rollback mode when
SQLITE_DBCONFIG_NO_CKPT_ON_CLOSE is configured.

FossilOrigin-Name: 46e0016207b8e7df2ae6c7491fd0f3c2926eed21

8 years agoAdd the test/ossfuzz.c interface adaptor for OSS-FUZZ. Make previsions for
drh [Fri, 11 Nov 2016 16:33:47 +0000 (16:33 +0000)] 
Add the test/ossfuzz.c interface adaptor for OSS-FUZZ.  Make previsions for
testing the adaptor using fuzzcheck.c.

FossilOrigin-Name: 119d6ef8478ea6ab07dfd0e974d2f5a8dcfce87e

8 years agoHandle some obscure "row value misused" cases that could cause segfaults or
dan [Fri, 11 Nov 2016 15:49:01 +0000 (15:49 +0000)] 
Handle some obscure "row value misused" cases that could cause segfaults or
assertion failures.

FossilOrigin-Name: fba5fddb1c40af75634b01c1f06d2610df697e01

8 years agoBack out the "--raw" option on ".read" in the command-line shell. Instead,
drh [Fri, 11 Nov 2016 14:54:22 +0000 (14:54 +0000)] 
Back out the "--raw" option on ".read" in the command-line shell.  Instead,
fix the command-line shell so that if EOF is reached without seeing a
final semicolon, it goes ahead and passes the accumulated SQL text to
SQLite.

FossilOrigin-Name: f98c8ac8c485098f163400d3a92d6afb4008adbe

8 years agoAdd extra tests for the xBestIndex() virtual table method.
dan [Fri, 11 Nov 2016 09:51:46 +0000 (09:51 +0000)] 
Add extra tests for the xBestIndex() virtual table method.

FossilOrigin-Name: 642a8fba91d2bf61b494b845cb499714363209b1

8 years agoIn the command line shell, avoid using utf8_printf() in a couple places where it...
mistachkin [Fri, 11 Nov 2016 05:19:45 +0000 (05:19 +0000)] 
In the command line shell, avoid using utf8_printf() in a couple places where it is superfluous.

FossilOrigin-Name: 6311a8bdb1f2e1813516a32d171aae030bd73fd3

8 years agoAdd the --raw option to the ".read" dot-command of the command-line shell,
drh [Fri, 11 Nov 2016 04:37:00 +0000 (04:37 +0000)] 
Add the --raw option to the ".read" dot-command of the command-line shell,
to cause the named file to be read and sent directly into sqlite3_exec()
without any interpretation.

FossilOrigin-Name: 09233770b24d69a305556241a6beeb5e4d77c0d7

8 years agoTake care not to try to generate code for the ATTACH and DETACH commands
drh [Fri, 11 Nov 2016 03:37:24 +0000 (03:37 +0000)] 
Take care not to try to generate code for the ATTACH and DETACH commands
if there were syntax errors during parsing.
Fix for ticket [2f1b168ab4d4844]

FossilOrigin-Name: b0ff183b8ffdbebece06cfea1c6781fc0e8e8547

8 years agoAvoid a few unnecessary calls to sqlite3BtreeMovetoUnpacked().
drh [Thu, 10 Nov 2016 20:42:08 +0000 (20:42 +0000)] 
Avoid a few unnecessary calls to sqlite3BtreeMovetoUnpacked().

FossilOrigin-Name: eac0e827a61cfec4dd9b6d407ff398e9fda3510b

8 years agoWhen doing a REPLACE on a WITHOUT ROWID table with no secondary indexes,
drh [Thu, 10 Nov 2016 17:01:36 +0000 (17:01 +0000)] 
When doing a REPLACE on a WITHOUT ROWID table with no secondary indexes,
bypass the OP_NoConflict/OP_Delete sequence and directly overwrite any
preexisting row, for a performance increase.

FossilOrigin-Name: f7041cbb63b912f9ecad538804b6f2383efbec4e

8 years agoRemove C++ style comments. No code changes.
drh [Thu, 10 Nov 2016 16:07:43 +0000 (16:07 +0000)] 
Remove C++ style comments.  No code changes.

FossilOrigin-Name: 42f8aa6231bf4ed74bebdc85aa79d23dc20b3c14

8 years agoAdd the unpacked key fields to OP_IdxInsert for INSERT and UPDATE statements.
drh [Thu, 10 Nov 2016 14:24:04 +0000 (14:24 +0000)] 
Add the unpacked key fields to OP_IdxInsert for INSERT and UPDATE statements.

FossilOrigin-Name: 67602e40f122cbb6354048a64c5d3a72b2855ec7

8 years agoComment changes that attempt to better explain the behavior of the "seekResult"
drh [Wed, 9 Nov 2016 20:14:34 +0000 (20:14 +0000)] 
Comment changes that attempt to better explain the behavior of the "seekResult"
field on VdbeCursor objects and the seekResult parameter to
sqlite3BtreeInsert() and the OPFLAG_USESEEKRESULT flag on insert opcodes.
No changes to code.

FossilOrigin-Name: 345b46be75bdf6f9fb7367a6164d89bae11995a6

8 years agoFix a simple comment typo. No changes to code.
drh [Wed, 9 Nov 2016 16:03:36 +0000 (16:03 +0000)] 
Fix a simple comment typo.  No changes to code.

FossilOrigin-Name: 51d0aed8d63d0710e4aa8925ff18cf3c45dc9e42

8 years agoFix typo in the CSV extension.
mistachkin [Wed, 9 Nov 2016 01:46:13 +0000 (01:46 +0000)] 
Fix typo in the CSV extension.

FossilOrigin-Name: b4889588246c33374ff3758e21ccc4ce246380b6

8 years agoMake use of the unpacked key on the OP_IdxInsert on sorters with a LIMIT.
drh [Wed, 9 Nov 2016 01:38:56 +0000 (01:38 +0000)] 
Make use of the unpacked key on the OP_IdxInsert on sorters with a LIMIT.

FossilOrigin-Name: 42db7cd2c0b367f7dfe733bdaf006538937b812a

8 years agoFix a typo on the OP_IdxInsert documentation. No code changes.
drh [Wed, 9 Nov 2016 01:19:25 +0000 (01:19 +0000)] 
Fix a typo on the OP_IdxInsert documentation.  No code changes.

FossilOrigin-Name: e4acd98207bf12b28f6c0f77896ba8f0b0a155d5

8 years agoAdd a DISTINCT query to speedtest1.c. Also change INSERT OR REPLACE into
drh [Wed, 9 Nov 2016 01:07:10 +0000 (01:07 +0000)] 
Add a DISTINCT query to speedtest1.c.  Also change INSERT OR REPLACE into
just REPLACE.

FossilOrigin-Name: 754ee844958bdc3b96acfd1f5395da5796e54a82

8 years agoRemove the "experimental" marking from the sqlite3_preupdate interfaces.
drh [Wed, 9 Nov 2016 00:57:27 +0000 (00:57 +0000)] 
Remove the "experimental" marking from the sqlite3_preupdate interfaces.
But be sure all the interface definitions are within
documentation.

FossilOrigin-Name: d6dd2ad35ed17e980ed564688499c802e5850386

8 years agoEnhance the OP_IdxInsert opcode to optionally accept unpacked key material.
drh [Wed, 9 Nov 2016 00:10:33 +0000 (00:10 +0000)] 
Enhance the OP_IdxInsert opcode to optionally accept unpacked key material.

FossilOrigin-Name: 89d958abbac45f2ca5954080cd9e74ec9a07ebb2

8 years agoAvoid superfluous cursor seeks in "INSERT OR REPLACE" statements.
dan [Tue, 8 Nov 2016 19:22:32 +0000 (19:22 +0000)] 
Avoid superfluous cursor seeks in "INSERT OR REPLACE" statements.

FossilOrigin-Name: bec5b6d4d083556d111a89186b4f7b35b5e7cebf

8 years agoAvoid generating OP_TableLock unnecessary instructions on btrees that
drh [Tue, 8 Nov 2016 17:19:22 +0000 (17:19 +0000)] 
Avoid generating OP_TableLock unnecessary instructions on btrees that
are not sharable.

FossilOrigin-Name: 8cb8516d2009d52d35a22263e4c892f162b34b81

8 years agoFix the speedtest1.c test program so that it gives closing "%" wildcards
drh [Tue, 8 Nov 2016 16:27:59 +0000 (16:27 +0000)] 
Fix the speedtest1.c test program so that it gives closing "%" wildcards
on LIKE searches.

FossilOrigin-Name: c2f84f637f994c3b4522b48161185a4a2c5bca23

8 years agoTweaks to speedtest1.c to better reflect mobile usage based on findings in
drh [Tue, 8 Nov 2016 00:30:11 +0000 (00:30 +0000)] 
Tweaks to speedtest1.c to better reflect mobile usage based on findings in
the "Pocket Data" paper by Kennedy, Ajay, Challen, and Ziarek.

FossilOrigin-Name: b5733cae3c519482cf6bc642bd63814afb113d35

8 years agoFix OOM error reporting in the json1_group_object() SQL function. Remove
drh [Mon, 7 Nov 2016 18:18:08 +0000 (18:18 +0000)] 
Fix OOM error reporting in the json1_group_object() SQL function.  Remove
an unreachable branch from the JSON1 logic.

FossilOrigin-Name: b54098491531cd26ed461275ef4aae3d3ec9065e

8 years agoReplace some unreachable branches from the JSON1 extension with assert().
drh [Mon, 7 Nov 2016 15:15:42 +0000 (15:15 +0000)] 
Replace some unreachable branches from the JSON1 extension with assert().

FossilOrigin-Name: 145cd13e3c5a42a717807bcc13c0f7212f38bff8

8 years agoFix the JSON1 extension so that the JSON validator correctly rejects malformed
drh [Mon, 7 Nov 2016 13:37:28 +0000 (13:37 +0000)] 
Fix the JSON1 extension so that the JSON validator correctly rejects malformed
backslash escapes within string literals.

FossilOrigin-Name: 7a63539169a384960e30a63e0c8e9b0f07fa431e

8 years agoAvoid a crash that can occur after an obscure OOM in the built-in INSTR()
dan [Fri, 4 Nov 2016 12:05:29 +0000 (12:05 +0000)] 
Avoid a crash that can occur after an obscure OOM in the built-in INSTR()
function.

FossilOrigin-Name: b86b79c442a58d10aa005ba4f34095375a88d242

8 years agoMark the ICU extension functions as deterministic.
drh [Fri, 4 Nov 2016 12:03:26 +0000 (12:03 +0000)] 
Mark the ICU extension functions as deterministic.

FossilOrigin-Name: afbbb6c66a85ff3f4c8dce677e0892a2a51d2b8e

8 years agoAdd an assert() to silence a coverity false-positive.
drh [Fri, 4 Nov 2016 11:23:30 +0000 (11:23 +0000)] 
Add an assert() to silence a coverity false-positive.

FossilOrigin-Name: 97354093bceff28714a605068851cfa026c8272a

8 years agoFix a test case in vacuum5.test so that it works with the in-memory journal
dan [Fri, 4 Nov 2016 07:25:43 +0000 (07:25 +0000)] 
Fix a test case in vacuum5.test so that it works with the in-memory journal
permutation.

FossilOrigin-Name: 81c86401463df6be4ac21987b3b1703e38ab933b

8 years agoReplace a couple more references to Tcl 8.5 in the Windows build tools.
mistachkin [Thu, 3 Nov 2016 21:35:10 +0000 (21:35 +0000)] 
Replace a couple more references to Tcl 8.5 in the Windows build tools.

FossilOrigin-Name: 1d0e43c549c36d0919a18d61285e94cad29e7a07

8 years agoFix a test case in vacuum5.test sot aht it works with
dan [Thu, 3 Nov 2016 19:24:14 +0000 (19:24 +0000)] 
Fix a test case in vacuum5.test sot aht it works with
-DSQLITE_ENABLE_ATOMIC_WRITE.

FossilOrigin-Name: 3ca80010397676eca57c8a4c9b3a9c2c40629663

8 years agoFix a test case in vacuum5.test so that it works with -DSQLITE_TEMP_STORE=2.
dan [Thu, 3 Nov 2016 19:01:20 +0000 (19:01 +0000)] 
Fix a test case in vacuum5.test so that it works with -DSQLITE_TEMP_STORE=2.

FossilOrigin-Name: f5dd95e25c703a825ad7af9a4b3886bd3ef8c2e8

8 years agoIn the command-line shell, fix the .imposter command so that it works
drh [Thu, 3 Nov 2016 13:12:28 +0000 (13:12 +0000)] 
In the command-line shell, fix the .imposter command so that it works
with indexes on expressions.  Fix the ".mode quote" mode so that it works
with ".headers ON".

FossilOrigin-Name: ba9873da94d21873ff76f16a5332fc0092d83f70

8 years agoAdd the ".imposter" command to the command-line shell.
drh [Thu, 3 Nov 2016 13:01:38 +0000 (13:01 +0000)] 
Add the ".imposter" command to the command-line shell.

FossilOrigin-Name: be3ec8fdcf1541017ca9375df07645db2a9a3f5a

8 years agoFix an possible NULL pointer deference in the command-line shell that can
drh [Thu, 3 Nov 2016 02:25:30 +0000 (02:25 +0000)] 
Fix an possible NULL pointer deference in the command-line shell that can
occur when using imposter mode.

FossilOrigin-Name: ad08753a8bbf073ec4af9c3a5783ed664244d954

8 years agoAdjust the MSVC makefile to use Tcl8.6 by default.
drh [Wed, 2 Nov 2016 19:49:22 +0000 (19:49 +0000)] 
Adjust the MSVC makefile to use Tcl8.6 by default.

FossilOrigin-Name: def8f598b8e33b5bab3a024cc57f4c5e300cd8cd

8 years agoFix an issue that was causing the new database image to be assembled entirely
dan [Wed, 2 Nov 2016 14:50:19 +0000 (14:50 +0000)] 
Fix an issue that was causing the new database image to be assembled entirely
in heap memory when VACUUMing a database, even if it should use a temp file.
This could cause SQLITE_NOMEM errors when vacuuming very large databases on
32-bit systems.

FossilOrigin-Name: 3028845329c9b7acdec2ec8b01d00d782347454c

8 years agoFix a requirement mark. No changes to code.
drh [Wed, 2 Nov 2016 13:18:46 +0000 (13:18 +0000)] 
Fix a requirement mark.  No changes to code.

FossilOrigin-Name: d18f61b78c8fafef742efbc890382537e8584180

8 years agoUse NOT NULL partial indexes when the query is constrained by a single
drh [Wed, 2 Nov 2016 02:17:52 +0000 (02:17 +0000)] 
Use NOT NULL partial indexes when the query is constrained by a single
LIKE or GLOB.

FossilOrigin-Name: 9b3a3b41b59a7ce7d3dd82c7402d6fdc6a5ca43c

8 years agoAdd the SQLITE_DBCONFIG_NO_CKPT_ON_CLOSE sqlite3_dbconfig() option - for
dan [Mon, 31 Oct 2016 16:49:18 +0000 (16:49 +0000)] 
Add the SQLITE_DBCONFIG_NO_CKPT_ON_CLOSE sqlite3_dbconfig() option - for
disabling SQLite's default checkpoint-on-close behaviour.

FossilOrigin-Name: 6d142025c74f66f2d48155354b556cd5b2682cb2

8 years agoAdd the SQLITE_DBCONFIG_NO_CKPT_ON_CLOSE sqlite3_dbconfig() option - for no-ckpt-on-close
dan [Mon, 31 Oct 2016 16:16:49 +0000 (16:16 +0000)] 
Add the SQLITE_DBCONFIG_NO_CKPT_ON_CLOSE sqlite3_dbconfig() option - for
disabling SQLite's default checkpoint-on-close behaviour.

FossilOrigin-Name: 093d2fc2288b75c15ccf877bfa0e622d3918a562

8 years agoRemove the mutex from test_multiplex.c.
dan [Thu, 27 Oct 2016 14:51:02 +0000 (14:51 +0000)] 
Remove the mutex from test_multiplex.c.

FossilOrigin-Name: 6374978e8f1ac091394a9f5a1896be92af658bcd

8 years agoMake sure left-join markings are transferred to the virtual scalar
drh [Thu, 27 Oct 2016 01:02:20 +0000 (01:02 +0000)] 
Make sure left-join markings are transferred to the virtual scalar
subexpressions when decomposing a vector comparison in the ON clause of
a LEFT JOIN.
Fix for ticket [fef4bb4bd9185ec8f].

FossilOrigin-Name: 619f5cc71774a37648e185c8502d7af14eb09b7f

8 years agoSmall size reduction and performance enhancement in whereScanInit().
drh [Wed, 26 Oct 2016 18:41:43 +0000 (18:41 +0000)] 
Small size reduction and performance enhancement in whereScanInit().

FossilOrigin-Name: c23f5ef337533c1ec6e3ba78a2910352181cc9ee

8 years agoSmall size reduction and performance improvement in whereScanNext().
drh [Wed, 26 Oct 2016 17:57:40 +0000 (17:57 +0000)] 
Small size reduction and performance improvement in whereScanNext().

FossilOrigin-Name: d861ee17eb900a607de6ec3f4a5d5c24cfb834a0

8 years agoIf all branches of an OR optimize scan that is the rhs of a LEFT JOIN use the
dan [Wed, 26 Oct 2016 16:05:10 +0000 (16:05 +0000)] 
If all branches of an OR optimize scan that is the rhs of a LEFT JOIN use the
same index, set the index cursor to return NULL values if there are no matches
for a row on the lhs.

FossilOrigin-Name: ec9dab8054c71d112c68f58a45821b38c2a45677

8 years agoIf all branches of an OR optimize scan that is the rhs of a LEFT JOIN use the leftjoin-or-fix
dan [Wed, 26 Oct 2016 15:46:09 +0000 (15:46 +0000)] 
If all branches of an OR optimize scan that is the rhs of a LEFT JOIN use the
same index, set the index cursor to return NULL values if there are no matches
for a row on the lhs.

FossilOrigin-Name: e7b9bc678ecb75c594d9d3ade12a99a8d551cdc9

8 years agoMerge the SQLITE_ENABLE_URI_00_ERROR compile-time option.
drh [Wed, 26 Oct 2016 13:58:47 +0000 (13:58 +0000)] 
Merge the SQLITE_ENABLE_URI_00_ERROR compile-time option.

FossilOrigin-Name: 86675ae0abc78960a2faec55d115804acfc3be6d

8 years agoAdd extra tests to check the result of including a %00 escape in a URI uri-00-error
dan [Wed, 26 Oct 2016 13:44:07 +0000 (13:44 +0000)] 
Add extra tests to check the result of including a %00 escape in a URI
when ENABLE_URI_00_ERROR is defined.

FossilOrigin-Name: 1aaa06e37f44309c62335d8eda59ca6890d4be9d

8 years agoAdd compile time option SQLITE_ENABLE_URI_00_ERROR. If defined, any "%00"
dan [Wed, 26 Oct 2016 12:15:41 +0000 (12:15 +0000)] 
Add compile time option SQLITE_ENABLE_URI_00_ERROR. If defined, any "%00"
escape found in a URI is treated as an error.

FossilOrigin-Name: e8a9bfece27e2af178a206ad6bce3f24d64e7ee4

8 years agoAdd test case to demonstrate a "BEGIN EXCLUSIVE" command returning
dan [Tue, 25 Oct 2016 15:06:11 +0000 (15:06 +0000)] 
Add test case to demonstrate a "BEGIN EXCLUSIVE" command returning
SQLITE_BUSY_SNAPSHOT.

FossilOrigin-Name: b115856408b6aa5538be67beb619d7aff0630bea

8 years agoPerformance optimization in moveToRoot(). Avoid repeated validity checking of
drh [Mon, 24 Oct 2016 01:01:09 +0000 (01:01 +0000)] 
Performance optimization in moveToRoot(). Avoid repeated validity checking of
the root page on each call. Once is enough.

FossilOrigin-Name: 98795c2dd9a6d8fa8d49a9f5c36cdf824cae7246

8 years agoIn the sessions module, avoid recording a change if an UPDATE statement
drh [Sat, 22 Oct 2016 01:22:30 +0000 (01:22 +0000)] 
In the sessions module, avoid recording a change if an UPDATE statement
overwrites a column with REAL affinity containing an integer value with
the same value.

FossilOrigin-Name: 5f3e602831ba2ecaf8ba5411efb387afcde05a33

8 years agoIn the sessions module, avoid recording a change if an UPDATE statement sessions-fix
dan [Fri, 21 Oct 2016 21:21:45 +0000 (21:21 +0000)] 
In the sessions module, avoid recording a change if an UPDATE statement
overwrites a column with REAL affinity containing an integer value with the same value.

FossilOrigin-Name: b861328ab9ceec6926d97658c3606e6ae9ad39bf

8 years agoAdd ".mode quote" to the command-line shell.
drh [Fri, 21 Oct 2016 17:39:30 +0000 (17:39 +0000)] 
Add ".mode quote" to the command-line shell.

FossilOrigin-Name: c4f5fa78cd8207ce1e46e32e632b8f6ee86047e1

8 years agoAvoid using the "direct overflow read" optimization to read large blobs if the
dan [Fri, 21 Oct 2016 10:49:39 +0000 (10:49 +0000)] 
Avoid using the "direct overflow read" optimization to read large blobs if the
pager layer has a wal file open - even if the database header indicates that
the db is not a wal database.

FossilOrigin-Name: b54c15f11796a75683eec4b502a22ccb87d621c6

8 years agoIf SQLITE_DIRECT_OVERFLOW_READ is defined at compile time, add "DIRECT_OVERFLOW_READ...
dan [Fri, 21 Oct 2016 10:09:22 +0000 (10:09 +0000)] 
If SQLITE_DIRECT_OVERFLOW_READ is defined at compile time, add "DIRECT_OVERFLOW_READ" to the list of symbols returned by "PRAGMA compile_options".

FossilOrigin-Name: b7d9727bff2e840af4b090872c991693e78e6076

8 years agoAdd test case to incrblob4.test. No changes to code.
dan [Thu, 20 Oct 2016 11:48:48 +0000 (11:48 +0000)] 
Add test case to incrblob4.test. No changes to code.

FossilOrigin-Name: fd9c6ff05f2052810549a1a6a384f4b40f4ba4ac

8 years agoMinor simplification of the comparison opcodes.
drh [Tue, 18 Oct 2016 16:36:15 +0000 (16:36 +0000)] 
Minor simplification of the comparison opcodes.

FossilOrigin-Name: 56474ebca3fdddb8f3c5156f06dc42dc0a65256c

8 years agoFix harmless uninitialized variable warnings in speedtest1.c.
drh [Tue, 18 Oct 2016 15:29:57 +0000 (15:29 +0000)] 
Fix harmless uninitialized variable warnings in speedtest1.c.

FossilOrigin-Name: 2aa7a03b8632dbfd9741018b5b19c372dcfd3647

8 years agoAdd the --repeat option to speedtest1.c and speed-check.sh.
drh [Tue, 18 Oct 2016 14:35:55 +0000 (14:35 +0000)] 
Add the --repeat option to speedtest1.c and speed-check.sh.

FossilOrigin-Name: 6ca0e06b21b0d5f7ae5bcb7839a11a45da0d2cea

8 years agoEscape non-ASCII character from an ICU extension comment.
mistachkin [Mon, 17 Oct 2016 18:44:11 +0000 (18:44 +0000)] 
Escape non-ASCII character from an ICU extension comment.

FossilOrigin-Name: 5ec02ecf3d20ce7e3f5249e9a3684f9b67a7d703

8 years agoCorrections to a couple recently added 'filectrl.test' results.
mistachkin [Mon, 17 Oct 2016 18:33:36 +0000 (18:33 +0000)] 
Corrections to a couple recently added 'filectrl.test' results.

FossilOrigin-Name: 3d89dc4544bc51f8c9fa63a6ecf0458f6d10fc9f

8 years agoChanges to support interrupting a checkpoint using sqlite3_interrupt().
dan [Mon, 17 Oct 2016 15:28:39 +0000 (15:28 +0000)] 
Changes to support interrupting a checkpoint using sqlite3_interrupt().

FossilOrigin-Name: c88d36e251abec24aa7e37cf550e148904b9fd2d

8 years agoSmall size reduction and performance increase in the string duplicator.
drh [Mon, 17 Oct 2016 00:48:06 +0000 (00:48 +0000)] 
Small size reduction and performance increase in the string duplicator.

FossilOrigin-Name: cda998f080cb00779d8c0d1c83d8fe2b74462cd4

8 years agoAdd documentation for the OP_SorterInsert opcode, formerly omitted by mistake.
drh [Sat, 15 Oct 2016 18:37:05 +0000 (18:37 +0000)] 
Add documentation for the OP_SorterInsert opcode, formerly omitted by mistake.
No changes to code.

FossilOrigin-Name: 16d88a907730e3773a1320dbaf1f82c2bc71d71f

8 years agoAdd test case to hook.test. No changes to non-test code.
dan [Sat, 15 Oct 2016 08:56:18 +0000 (08:56 +0000)] 
Add test case to hook.test. No changes to non-test code.

FossilOrigin-Name: 2674d779f5453ea6b709a39618d4b8017ab2e3fb

8 years agoAdd the SQLITE_FCNTL_WIN32_GET_HANDLE file control.
mistachkin [Fri, 14 Oct 2016 21:27:50 +0000 (21:27 +0000)] 
Add the SQLITE_FCNTL_WIN32_GET_HANDLE file control.

FossilOrigin-Name: 16039be3739b8d3b34a1e6093eaebb09e07f984b

8 years agoBump the version number in anticipation of the next development cycle.
drh [Fri, 14 Oct 2016 21:16:27 +0000 (21:16 +0000)] 
Bump the version number in anticipation of the next development cycle.

FossilOrigin-Name: aa6de9c40ba2d906772b9032fd5d798661f6d4cc

8 years agoVersion 3.15.0 version-3.15.0
drh [Fri, 14 Oct 2016 10:20:30 +0000 (10:20 +0000)] 
Version 3.15.0

FossilOrigin-Name: 707875582fcba352b4906a595ad89198d84711d8

8 years agoTake care to avoid integer overflow when doing the initial page cache
drh [Thu, 13 Oct 2016 12:56:18 +0000 (12:56 +0000)] 
Take care to avoid integer overflow when doing the initial page cache
allocation with an excessively large cache_size setting.

FossilOrigin-Name: 4d66ac98deaa85218be7ff0eb254f78b96d8e8d4

8 years agoAvoid reading the -1-th element of an array in the query planner. Fix to a
drh [Wed, 12 Oct 2016 18:55:53 +0000 (18:55 +0000)] 
Avoid reading the -1-th element of an array in the query planner.  Fix to a
bug introduced by check-in [8e2b25f9b8a7] from earlier today.  Curiously,
the problem only appeared on 32-bit systems.

FossilOrigin-Name: 443913d582bcd953d85159047541592e2f68ade3

8 years agoAdd to sqlite3_analyzer command-line options --version and --tclsh, and also
drh [Wed, 12 Oct 2016 18:26:26 +0000 (18:26 +0000)] 
Add to sqlite3_analyzer command-line options --version and --tclsh, and also
the undocumented --debug option.

FossilOrigin-Name: e87d02d289a2016ea3ee074e914b07a8ac22b21f

8 years agoNew testcase() macros to ensure coverage of the ORDER BY LIMIT optimization
drh [Wed, 12 Oct 2016 15:15:30 +0000 (15:15 +0000)] 
New testcase() macros to ensure coverage of the ORDER BY LIMIT optimization
code in where.c.

FossilOrigin-Name: 61f0526978af667781c57bcc87510e4524efd0d8

8 years agoFix a problem affecting queries that match the pattern (... WHERE ipk IN (....) ORDER...
dan [Wed, 12 Oct 2016 14:48:00 +0000 (14:48 +0000)] 
Fix a problem affecting queries that match the pattern (... WHERE ipk IN (....) ORDER BY ? LIMIT ?). Fix for [96c1454c].

FossilOrigin-Name: 8e2b25f9b8a7ed087d3cece74239814bee19429e

8 years agoRemove a stray line from session4.test causing a memory leak. No changes to SQLite...
dan [Mon, 10 Oct 2016 14:48:36 +0000 (14:48 +0000)] 
Remove a stray line from session4.test causing a memory leak. No changes to SQLite code.

FossilOrigin-Name: 6624c4964b63e259d5ee006eaa7ec79ddadbd6a6

8 years agoWhen handling ORDER BY expressions, do not assume all values of an indexed expression...
dan [Mon, 10 Oct 2016 14:34:00 +0000 (14:34 +0000)] 
When handling ORDER BY expressions, do not assume all values of an indexed expressions are distinct. Fix for [4766f444].

FossilOrigin-Name: aebe429e52ffef026cb0803fb164339d61bd2e88

8 years agoMake sure indexes on expressions skip over initial NULL values in the
drh [Mon, 10 Oct 2016 13:29:15 +0000 (13:29 +0000)] 
Make sure indexes on expressions skip over initial NULL values in the
index.  Fix for ticket [4baa464912129477f3c9]

FossilOrigin-Name: 71797ba431085f9ae381ed5ea6471967926f4043

8 years agoFix a case in which the rtree module was ignoring an OOM while generating an error...
dan [Mon, 10 Oct 2016 10:06:59 +0000 (10:06 +0000)] 
Fix a case in which the rtree module was ignoring an OOM while generating an error message.

FossilOrigin-Name: 788f86bebe413b5a0ab41ba3d75ba8728827a964

8 years agoUpdate test/trace3.test to account for the fact that casting a pointer to a 64-bit...
dan [Sat, 8 Oct 2016 16:10:29 +0000 (16:10 +0000)] 
Update test/trace3.test to account for the fact that casting a pointer to a 64-bit signed integer might produce a negative value.

FossilOrigin-Name: 010ec22541a4c37f2d3b01b6a531b4b4264102b7

8 years agoCorrections to Lemon documentation. No SQLite changes.
drh [Sat, 8 Oct 2016 13:34:08 +0000 (13:34 +0000)] 
Corrections to Lemon documentation.  No SQLite changes.

FossilOrigin-Name: c568ae3eef31b49e846fad90e705914e2868a09c

8 years agoAdd missing "static" to internal function whereRangeVectorLen().
dan [Sat, 8 Oct 2016 11:55:12 +0000 (11:55 +0000)] 
Add missing "static" to internal function whereRangeVectorLen().

FossilOrigin-Name: cbed3d75cf9a24037263d126727db7dd048a4f97

8 years agoUpdates to the tool/warnings.sh script to make it easier to use on OpenBSD.
dan [Sat, 8 Oct 2016 09:21:34 +0000 (09:21 +0000)] 
Updates to the tool/warnings.sh script to make it easier to use on OpenBSD.

FossilOrigin-Name: dbe2997f57f8d8f95e4b767bf73b8df3a5e4f783

8 years agoFix some compiler warnings in fts5.
dan [Wed, 5 Oct 2016 20:14:29 +0000 (20:14 +0000)] 
Fix some compiler warnings in fts5.

FossilOrigin-Name: b066637bb75959267fe6104da323c5112ad78f82

8 years agoFix harmless compiler warnings.
drh [Wed, 5 Oct 2016 20:10:32 +0000 (20:10 +0000)] 
Fix harmless compiler warnings.

FossilOrigin-Name: 2dde3375124198560c8ff15f87aadde2afd722c5

8 years agoAdd a test case for the fix in [a596b7c6cc].
dan [Wed, 5 Oct 2016 15:04:35 +0000 (15:04 +0000)] 
Add a test case for the fix in [a596b7c6cc].

FossilOrigin-Name: b2ef39b11f7c46e69e53439680c32adbb18903bd

8 years agoDo not set MEM_Blob unless the appropriate fields of the Mem object have
drh [Wed, 5 Oct 2016 15:02:00 +0000 (15:02 +0000)] 
Do not set MEM_Blob unless the appropriate fields of the Mem object have
been correctly initialized.

FossilOrigin-Name: a596b7c6cc780525120604090493f3f7d962b9fa

8 years agoFix the backup_malloc.test script so that it works on Windows.
drh [Wed, 5 Oct 2016 01:33:57 +0000 (01:33 +0000)] 
Fix the backup_malloc.test script so that it works on Windows.

FossilOrigin-Name: d080012daaaa399663a0f767c792a2fff3e1037a

8 years agoFix a problem with the lempar.c parser template.
drh [Tue, 4 Oct 2016 12:20:12 +0000 (12:20 +0000)] 
Fix a problem with the lempar.c parser template.

FossilOrigin-Name: 3a9d802fda10585654332b314d317250dc5d894e

8 years agoDo not bother to initialize unused fields in the BtreePayload object.
drh [Tue, 4 Oct 2016 00:47:26 +0000 (00:47 +0000)] 
Do not bother to initialize unused fields in the BtreePayload object.

FossilOrigin-Name: b10d0f939c82c4de3faa90b86de9ec4a89992856

8 years agoAllow deterministic functions in the WHERE clause of a partial index.
drh [Mon, 3 Oct 2016 18:13:23 +0000 (18:13 +0000)] 
Allow deterministic functions in the WHERE clause of a partial index.

FossilOrigin-Name: c6e9b9421805c904b20900b711fa0e51773aef3e

8 years agoSize and performance optimizations on the sqlite3ExprAssignVarNumber() routine.
drh [Mon, 3 Oct 2016 16:33:14 +0000 (16:33 +0000)] 
Size and performance optimizations on the sqlite3ExprAssignVarNumber() routine.

FossilOrigin-Name: 109852e51e2cc2674940ba3e5097a92e66f88bb8

8 years agoAvoid unnecessary strlen() calls in sqlite3ExprAssignVarNumber() by passing in
drh [Mon, 3 Oct 2016 15:28:24 +0000 (15:28 +0000)] 
Avoid unnecessary strlen() calls in sqlite3ExprAssignVarNumber() by passing in
the token length from the parser.

FossilOrigin-Name: d15ae2e530cffea60263f203ac5f89b6790f4bd5

8 years agoAvoid unnecessary memset() calls in the query optimizer.
drh [Mon, 3 Oct 2016 14:44:47 +0000 (14:44 +0000)] 
Avoid unnecessary memset() calls in the query optimizer.

FossilOrigin-Name: 5bb7cde0731d23411e9df02a957010f94203397b

8 years agoFix an obsolete comment on a variable definition in expr.c. No code changes.
drh [Mon, 3 Oct 2016 12:56:48 +0000 (12:56 +0000)] 
Fix an obsolete comment on a variable definition in expr.c.  No code changes.

FossilOrigin-Name: 012ff6dd306328f7ea71a6600471c871e7ffe37b

8 years agoMake sure the sqlite_sequence table is updated when an optional xfer
drh [Mon, 3 Oct 2016 02:59:33 +0000 (02:59 +0000)] 
Make sure the sqlite_sequence table is updated when an optional xfer
optimization is used.  Fix for ticket [7b3328086a5c1].

FossilOrigin-Name: 81e4d4f897553f6fee540a38c3e83ceac5ba9b78