]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
9 years agoFurther enhancement and a bit of cleanup. mp-releasetest
mistachkin [Tue, 3 Nov 2015 06:23:33 +0000 (06:23 +0000)] 
Further enhancement and a bit of cleanup.

FossilOrigin-Name: 0d8b59783e0a84bc59661b3469e1ca1b1fa90c71

9 years agoUse the native name for the MSVC makefile as well.
mistachkin [Tue, 3 Nov 2015 02:47:11 +0000 (02:47 +0000)] 
Use the native name for the MSVC makefile as well.

FossilOrigin-Name: e457c615647a5bacb32d7d1d9ddfcfb0c7d56e82

9 years agoAttempt to centralize and simplify the MSVC handling.
mistachkin [Mon, 2 Nov 2015 23:29:58 +0000 (23:29 +0000)] 
Attempt to centralize and simplify the MSVC handling.

FossilOrigin-Name: 4ae96d6dde7fc0a913d7719ec498686f9a1e3b98

9 years agoFix the backcompat.test module so that it does not try to compare against itself
drh [Mon, 2 Nov 2015 23:21:17 +0000 (23:21 +0000)] 
Fix the backcompat.test module so that it does not try to compare against itself
on windows.

FossilOrigin-Name: f625bce8b7c2884a092c70675a9c6ce15c29937e

9 years agoGet things working better on Windows with MSVC.
mistachkin [Mon, 2 Nov 2015 21:05:56 +0000 (21:05 +0000)] 
Get things working better on Windows with MSVC.

FossilOrigin-Name: 22cc3e6c8e7f7eed854f8a50138ccb9c79bb7a23

9 years agoFix the --dryrun option on the releasetest.tcl script.
dan [Mon, 2 Nov 2015 20:52:20 +0000 (20:52 +0000)] 
Fix the --dryrun option on the releasetest.tcl script.

FossilOrigin-Name: e565e0261501e4c21e4ad3d12f9f5b24c761bf96

9 years agoFix releasetest.tcl so that it does not choke if a test fails so badly that there...
dan [Mon, 2 Nov 2015 20:28:48 +0000 (20:28 +0000)] 
Fix releasetest.tcl so that it does not choke if a test fails so badly that there is no log file. Add the --jobs switch to the usage message.

FossilOrigin-Name: 20e96f521fce12ffeb6be788e57bce88f287cff5

9 years agoFix releasetest.tcl so that output lines are less than 80 characters wide.
dan [Mon, 2 Nov 2015 20:24:29 +0000 (20:24 +0000)] 
Fix releasetest.tcl so that output lines are less than 80 characters wide.

FossilOrigin-Name: aef177fef049f9ffb0d138b947326dc0186b1f4f

9 years agoAdd the "--jobs N" option to the releasetest.tcl script to allow tests to be run...
dan [Mon, 2 Nov 2015 18:32:00 +0000 (18:32 +0000)] 
Add the "--jobs N" option to the releasetest.tcl script to allow tests to be run in parallel by N processes. N defaults to 1.

FossilOrigin-Name: 3d29f912cb7c6ee3e4903b1b14dd7ae82e4d02b1

9 years agoIf a table-constraint PRIMARY KEY lists a single column in single-quotes and
drh [Sun, 1 Nov 2015 21:19:13 +0000 (21:19 +0000)] 
If a table-constraint PRIMARY KEY lists a single column in single-quotes and
that column has type INTEGER, then make that column an integer primary key,
for historical compatibility.  Fix for ticket [ac661962a2aeab3c331].

FossilOrigin-Name: db319a035feeb6f8fcd04f90fb10cd4b06e68184

9 years agoAdd mutex operations to test code in test3.c to avoid triggering assert() failures...
dan [Fri, 30 Oct 2015 20:54:25 +0000 (20:54 +0000)] 
Add mutex operations to test code in test3.c to avoid triggering assert() failures in certain configurations.

FossilOrigin-Name: 9f19420b0a79dff65fc3a9d548f4b3fc4955f9f9

9 years agoIncrease the version number to 3.10.0, due to the addition of the
drh [Fri, 30 Oct 2015 16:36:42 +0000 (16:36 +0000)] 
Increase the version number to 3.10.0, due to the addition of the
sqlite3_db_cacheflush() interface.

FossilOrigin-Name: 7565b046ff939e8310631397a4526fbd98b99aaf

9 years agoAdd new API function sqlite3_db_cacheflush().
dan [Fri, 30 Oct 2015 16:14:03 +0000 (16:14 +0000)] 
Add new API function sqlite3_db_cacheflush().

FossilOrigin-Name: ad80d3073388c59f67171720efc6ef766e19886f

9 years agoReturn immediately if sqlite3PagerWrite() is called when the pager is in PAGER_ERROR... cacheflush
dan [Fri, 30 Oct 2015 14:28:16 +0000 (14:28 +0000)] 
Return immediately if sqlite3PagerWrite() is called when the pager is in PAGER_ERROR state.

FossilOrigin-Name: a6695b008487aeb7badf572fa32bfcba3c9fab03

9 years agoAdd the --enable-editline option to various autoconf scripts.
drh [Fri, 30 Oct 2015 14:25:57 +0000 (14:25 +0000)] 
Add the --enable-editline option to various autoconf scripts.

FossilOrigin-Name: 866f0277781dedf0db287ec5902a138406a172e3

9 years agoTest that calling sqlite3_db_cacheflush() does not interfere with savepoints.
dan [Fri, 30 Oct 2015 09:13:29 +0000 (09:13 +0000)] 
Test that calling sqlite3_db_cacheflush() does not interfere with savepoints.

FossilOrigin-Name: 0e09e4a26938cfe0f573449526a8f0f527cef921

9 years agoDo not attempt to flush the pages of an in-memory database to disk if sqlite3_db_cach...
dan [Thu, 29 Oct 2015 21:11:22 +0000 (21:11 +0000)] 
Do not attempt to flush the pages of an in-memory database to disk if sqlite3_db_cacheflush() is called.

FossilOrigin-Name: 9b79a390440a23542a370b591e567b31ebb35c42

9 years agoAdd a test case that calls sqlite3_db_cacheflush() on an in-memory database.
dan [Thu, 29 Oct 2015 20:57:06 +0000 (20:57 +0000)] 
Add a test case that calls sqlite3_db_cacheflush() on an in-memory database.

FossilOrigin-Name: f0cdfb547b0976e753e94958f29cb294edf31bed

9 years agoAvoid automatically rolling back the transaction if an SQLITE_IOERR or SQLITE_FULL...
dan [Thu, 29 Oct 2015 18:16:40 +0000 (18:16 +0000)] 
Avoid automatically rolling back the transaction if an SQLITE_IOERR or SQLITE_FULL error occurs within sqlite3_db_cacheflush().

FossilOrigin-Name: 370b5d520c6523526988d0db5299f1bd09567782

9 years agoFix uses of ctype functions (ex: isspace()) on signed characters in test
drh [Thu, 29 Oct 2015 13:48:15 +0000 (13:48 +0000)] 
Fix uses of ctype functions (ex: isspace()) on signed characters in test
programs and in some obscure extensions.  No changes to the core.

FossilOrigin-Name: 34eb6911afee09e779318b79baf953f616200128

9 years agoEnhance comments in the MSVC batch build tool.
mistachkin [Thu, 29 Oct 2015 01:11:39 +0000 (01:11 +0000)] 
Enhance comments in the MSVC batch build tool.

FossilOrigin-Name: 2964ce25864e8aec86272af741caf49c23c86590

9 years agoMake the internal sqlite3PExpr() interface responsive to the
drh [Wed, 28 Oct 2015 20:01:45 +0000 (20:01 +0000)] 
Make the internal sqlite3PExpr() interface responsive to the
TKFLG_DONTFOLD flag on the operator parameter.

FossilOrigin-Name: b10ab59fb8a696d11a269f3904e799c687246aea

9 years agoAdd experimental API sqlite3_db_cacheflush().
dan [Wed, 28 Oct 2015 19:46:57 +0000 (19:46 +0000)] 
Add experimental API sqlite3_db_cacheflush().

FossilOrigin-Name: 65b86dc1fa4a57cc3cde86a820d9f848aa288a15

9 years agoFactor out adding NOT expression nodes in the parser into a subroutine.
drh [Wed, 28 Oct 2015 16:05:10 +0000 (16:05 +0000)] 
Factor out adding NOT expression nodes in the parser into a subroutine.

FossilOrigin-Name: 001854181640bd9b088f2bc16083d84808c3da18

9 years agoHave contentless and external content fts5 tables ignore "OR REPLACE" conflict handling.
dan [Tue, 27 Oct 2015 20:04:53 +0000 (20:04 +0000)] 
Have contentless and external content fts5 tables ignore "OR REPLACE" conflict handling.

FossilOrigin-Name: a85c2a4758c27e8d5d0395751eb3cfd9985ce696

9 years agoFix problems with prefix queries in fts5.
dan [Tue, 27 Oct 2015 17:48:57 +0000 (17:48 +0000)] 
Fix problems with prefix queries in fts5.

FossilOrigin-Name: 3b5758c647530bd5c2e68d0ee3e9f58a96347ca4

9 years agoProvide hints to the storage engine using the sqlite3BtreeCursorHint()
drh [Tue, 27 Oct 2015 13:35:14 +0000 (13:35 +0000)] 
Provide hints to the storage engine using the sqlite3BtreeCursorHint()
interface when compiling with SQLITE_ENABLE_CURSOR_HINTS.

FossilOrigin-Name: 45d3539e152a44629639723f18ce70d9ef01f31a

9 years agoSplit out sqlite3BtreeCursorHintFlags() from sqlite3BtreeCursorHint()
drh [Tue, 27 Oct 2015 13:24:37 +0000 (13:24 +0000)] 
Split out sqlite3BtreeCursorHintFlags() from sqlite3BtreeCursorHint()
the interface for improved performance.

FossilOrigin-Name: b3ec9a0d62c5543e91d4be2cd634ec4a3d6dca11

9 years agoAdd new extended error code SQLITE_IOERR_AUTH.
dan [Mon, 26 Oct 2015 20:39:56 +0000 (20:39 +0000)] 
Add new extended error code SQLITE_IOERR_AUTH.

FossilOrigin-Name: b4e70dd08e79decaa09f7b99e2dc7e2df92f26ee

9 years agoMerge the BTREE_FORDELETE enhancement with this branch.
dan [Mon, 26 Oct 2015 20:11:24 +0000 (20:11 +0000)] 
Merge the BTREE_FORDELETE enhancement with this branch.

FossilOrigin-Name: 20da0849ce910ceb445954dfc5f985acf9a02695

9 years agoMerge in all trunk changes prior to the BTREE_FORDELETE enhancement.
drh [Mon, 26 Oct 2015 18:51:09 +0000 (18:51 +0000)] 
Merge in all trunk changes prior to the BTREE_FORDELETE enhancement.

FossilOrigin-Name: 53d5a4add6b60722ad77daf98b6b8983b081e16a

9 years agoCapture BTREE_FORDELETE test cases that were mistakenly omitted from the
drh [Mon, 26 Oct 2015 18:01:36 +0000 (18:01 +0000)] 
Capture BTREE_FORDELETE test cases that were mistakenly omitted from the
previous merge.

FossilOrigin-Name: de6972515f65c5cf5da7cfdf876a05718299e9b8

9 years agoProvide the BTREE_FORDELETE flag to sqlite3BtreeCursor() if the cursor will
drh [Mon, 26 Oct 2015 17:50:54 +0000 (17:50 +0000)] 
Provide the BTREE_FORDELETE flag to sqlite3BtreeCursor() if the cursor will
be used only for deletions and seeking.

FossilOrigin-Name: 871b1c78bcbea1cb03d482f2f424c4e012633695

9 years agoFix an uninitialized variable problem in the test code added by the previous commit.
dan [Mon, 26 Oct 2015 16:34:13 +0000 (16:34 +0000)] 
Fix an uninitialized variable problem in the test code added by the previous commit.

FossilOrigin-Name: 7849662ef94fa48fe53177db5623f46b3cb401e8

9 years agoTest that the binary record "0x01 0x00" is interpreted by OP_Column as a vector of...
dan [Mon, 26 Oct 2015 16:31:18 +0000 (16:31 +0000)] 
Test that the binary record "0x01 0x00" is interpreted by OP_Column as a vector of NULL (or default) values.

FossilOrigin-Name: 5bdc3c82bd10f924c12568eb0fa7a07393fc864f

9 years agoFix a C99-ism and a harmless compiler warning.
drh [Mon, 26 Oct 2015 14:54:32 +0000 (14:54 +0000)] 
Fix a C99-ism and a harmless compiler warning.

FossilOrigin-Name: 138783b553602a055b3efdeac5947cf5ccd76b5d

9 years agoWhen compiling with SQLITE_HAS_CODEC, honor the hexkey= query parameter on
drh [Mon, 26 Oct 2015 14:41:35 +0000 (14:41 +0000)] 
When compiling with SQLITE_HAS_CODEC, honor the hexkey= query parameter on
URI pathnames in sqlite3_open_v2().

FossilOrigin-Name: e0ce3fc089c2523b8b718b4a4f9ab8c4d0432fc7

9 years agoRemove an unreachable branch in malloc.c.
drh [Mon, 26 Oct 2015 12:55:56 +0000 (12:55 +0000)] 
Remove an unreachable branch in malloc.c.

FossilOrigin-Name: a36b7fe92372a13ff0b6e08f1704496045c6f62a

9 years agoWhen creating an automatic-index on a sub-query, add a unique integer to the end...
dan [Sat, 24 Oct 2015 20:31:22 +0000 (20:31 +0000)] 
When creating an automatic-index on a sub-query, add a unique integer to the end of each index key to ensure the entire key is unique. Fix for [8a2adec1].

FossilOrigin-Name: bfea226d0d226a046a8bfb7a7a6288850d69bd26

9 years agoRemove an unused #define from whereInt.h. Add comments describing the new sqlite3Btre...
dan [Fri, 23 Oct 2015 11:50:23 +0000 (11:50 +0000)] 
Remove an unused #define from whereInt.h. Add comments describing the new sqlite3BtreeCursor() flags.

FossilOrigin-Name: 4c0ba8be43bb7c7100456bd8cd6921c164be31e1

9 years agoModifications to pass a flag to internal routine sqlite3BtreeCursor() when a cursor...
dan [Thu, 22 Oct 2015 20:54:33 +0000 (20:54 +0000)] 
Modifications to pass a flag to internal routine sqlite3BtreeCursor() when a cursor that is used solely for deleting b-tree entries, or for obtaining the components of keys to delete from other b-trees, is opened.

FossilOrigin-Name: cdc92919e600007cae5eb61223684f48a65babc0

9 years agoAlternate compiler warning fix for sqlite3StatusHighwater.
mistachkin [Thu, 22 Oct 2015 18:06:40 +0000 (18:06 +0000)] 
Alternate compiler warning fix for sqlite3StatusHighwater.

FossilOrigin-Name: 4315d20200d578c9252dcb26e60739063a8eff1d

9 years agoFix harmless compiler warnings in FTS5.
mistachkin [Wed, 21 Oct 2015 22:08:36 +0000 (22:08 +0000)] 
Fix harmless compiler warnings in FTS5.

FossilOrigin-Name: aa4e01ea1af327d1f8398ebea1c5bacc46698c3d

9 years agoFix compilation of 'testfixture' with MSVC when the FTS5 and JSON1 extensions are...
mistachkin [Wed, 21 Oct 2015 22:07:25 +0000 (22:07 +0000)] 
Fix compilation of 'testfixture' with MSVC when the FTS5 and JSON1 extensions are enabled.

FossilOrigin-Name: e31aa97a9298e49507256036cfb8fa7517a48461

9 years agoRemove some branches made unreachable by recent changes from fts5.
dan [Wed, 21 Oct 2015 20:56:27 +0000 (20:56 +0000)] 
Remove some branches made unreachable by recent changes from fts5.

FossilOrigin-Name: ae350bfbfd59f912c469a51bf7d1409f3c8d958a

9 years agoMinor optimization for fts5 queries.
dan [Wed, 21 Oct 2015 20:07:08 +0000 (20:07 +0000)] 
Minor optimization for fts5 queries.

FossilOrigin-Name: 363b36d50b6f3e3d3e79c538be1167b071a5a710

9 years agoAdd extra debugging function to test_rbu.c. Enhance the documentation for sqlite3rbu_...
dan [Wed, 21 Oct 2015 08:26:01 +0000 (08:26 +0000)] 
Add extra debugging function to test_rbu.c. Enhance the documentation for sqlite3rbu_db() to define the validity of the returned database handles.

FossilOrigin-Name: b9c4aa521156d8ca09151a82a7e80aa8d1d7a313

9 years agoFix harmless compiler warnings in FTS5.
mistachkin [Tue, 20 Oct 2015 23:27:14 +0000 (23:27 +0000)] 
Fix harmless compiler warnings in FTS5.

FossilOrigin-Name: 0a903ec26bfbbe9bfd18bc34934e689ffdb01ce5

9 years agoMore optimizations for fts5 prefix queries.
dan [Tue, 20 Oct 2015 21:05:53 +0000 (21:05 +0000)] 
More optimizations for fts5 prefix queries.

FossilOrigin-Name: b8fb263ed1b36d085437131795505e53af103d26

9 years agoFix #line directives added to generated file fts5.c.
dan [Tue, 20 Oct 2015 19:55:35 +0000 (19:55 +0000)] 
Fix #line directives added to generated file fts5.c.

FossilOrigin-Name: 1f5f5804cd394a81b1c0712ce6d1052f228d0a40

9 years agoInitialize variables in the fts5 integrity-check code to avoid compiler warnings.
dan [Tue, 20 Oct 2015 15:49:02 +0000 (15:49 +0000)] 
Initialize variables in the fts5 integrity-check code to avoid compiler warnings.

FossilOrigin-Name: e979e2cccac257ad554803e6a1103558b0f159d8

9 years agoAnother optimization for fts5 prefix (and other) queries.
dan [Mon, 19 Oct 2015 20:49:10 +0000 (20:49 +0000)] 
Another optimization for fts5 prefix (and other) queries.

FossilOrigin-Name: 60a8bde055a960c5b8cb4e231802c75617c942d8

9 years agoAnother tweak to improve performance of fts5 prefix queries.
dan [Mon, 19 Oct 2015 17:43:24 +0000 (17:43 +0000)] 
Another tweak to improve performance of fts5 prefix queries.

FossilOrigin-Name: 69be427c864dc3de804ca3c5f1c6addcd33cd188

9 years agoFix a problem in the fts5txt2db.tcl script causing it to fail when creating tables...
dan [Mon, 19 Oct 2015 15:59:08 +0000 (15:59 +0000)] 
Fix a problem in the fts5txt2db.tcl script causing it to fail when creating tables with more than 8 columns.

FossilOrigin-Name: 68ee426a6432ac63655909ff70cb22bde33cf28c

9 years agoAdd tests to cover new branches added to the fts5 code by the previous commit.
dan [Sat, 17 Oct 2015 20:34:49 +0000 (20:34 +0000)] 
Add tests to cover new branches added to the fts5 code by the previous commit.

FossilOrigin-Name: cf618334a8a05a067e844236e4d461b2e5706da6

9 years agoHandle equality and range constraints on the "term" column of fts5vocab tables. Also...
dan [Sat, 17 Oct 2015 19:49:01 +0000 (19:49 +0000)] 
Handle equality and range constraints on the "term" column of fts5vocab tables. Also have the same module report columns using names instead of indexes.

FossilOrigin-Name: 6020d96ab47a0bebe41f691a3f44fd55d8b2d2b7

9 years agoFix a comment in expr.c and add a CORRUPT_DB to an assert() in btree.c.
drh [Fri, 16 Oct 2015 23:55:08 +0000 (23:55 +0000)] 
Fix a comment in expr.c and add a CORRUPT_DB to an assert() in btree.c.

FossilOrigin-Name: 0df371d1a51c2028aefa4c704707773750317689

9 years agoMerge recent enhancements from trunk. Version now 3.9.1.
drh [Fri, 16 Oct 2015 20:53:57 +0000 (20:53 +0000)] 
Merge recent enhancements from trunk.  Version now 3.9.1.

FossilOrigin-Name: 26fa091d68e89a0b6af61ba706d23a9f37e8025a

9 years agoEnhancements to the MSVC makefile.
mistachkin [Fri, 16 Oct 2015 20:13:57 +0000 (20:13 +0000)] 
Enhancements to the MSVC makefile.

FossilOrigin-Name: 39e8a5d93fa370afb03223bf0c20ea0f3448b9fc

9 years agoMerge the 3.9.1 changes into trunk. (This only updates the version number
drh [Fri, 16 Oct 2015 20:12:12 +0000 (20:12 +0000)] 
Merge the 3.9.1 changes into trunk.  (This only updates the version number
and configure script since all the other changes in 3.9.1 were cherrypicked
from trunk.)

FossilOrigin-Name: eb2317429fc3fc81ccd92e6f84f873585829259d

9 years agoVersion 3.9.1 version-3.9.1
drh [Fri, 16 Oct 2015 17:31:12 +0000 (17:31 +0000)] 
Version 3.9.1

FossilOrigin-Name: 767c1727fec4ce11b83f25b3f1bfcfe68a2c8b02

9 years agoCherrypick the json form-feed fix, and other #ifdef and build script changes
drh [Fri, 16 Oct 2015 15:56:27 +0000 (15:56 +0000)] 
Cherrypick the json form-feed fix, and other #ifdef and build script changes
to address minor issues that came to light after the 3.9.0 release.  Update
the version number to 3.9.0.  No logic changes except for the form-feed
bug-fix in json1 (ticket [57eec374ae1d0a1d4a]).

FossilOrigin-Name: 746fcd2fd412ddc27071827fb20eb6df0741dfb1

9 years agoFix the fuzzershell utility program so that it compiles with the
drh [Fri, 16 Oct 2015 15:42:50 +0000 (15:42 +0000)] 
Fix the fuzzershell utility program so that it compiles with the
amalgamation that includes JSON1 support.

FossilOrigin-Name: d6fc616e4c8a024f71a044e61f0493dea7d9c812

9 years agoFix the JSON1 extension so that it does not depend on isdigit() and
drh [Fri, 16 Oct 2015 15:35:39 +0000 (15:35 +0000)] 
Fix the JSON1 extension so that it does not depend on isdigit() and
strtod() from the standard library when compiled into SQLite as part of the
amalgamation.

FossilOrigin-Name: bc9a9a60c31ebf9b11ac89ae5f99a3b66d6efc67

9 years agoForm-feed is not valid whitespace for json.
drh [Fri, 16 Oct 2015 15:16:06 +0000 (15:16 +0000)] 
Form-feed is not valid whitespace for json.
Fix for ticket [57eec374ae1d0a1d]

FossilOrigin-Name: 28957d635961c525f735a52b8ffe3e69ccf31382

9 years agoHave the sqlite3VdbeSerialType() function go ahead and compute the serial
drh [Fri, 16 Oct 2015 14:54:17 +0000 (14:54 +0000)] 
Have the sqlite3VdbeSerialType() function go ahead and compute the serial
length as well, since it is always needed.  This avoids unnecessary calls
to sqlite3VdbeSerialTypeLen().

FossilOrigin-Name: 2ad72be12477b0e8e33e56a9a17e29abbd283ec1

9 years agoUse a lookup table to compute the content length for serial types less
drh [Fri, 16 Oct 2015 14:23:42 +0000 (14:23 +0000)] 
Use a lookup table to compute the content length for serial types less
than 128, for a 1.2% performance improvement.

FossilOrigin-Name: 3395724814099d28829ef6875ca1ba77d6fe7ffa

9 years agoSimplify the OP_Column logic slightly. One very small performance
drh [Fri, 16 Oct 2015 13:50:08 +0000 (13:50 +0000)] 
Simplify the OP_Column logic slightly.  One very small performance
improvement added.

FossilOrigin-Name: 0114b45dc286c13db0d640f0486d8a5bef9ff078

9 years agoOP_Column optimization: Do not check for an oversize row header unless the
drh [Fri, 16 Oct 2015 12:53:47 +0000 (12:53 +0000)] 
OP_Column optimization:  Do not check for an oversize row header unless the
row header size is larger than the content available on the local page.

FossilOrigin-Name: 8125b74cb46c372b9a319f6270f1c396767accd7

9 years agoImproved header comment on the tool/vdbe_profile.tcl script. No changes to code.
drh [Fri, 16 Oct 2015 12:39:52 +0000 (12:39 +0000)] 
Improved header comment on the tool/vdbe_profile.tcl script.  No changes to code.

FossilOrigin-Name: b17ad8fc046ebc9529d1c146437a383e72217b01

9 years agoPerformance optimization for the OP_Column opcode.
drh [Thu, 15 Oct 2015 21:30:24 +0000 (21:30 +0000)] 
Performance optimization for the OP_Column opcode.

FossilOrigin-Name: 076be5474df628bbbfd2b645adba30e1e093acd0

9 years agoEnhance the use of the column cache for UPDATE statements, making them
drh [Thu, 15 Oct 2015 19:21:51 +0000 (19:21 +0000)] 
Enhance the use of the column cache for UPDATE statements, making them
more efficient for the case where a column is modified to be an expression
of other unmodified columns.

FossilOrigin-Name: 871e091df651b2275a672c35ff938bd4b6db0d7f

9 years agoAdd the OP_IntCopy opcode - an optimized version of OP_SCopy that only works
drh [Thu, 15 Oct 2015 18:04:59 +0000 (18:04 +0000)] 
Add the OP_IntCopy opcode - an optimized version of OP_SCopy that only works
for integer values.

FossilOrigin-Name: 3a2f73a4924860fde8ee41ad646e7a02d29ad9d5

9 years agoOptimization to the out2Prerelease() helper routine in the VDBE engine.
drh [Thu, 15 Oct 2015 17:31:41 +0000 (17:31 +0000)] 
Optimization to the out2Prerelease() helper routine in the VDBE engine.

FossilOrigin-Name: 79298fe8c42f64b6a6110a70b84033873ac0630d

9 years agoRemove a superfluous conditional from the memory allocation initialization.
drh [Thu, 15 Oct 2015 17:21:35 +0000 (17:21 +0000)] 
Remove a superfluous conditional from the memory allocation initialization.

FossilOrigin-Name: 9ccf8f8d35723f2a9b59010b6d5f37a14164a188

9 years agoPerformance optimizations to the sqlite3MallocSize() by requiring the
drh [Thu, 15 Oct 2015 16:20:57 +0000 (16:20 +0000)] 
Performance optimizations to the sqlite3MallocSize() by requiring the
argument to always be non-NULL.

FossilOrigin-Name: cb65989b0710c65e4df69063b346344fdb1d12c7

9 years agoChange sqlite3StatusSet() into sqlite3StatusHighwater() so that only the
drh [Thu, 15 Oct 2015 15:28:56 +0000 (15:28 +0000)] 
Change sqlite3StatusSet() into sqlite3StatusHighwater() so that only the
highwater mark is recorded.  This gives a small size reduction and
performance improvement.

FossilOrigin-Name: 6422d223dd10018703c6b083d29a3c35c837fc97

9 years agoMake sure sqlite.h is not #included by itself.
drh [Thu, 15 Oct 2015 12:06:11 +0000 (12:06 +0000)] 
Make sure sqlite.h is not #included by itself.

FossilOrigin-Name: a61880c223c2229ecc3b4da7e5647eca17f7ddf5

9 years agoIn the MSVC makefile, add LIBTCLPATH variable to make it easier to run tests when...
mistachkin [Wed, 14 Oct 2015 23:04:08 +0000 (23:04 +0000)] 
In the MSVC makefile, add LIBTCLPATH variable to make it easier to run tests when the Tcl library is not already present in the PATH.

FossilOrigin-Name: 54127602b9a555f73f5e446b91e460386cb8fb17

9 years agoIn the MSVC makefile, make sure LDFLAGS is used for the tool executables as well.
mistachkin [Wed, 14 Oct 2015 22:46:37 +0000 (22:46 +0000)] 
In the MSVC makefile, make sure LDFLAGS is used for the tool executables as well.

FossilOrigin-Name: 0a17ee49c6895256fefd13425b790414935efb9d

9 years agoTests and minor fixes to improve coverage of FTS5 code.
dan [Wed, 14 Oct 2015 21:08:48 +0000 (21:08 +0000)] 
Tests and minor fixes to improve coverage of FTS5 code.

FossilOrigin-Name: f4de6d450e143cb1dd5447800d4b178e3db114c8

9 years agoFix harmless compiler warnings.
mistachkin [Wed, 14 Oct 2015 20:34:57 +0000 (20:34 +0000)] 
Fix harmless compiler warnings.

FossilOrigin-Name: 1c46c194a2da24fe613d77b5a8d727cc2fc9faa4

9 years agoMerge in all the 3.9.0 updates from trunk.
drh [Wed, 14 Oct 2015 20:09:54 +0000 (20:09 +0000)] 
Merge in all the 3.9.0 updates from trunk.

FossilOrigin-Name: 29444149342fc6b1ea8cd34c2c8e1fcb06eaa7ed

9 years agoUpdate makefiles to remove all uses of "awk" - to make building SQLite easier
drh [Wed, 14 Oct 2015 20:03:00 +0000 (20:03 +0000)] 
Update makefiles to remove all uses of "awk" - to make building SQLite easier
on Windows systems.  The only requirements now are tclsh, a C compiler, and
common file utilities.

FossilOrigin-Name: 4bd0d43db7c1877f2d8a8d2f2a48f24a10f0c3b8

9 years agoEnable cross-compiling the various tool EXEs with MSVC.
mistachkin [Wed, 14 Oct 2015 20:01:12 +0000 (20:01 +0000)] 
Enable cross-compiling the various tool EXEs with MSVC.

FossilOrigin-Name: 7d77233389c595237d5b3d244b8aeca1524290c0

9 years agoFixes to the JSON1 extension and to its use by fuzzcheck to avoid problems
drh [Wed, 14 Oct 2015 19:52:27 +0000 (19:52 +0000)] 
Fixes to the JSON1 extension and to its use by fuzzcheck to avoid problems
when building DLLs.

FossilOrigin-Name: 01d3ee7bbe4feeb82dcedecbe3c9058c807b18f6

9 years agoFix fuzzcheck.c so that it assumes that JSON1 is already compiled in and dll-build-fix
drh [Wed, 14 Oct 2015 19:44:42 +0000 (19:44 +0000)] 
Fix fuzzcheck.c so that it assumes that JSON1 is already compiled in and
does not need to be initialized further.

FossilOrigin-Name: ec003958359d6b69b1b1a75be2a988796268e063

9 years agoAvoid exporting sqlite3_json_init() from amalgamation builds.
dan [Wed, 14 Oct 2015 18:45:42 +0000 (18:45 +0000)] 
Avoid exporting sqlite3_json_init() from amalgamation builds.

FossilOrigin-Name: 8463f7e7908d0a96ed036377dfa3805328c62925

9 years agoVersion 3.9.0 version-3.9.0
drh [Wed, 14 Oct 2015 12:29:53 +0000 (12:29 +0000)] 
Version 3.9.0

FossilOrigin-Name: a721fc0d89495518fe5612e2e3bbc60befd2e90d

9 years agoAdd the missing 'extern "C" {...}' blocks to fts5.h and sqlite3rbu.h.
dan [Wed, 14 Oct 2015 10:56:34 +0000 (10:56 +0000)] 
Add the missing 'extern "C" {...}' blocks to fts5.h and sqlite3rbu.h.

FossilOrigin-Name: 47a2ce97d585e1760ffcf760c0de1753677d5713

9 years agoRemove the unused fts5ExprColsetTest() routine.
drh [Mon, 12 Oct 2015 22:31:02 +0000 (22:31 +0000)] 
Remove the unused fts5ExprColsetTest() routine.

FossilOrigin-Name: 9ecafc0c94102dca6da192f400278399464086fb

9 years agoFix a couple harmless compiler warnings.
mistachkin [Mon, 12 Oct 2015 22:20:29 +0000 (22:20 +0000)] 
Fix a couple harmless compiler warnings.

FossilOrigin-Name: 7f896a971c5953d5370215ecd834d1fb711b4263

9 years agoFurther tweaks to improve fts5 prefix query performance.
dan [Mon, 12 Oct 2015 19:12:29 +0000 (19:12 +0000)] 
Further tweaks to improve fts5 prefix query performance.

FossilOrigin-Name: 1c20c1c28b56411f106cf2f6961b3ad4b4d6f6c8

9 years agoChange all references to 3.8.12 into 3.9.0. Comment changes only - no
drh [Mon, 12 Oct 2015 04:56:12 +0000 (04:56 +0000)] 
Change all references to 3.8.12 into 3.9.0.  Comment changes only - no
changes to code.

FossilOrigin-Name: 6f2858f6817ca70c132f0437ac2f0f74deb273d2

9 years agoRemove AWK requirement from the MSVC batch build tool. omit-awk
mistachkin [Mon, 12 Oct 2015 03:56:21 +0000 (03:56 +0000)] 
Remove AWK requirement from the MSVC batch build tool.

FossilOrigin-Name: 6d9cdb931cf4e2f0830184cff32e441e4966bd7e

9 years agoThe TclKit batch tool should not download the TclKit SDK when the TCLKIT_NOSDK enviro...
mistachkin [Mon, 12 Oct 2015 03:44:39 +0000 (03:44 +0000)] 
The TclKit batch tool should not download the TclKit SDK when the TCLKIT_NOSDK environment variable is set.

FossilOrigin-Name: 7c5d583bac89f8db94e7f73df09e1d04f0f24990

9 years agoDetect and report circularly defined views even if the views have the
drh [Sun, 11 Oct 2015 20:39:46 +0000 (20:39 +0000)] 
Detect and report circularly defined views even if the views have the
columns defined in the CREATE VIEW statement.

FossilOrigin-Name: 9ab9c8c6d747647f8ade58c2c4812fc69a813368

9 years agoRemove an unreachable branch in the query flattener substitution logic.
drh [Sun, 11 Oct 2015 20:08:31 +0000 (20:08 +0000)] 
Remove an unreachable branch in the query flattener substitution logic.

FossilOrigin-Name: 46ee3453a31b5e793d5aaad471cec1b1a11ab2cf

9 years agoImproved substitution logic in the query flattener. Saves code space, and
drh [Sun, 11 Oct 2015 19:46:59 +0000 (19:46 +0000)] 
Improved substitution logic in the query flattener.  Saves code space, and
(more importantly) works correctly with table-valued functions.

FossilOrigin-Name: 3d0bd95e977db50c314d33ec292f99e0539d7b4a

9 years agoEnhance TclKit batch tool (and MSVC makefile) to support targets that require the...
mistachkin [Sat, 10 Oct 2015 23:39:55 +0000 (23:39 +0000)] 
Enhance TclKit batch tool (and MSVC makefile) to support targets that require the Tcl stub library.

FossilOrigin-Name: bc6223b1d6c31a47c7b734cfb8a9ecf15ab809fc