]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
8 years agoRemove an extra space before function names in the amalgamation. callbackConv
mistachkin [Thu, 8 Sep 2016 23:16:02 +0000 (23:16 +0000)] 
Remove an extra space before function names in the amalgamation.

FossilOrigin-Name: 20f3c7436f6a8a7bab3968adc010c7c8325e4618

8 years agoSync up the MSVC makefiles.
mistachkin [Mon, 5 Sep 2016 20:46:02 +0000 (20:46 +0000)] 
Sync up the MSVC makefiles.

FossilOrigin-Name: f66d0d8cf6976c62f7bc0e9390b09fb9976178c1

8 years agoMerge updates from trunk.
mistachkin [Mon, 5 Sep 2016 20:40:38 +0000 (20:40 +0000)] 
Merge updates from trunk.

FossilOrigin-Name: ea635bf97edb35b95b34adcb63f726f3573b1c4d

8 years agoBuild the generate_series(START,END,STEP) table-valued function into
drh [Sat, 3 Sep 2016 16:23:42 +0000 (16:23 +0000)] 
Build the generate_series(START,END,STEP) table-valued function into
fuzzershell, to make it easier to construct compact test cases that contain
actual data.

FossilOrigin-Name: 672c21bcf09c5bfb67e061456a56be45409c4f34

8 years agoAdd a test case for the OOM handled by the previous commit.
dan [Fri, 2 Sep 2016 21:34:17 +0000 (21:34 +0000)] 
Add a test case for the OOM handled by the previous commit.

FossilOrigin-Name: 9bdf7ca1b317fe0ba7efea38fb395bf6130ac89a

8 years agoCorrectly detect an OOM occurring in the setDestPgsz() subroutine of
drh [Fri, 2 Sep 2016 21:17:51 +0000 (21:17 +0000)] 
Correctly detect an OOM occurring in the setDestPgsz() subroutine of
backup.

FossilOrigin-Name: d9d8a048d4b621435870b4f8dd13b2938ac2f8fd

8 years agoWithin a backup operation, ensure that a read-transaction is opened on the source...
dan [Fri, 2 Sep 2016 17:18:20 +0000 (17:18 +0000)] 
Within a backup operation, ensure that a read-transaction is opened on the source database before its page size is read. This ensures the page-size used to write to the backup database is the same as its actual page-size, which is important for ZipVFS databases.

FossilOrigin-Name: 7908fc604991d81140c182b97981fd724ad126ae

8 years agoHave "sqldiff --rbu" ignore rows with NULL values in primary key fields. RBU can...
dan [Thu, 1 Sep 2016 14:03:28 +0000 (14:03 +0000)] 
Have "sqldiff --rbu" ignore rows with NULL values in primary key fields. RBU can't handle such rows and the documentation already says sqldiff ignores them. Because the code now uses "=" instead of "IS" to filter on primary key columns, diffs on virtual tables are faster now too.

FossilOrigin-Name: f4ba894a86aa195bcbe2fa69e91cd870ec3fb577

8 years agoIf SQLITE_ENABLE_ZIPVFS is defined, journal_mode=off is configured and a savepoint...
dan [Thu, 1 Sep 2016 09:35:20 +0000 (09:35 +0000)] 
If SQLITE_ENABLE_ZIPVFS is defined, journal_mode=off is configured and a savepoint or statement rollback is attempted, move the pager into the error state to prevent the transaction from being committed. This makes it safe to use journal_mode=off with zipvfs under some conditions.

FossilOrigin-Name: 38d31e189e7c7899e14455f2c083aa676ce4d4c0

8 years agoUse some of the example code from the sessions documenatation in the sessions test...
dan [Mon, 29 Aug 2016 14:18:18 +0000 (14:18 +0000)] 
Use some of the example code from the sessions documenatation in the sessions test cases.

FossilOrigin-Name: 6602974d17536bcb904a794bddedffd58926794b

8 years agoFix typos in comments. No changes to running code.
drh [Sat, 27 Aug 2016 20:21:51 +0000 (20:21 +0000)] 
Fix typos in comments.  No changes to running code.

FossilOrigin-Name: a07269f2a0f87e0b736127f528f6caf3b63f9052

8 years agoFix some comments in sqlite3session.h. No changes to code.
dan [Sat, 27 Aug 2016 18:35:55 +0000 (18:35 +0000)] 
Fix some comments in sqlite3session.h. No changes to code.

FossilOrigin-Name: 78cd64e202fcbe9ce69070b0f48ccd0c6b48538d

8 years agoFixes to fts5 snippet() function.
dan [Sat, 27 Aug 2016 18:34:06 +0000 (18:34 +0000)] 
Fixes to fts5 snippet() function.

FossilOrigin-Name: d464a7b18d212720a4f4e2fa4e204f1aca99c837

8 years agoFix the extra comments (added with -DSQLITE_ENABLE_EXPLAIN_COMMENTS) so that
drh [Sat, 27 Aug 2016 14:05:12 +0000 (14:05 +0000)] 
Fix the extra comments (added with -DSQLITE_ENABLE_EXPLAIN_COMMENTS) so that
the sense of <, <=, >, and >= tests is correct and so that the
SQLITE_STOREP2 version is shown correctly.  These changes are already in the
rowvalue branch but are added here since they are technically unrelated to
rowvalue.

FossilOrigin-Name: 4d43c4698eef4e3db7556813f0274b4018c7c2b9

8 years agoFix a problem in internal function sqlite3OpenTableAndIndices causing an operand...
dan [Fri, 26 Aug 2016 12:00:50 +0000 (12:00 +0000)] 
Fix a problem in internal function sqlite3OpenTableAndIndices causing an operand of an unrelated VM instruction to be overwritten. Fix for [ef360601].

FossilOrigin-Name: 7090147903337864d54ecfb2cd84a3f823973167

8 years agoRename a test procedure in 'speed3.test' to avoid a name collision.
mistachkin [Fri, 26 Aug 2016 04:32:59 +0000 (04:32 +0000)] 
Rename a test procedure in 'speed3.test' to avoid a name collision.

FossilOrigin-Name: 84de17bc688f1df2be1a34420470d1b16f8f4e56

8 years agoAdapt the special case of '$' in item names for test 'vtabH-3.1' as well.
mistachkin [Fri, 26 Aug 2016 02:10:50 +0000 (02:10 +0000)] 
Adapt the special case of '$' in item names for test 'vtabH-3.1' as well.

FossilOrigin-Name: e4aeaa2bc73b57f1ef134cc4f54e2a652a20b5c9

8 years agoMake the test 'vtabH-3.1' work when there are less than 5 top-level items.
mistachkin [Fri, 26 Aug 2016 01:47:22 +0000 (01:47 +0000)] 
Make the test 'vtabH-3.1' work when there are less than 5 top-level items.

FossilOrigin-Name: 328f79bb5713abbecaeb0ef3fb37f56a0946b915

8 years agoSupport running the fstree tests in 'vtabH.test' on Windows when not using the system...
mistachkin [Fri, 26 Aug 2016 01:17:12 +0000 (01:17 +0000)] 
Support running the fstree tests in 'vtabH.test' on Windows when not using the system drive.

FossilOrigin-Name: 3680f95ff34fdcf6a18a99268678a56e4be5a023

8 years agoFix typos in 'vtabF.test' file. No changes to code.
mistachkin [Thu, 25 Aug 2016 23:24:09 +0000 (23:24 +0000)] 
Fix typos in 'vtabF.test' file.  No changes to code.

FossilOrigin-Name: a8546feec9388d96934b16e516a165cd37d32ce9

8 years agoFix the sqlite3_trace_v2() interface so that it goes disabled if either the
drh [Thu, 25 Aug 2016 22:06:37 +0000 (22:06 +0000)] 
Fix the sqlite3_trace_v2() interface so that it goes disabled if either the
callback or mask arguments are zero, in accordance with the documentation.

FossilOrigin-Name: 37e6c54b1afc634844026b3fe874dd2d550c6558

8 years agoModularize all use of the calling convention macros based on the USE_STDCALL nmake...
mistachkin [Wed, 24 Aug 2016 19:58:46 +0000 (19:58 +0000)] 
Modularize all use of the calling convention macros based on the USE_STDCALL nmake macro.

FossilOrigin-Name: e4a56197b08546601bd6a623f667b43f50d603be

8 years agoFix a bug in the fts5 snippet function causing it to return text containing zero... fts5-snippet-bias
dan [Wed, 24 Aug 2016 18:50:47 +0000 (18:50 +0000)] 
Fix a bug in the fts5 snippet function causing it to return text containing zero phrase instances.

FossilOrigin-Name: b174ed2bde43a1872374ce18b85ac9f067e86fbb

8 years agoMerge updates from trunk.
mistachkin [Wed, 24 Aug 2016 18:49:20 +0000 (18:49 +0000)] 
Merge updates from trunk.

FossilOrigin-Name: 428fc38d95dd88b90655a97133d0ad1214c9f176

8 years agoSync up the MSVC autoconf makefile.
mistachkin [Wed, 24 Aug 2016 18:21:58 +0000 (18:21 +0000)] 
Sync up the MSVC autoconf makefile.

FossilOrigin-Name: 77f7c31a3aa44798cfa5f557242caffb593ce7af

8 years agoFix the SQLITE_USER_AUTHENTICATION login check so that the SQLITE_AUTH_USER
drh [Tue, 23 Aug 2016 14:42:15 +0000 (14:42 +0000)] 
Fix the SQLITE_USER_AUTHENTICATION login check so that the SQLITE_AUTH_USER
error code correctly propagates and is not overwritten by SQLITE_ERROR.

FossilOrigin-Name: c640489db2037f1a284d7b85fa753ccdac1b8f79

8 years agoAdd support for the SQLITE_DBCONFIG_MAINDBNAME configuration option.
drh [Mon, 22 Aug 2016 20:10:01 +0000 (20:10 +0000)] 
Add support for the SQLITE_DBCONFIG_MAINDBNAME configuration option.

FossilOrigin-Name: 7839519349c7371cdb4e16a215eacd27004cbc62

8 years agoFix other minor problems with the fts5 snippet() function.
dan [Sat, 20 Aug 2016 17:23:45 +0000 (17:23 +0000)] 
Fix other minor problems with the fts5 snippet() function.

FossilOrigin-Name: b56b2a85cf377686727f3929208ede43f797cf76

8 years agoRegister any built-in fts5 module before loading automatic extensions. This allows...
dan [Fri, 19 Aug 2016 18:37:35 +0000 (18:37 +0000)] 
Register any built-in fts5 module before loading automatic extensions. This allows automatic extensions to register fts5 tokenizers and auxiliary functions.

FossilOrigin-Name: b10e31dce8e590e1ba30f512374a8c16656bcc72

8 years agoMerge the VACUUM attached database enhancement from trunk. dbconfig_maindbname
drh [Fri, 19 Aug 2016 15:17:51 +0000 (15:17 +0000)] 
Merge the VACUUM attached database enhancement from trunk.

FossilOrigin-Name: 12d5e38d269ede27cd38a031a395915301fffe56

8 years agoEnhance the VACUUM command so that it can operate on an attached database.
drh [Fri, 19 Aug 2016 15:15:55 +0000 (15:15 +0000)] 
Enhance the VACUUM command so that it can operate on an attached database.

FossilOrigin-Name: 083f9e6270fa4faa402b91231271da4f3915c79f

8 years agoDisable row counting on queries run while doing a VACUUM. vacuum-attached-db
drh [Fri, 19 Aug 2016 15:12:38 +0000 (15:12 +0000)] 
Disable row counting on queries run while doing a VACUUM.

FossilOrigin-Name: ad35ef116296e5d6aaeb9ef260bf35bee3bd6d20

8 years agoHave the fts5 snippet() function avoid favouring snippets that begin with sentences...
dan [Fri, 19 Aug 2016 14:25:38 +0000 (14:25 +0000)] 
Have the fts5 snippet() function avoid favouring snippets that begin with sentences that do not contain search terms. Add an extra bias in favour of the first sentence in the document.

FossilOrigin-Name: d8180af2adfc101dfce95a0498b5cd7b30643b30

8 years agoAdd the capability to VACUUM an attached database by specifying the schema
drh [Fri, 19 Aug 2016 14:20:56 +0000 (14:20 +0000)] 
Add the capability to VACUUM an attached database by specifying the schema
name as an argument to the VACUUM command.  Since version 2.0, VACUUM has
accepted an argument which was silently ignored.  Now it has meaning.

FossilOrigin-Name: 29d63059b4d2bb612523ac55ebfef040d054a64f

8 years agoAdd the SQLITE_DBCONFIG_MAINDBNAME interface.
drh [Thu, 18 Aug 2016 22:44:22 +0000 (22:44 +0000)] 
Add the SQLITE_DBCONFIG_MAINDBNAME interface.

FossilOrigin-Name: d6e3d5796c9991ca0af45ed92ce36f55efc02348

8 years agoChange the name of Db.zName to Db.zDbSName for improved long-term code
drh [Thu, 18 Aug 2016 22:19:03 +0000 (22:19 +0000)] 
Change the name of Db.zName to Db.zDbSName for improved long-term code
maintainability.

FossilOrigin-Name: cb9865e14db1c0076618f13400151112f84960cb

8 years agoFix a zName to zDbSName conversion missed in the previous check-in. zDbSName
drh [Thu, 18 Aug 2016 20:56:39 +0000 (20:56 +0000)] 
Fix a zName to zDbSName conversion missed in the previous check-in.

FossilOrigin-Name: d7cf423cdccada2b0a4b7cc79ccf5f35d6f43212

8 years agoAdjust some tests to account for recent changes to the fts5 snippet function.
dan [Thu, 18 Aug 2016 14:47:48 +0000 (14:47 +0000)] 
Adjust some tests to account for recent changes to the fts5 snippet function.

FossilOrigin-Name: 184ecbe9c0c3280a22cdeda5c7836a7b280c3e1f

8 years agoRename the Db.zName field to Db.zDbSName to make it more descriptive and to
drh [Thu, 18 Aug 2016 14:33:11 +0000 (14:33 +0000)] 
Rename the Db.zName field to Db.zDbSName to make it more descriptive and to
distinguish it from all of the other "zName" variables scattered throughout
the code.

FossilOrigin-Name: 92a22f01343a898455fd61c3b8e7d7c954f5b569

8 years agoBias the fts5 snippet() function to return snippets that look like they start at...
dan [Wed, 17 Aug 2016 19:05:12 +0000 (19:05 +0000)] 
Bias the fts5 snippet() function to return snippets that look like they start at the start of sentences.

FossilOrigin-Name: 60de159476edbd48dc363f7f77f09c32ea68422f

8 years agoFix a problem in the fts5 snippet() auxiliary function.
dan [Wed, 17 Aug 2016 11:14:39 +0000 (11:14 +0000)] 
Fix a problem in the fts5 snippet() auxiliary function.

FossilOrigin-Name: a861713cc6a3868a1c89240e8340bc7b2b9559da

8 years agoFix a bug in destructor processing of Lemon. That has no impact on the
drh [Tue, 16 Aug 2016 16:46:40 +0000 (16:46 +0000)] 
Fix a bug in destructor processing of Lemon.  That has no impact on the
SQLite grammar.  The bug was introduced by prior work to optimize the
Lemon-generated parser used by SQLite.

FossilOrigin-Name: f9035b8e2ea331801402bcb62b203ab092949770

8 years agoFix an fts5 problem with corrupt database handling found by address-sanitizer.
dan [Sat, 13 Aug 2016 10:34:12 +0000 (10:34 +0000)] 
Fix an fts5 problem with corrupt database handling found by address-sanitizer.

FossilOrigin-Name: e22252e1da4cd9e41b970970a1c4f466aa6cc133

8 years agoFix a buffer overread in fts5.
dan [Sat, 13 Aug 2016 06:38:31 +0000 (06:38 +0000)] 
Fix a buffer overread in fts5.

FossilOrigin-Name: fcfbee6c7d33a9ae7feb46044a0c2fe680460d39

8 years agoAdd the "modeof=<filename>" URI parameter to os_unix.c - used to specify a file to...
dan [Thu, 11 Aug 2016 18:05:47 +0000 (18:05 +0000)] 
Add the "modeof=<filename>" URI parameter to os_unix.c - used to specify a file to copy permissions from when a new database is created. Also allow passing NULL as the second parameter to sqlite3rbu_vacuum().

FossilOrigin-Name: ed406d31ff54ee3de8db91690a966e5c561f8f94

8 years agoFix a 1 byte buffer overwrite in the "sqldiff --rbu" command.
dan [Thu, 11 Aug 2016 09:55:55 +0000 (09:55 +0000)] 
Fix a 1 byte buffer overwrite in the "sqldiff --rbu" command.

FossilOrigin-Name: ab83d7077da80ddbcf399d0797d79e964dc64f0e

8 years agoFix a harmless compiler warning in FTS5.
drh [Thu, 11 Aug 2016 01:24:56 +0000 (01:24 +0000)] 
Fix a harmless compiler warning in FTS5.

FossilOrigin-Name: 2ea0c8b46eefd4874f021f8dfd344be751f2034f

8 years agoOptimization to sqlite3WhereExprUsage().
drh [Wed, 10 Aug 2016 20:02:21 +0000 (20:02 +0000)] 
Optimization to sqlite3WhereExprUsage().

FossilOrigin-Name: 95493058fcf40306727a281f21c5a2a0011b7d02

8 years agoList of MATCH operator names in isMatchOfColumn() should be constant.
drh [Wed, 10 Aug 2016 19:43:29 +0000 (19:43 +0000)] 
List of MATCH operator names in isMatchOfColumn() should be constant.

FossilOrigin-Name: 7319d676aaf95ba7391379f4cdf193b6aa898893

8 years agoPerformance enhancement in the expression walker.
drh [Wed, 10 Aug 2016 18:56:32 +0000 (18:56 +0000)] 
Performance enhancement in the expression walker.

FossilOrigin-Name: ebccbd96094ac64de39dbd0d220d3a7afd8cd40e

8 years agoTweaks to pcache1TruncateUnsafe() to make it slightly smaller and faster and
drh [Wed, 10 Aug 2016 15:02:49 +0000 (15:02 +0000)] 
Tweaks to pcache1TruncateUnsafe() to make it slightly smaller and faster and
easier to test.

FossilOrigin-Name: 059f4e2efefb7b9deaf539110c19bceaeb10c6ce

8 years agoRearrange the code inside sqlite3RunParser() routine so that sqlite3Parser()
drh [Wed, 10 Aug 2016 14:40:00 +0000 (14:40 +0000)] 
Rearrange the code inside sqlite3RunParser() routine so that sqlite3Parser()
is only called from a single place.  This allows sqlite3Parser() to be
in-lined, which results in a 0.25% overall performance gain.

FossilOrigin-Name: 25d1d02b3ea126ade22b2a72649ae55509aa1777

8 years agoIncrement the version number to 3.15.
drh [Wed, 10 Aug 2016 13:34:16 +0000 (13:34 +0000)] 
Increment the version number to 3.15.

FossilOrigin-Name: 8c2701e70ab2553d7a586ff5fe7afa02d8c63199

8 years agoImproved comments on the lempar.c parser template. Adjust the
drh [Wed, 10 Aug 2016 13:30:43 +0000 (13:30 +0000)] 
Improved comments on the lempar.c parser template.  Adjust the
YY_SHIFT_USE_DFLT constant in the Lemon-generated parser tables so as
to guarantee that it is always out of range of the yy_lookahead[] table.

FossilOrigin-Name: 83622f3f50030e4d6abafb99d99742928aaf157c

8 years agoFix pcache1TruncateUnsafe() run faster for the case where iLimit is
drh [Wed, 10 Aug 2016 11:50:12 +0000 (11:50 +0000)] 
Fix pcache1TruncateUnsafe() run faster for the case where iLimit is
very close to iMaxKey.

FossilOrigin-Name: b07a26df06a2ffb946ff8a1cc7f43eaf701a94b5

8 years agoPerformance optimization in the yy_find_shift_action() routine of the
drh [Wed, 10 Aug 2016 01:43:30 +0000 (01:43 +0000)] 
Performance optimization in the yy_find_shift_action() routine of the
Lemon-generated parser.

FossilOrigin-Name: ba6663beefcc8060e6f3be6ab37c13fdbb08b7de

8 years agoFix harmless compiler warning.
drh [Tue, 9 Aug 2016 21:01:52 +0000 (21:01 +0000)] 
Fix harmless compiler warning.

FossilOrigin-Name: 9a5a4f6e3bc265fecf79a7f63d14abbf239da636

8 years agoMinor update to the way fts5 column filters are parsed.
dan [Tue, 9 Aug 2016 19:48:37 +0000 (19:48 +0000)] 
Minor update to the way fts5 column filters are parsed.

FossilOrigin-Name: 14864f2b8470fe98dbd17f59963bf1be8d4962f9

8 years agoHave fts5 interpret column lists that begin with a "-" character as "match any column...
dan [Tue, 9 Aug 2016 19:26:57 +0000 (19:26 +0000)] 
Have fts5 interpret column lists that begin with a "-" character as "match any column except" lists.

FossilOrigin-Name: e517545650631d1e8a7ee63c6646a8b183a0a894

8 years agoVersion 3.14 version-3.14.0
drh [Mon, 8 Aug 2016 13:40:27 +0000 (13:40 +0000)] 
Version 3.14

FossilOrigin-Name: d5e98057028abcf7217d0d2b2e29bbbcdf09d6de

8 years agoFix documentation typos. No changes to code.
drh [Sun, 7 Aug 2016 18:52:11 +0000 (18:52 +0000)] 
Fix documentation typos.  No changes to code.

FossilOrigin-Name: ebc396a19fa79bea208ecda277ffff5d02166d0b

8 years agoHave the TEA package build without SQLITE_OMIT_DEPRECATED. As it uses recently deprec...
dan [Fri, 5 Aug 2016 20:54:45 +0000 (20:54 +0000)] 
Have the TEA package build without SQLITE_OMIT_DEPRECATED. As it uses recently deprecated interfaces sqlite3_profile() and sqlite3_trace().

FossilOrigin-Name: 95578898835b933901603bd4d5e063f1219a016f

8 years agoUndo commit [f250166bb]. It is required to handle IO and other errors that occur...
dan [Fri, 5 Aug 2016 16:16:26 +0000 (16:16 +0000)] 
Undo commit [f250166bb]. It is required to handle IO and other errors that occur within a VACUUM of a Zipvfs database.

FossilOrigin-Name: ae72513af37cd806a6d94aaa7c47a740e119d3b1

8 years agoRemove an incorrect ALWAYS() statement and add a test case to show when
drh [Fri, 5 Aug 2016 15:34:42 +0000 (15:34 +0000)] 
Remove an incorrect ALWAYS() statement and add a test case to show when
the condition is sometimes false.

FossilOrigin-Name: 0f57effa3642e66a863f32cc7fba86d167084af3

8 years agoFix a very obscure problem following OOM in sqlite3_declare_vtab().
drh [Fri, 5 Aug 2016 14:35:47 +0000 (14:35 +0000)] 
Fix a very obscure problem following OOM in sqlite3_declare_vtab().

FossilOrigin-Name: 68eac74874d0646369bef3650c6cb271cca62ab4

8 years agoRevert the SQLITE_APICALL changes for now. That changes needs further
drh [Thu, 4 Aug 2016 13:23:28 +0000 (13:23 +0000)] 
Revert the SQLITE_APICALL changes for now.  That changes needs further
research before it is released.  Deferred until 3.15.

FossilOrigin-Name: 9adda385267d1a0ecff259b42a284913668441a2

8 years agoAdd the experimental SQLITE_ENABLE_UNKNOWN_SQL_FUNCTION compile-time option.
drh [Thu, 4 Aug 2016 12:35:17 +0000 (12:35 +0000)] 
Add the experimental SQLITE_ENABLE_UNKNOWN_SQL_FUNCTION compile-time option.
When enabled, the "unknown function" error is suppressed for EXPLAIN and
a no-op function named "unknown()" is substituted.  This facilitiates using
the command-line shell to analyze queries from applications that contain
many application-defined functions that are not normally available to the
shell.

FossilOrigin-Name: b7f30a9ff20d580fdaecdcf2b644d09ad6c2575e

8 years agoMake sure the ORDER BY LIMIT optimization is not applied if the inner-most
drh [Thu, 4 Aug 2016 09:09:44 +0000 (09:09 +0000)] 
Make sure the ORDER BY LIMIT optimization is not applied if the inner-most
loop can only have a single iteration and is hence not really a loop.

FossilOrigin-Name: 13e3bd3de6b434b6182ef36be108d7ee0be8ca53

8 years agoFix a typo in a comment in btree.c. No changes to code.
drh [Wed, 3 Aug 2016 14:51:16 +0000 (14:51 +0000)] 
Fix a typo in a comment in btree.c.   No changes to code.

FossilOrigin-Name: 722c12816347ee9fce7a090cfebef2c5841e7445

8 years agoFix the --help output on fuzzcheck so that it fix in an 80-character window.
drh [Wed, 3 Aug 2016 13:40:54 +0000 (13:40 +0000)] 
Fix the --help output on fuzzcheck so that it fix in an 80-character window.

FossilOrigin-Name: b91444b5db8465f09d112455e722c888b3f94329

8 years agoFix a unused variable that comes up with -DSQLITE_OMIT_DATETIME_FUNCS.
drh [Tue, 2 Aug 2016 20:42:24 +0000 (20:42 +0000)] 
Fix a unused variable that comes up with -DSQLITE_OMIT_DATETIME_FUNCS.

FossilOrigin-Name: e2f9919e34c70761e4e275eeffca8ccf9159223c

8 years agoThe 'replace.tcl' tool should use Unix line-endings.
mistachkin [Tue, 2 Aug 2016 19:29:56 +0000 (19:29 +0000)] 
The 'replace.tcl' tool should use Unix line-endings.

FossilOrigin-Name: 50de96314f75494dc1f5b14d62c595a70c4e0638

8 years agoUpdates to requirements marks. No changes to code.
drh [Tue, 2 Aug 2016 13:26:34 +0000 (13:26 +0000)] 
Updates to requirements marks.  No changes to code.

FossilOrigin-Name: b23c10ac8f65bc88a6c7d88e140217222eb4cbe5

8 years agoFix a problem introduced by [77948b5eceab92a7] causing duplicate calls to be made...
dan [Tue, 2 Aug 2016 11:29:16 +0000 (11:29 +0000)] 
Fix a problem introduced by [77948b5eceab92a7] causing duplicate calls to be made to the xSavepoint() method of virtual tables under some circumstances.

FossilOrigin-Name: e64a4173d2899acf13b73e6e28f2e164fd638a75

8 years agoFix harmless compiler warnings in sqlite3_status().
drh [Tue, 2 Aug 2016 08:45:26 +0000 (08:45 +0000)] 
Fix harmless compiler warnings in sqlite3_status().

FossilOrigin-Name: 7c38a79cdd42aaa45715aea330d10ca859098837

8 years agoUpdate the wordcount.c test program and add a new script "time-wordcount.sh"
drh [Mon, 1 Aug 2016 21:17:53 +0000 (21:17 +0000)] 
Update the wordcount.c test program and add a new script "time-wordcount.sh"
for additional performance testing.

FossilOrigin-Name: d8ef9f58643f13dd3d16dcde0d829ae08324f04b

8 years agoFix other harmless compiler warnings.
drh [Mon, 1 Aug 2016 17:06:44 +0000 (17:06 +0000)] 
Fix other harmless compiler warnings.

FossilOrigin-Name: 90d2c490fc2ed4e073711b84f989ca4d496dcfb5

8 years agoRemove a duplicate typedef from loadext.c (remaining copy is in sqlite3ext.h).
dan [Mon, 1 Aug 2016 16:57:30 +0000 (16:57 +0000)] 
Remove a duplicate typedef from loadext.c (remaining copy is in sqlite3ext.h).

FossilOrigin-Name: fd184e5a8f4577aa9a817eb55e771d8d1021b946

8 years agoAdd an extra compiler switch to loadext.test to ensure that it picks up the correct...
dan [Mon, 1 Aug 2016 16:50:50 +0000 (16:50 +0000)] 
Add an extra compiler switch to loadext.test to ensure that it picks up the correct version of sqlite3.h when building a test extension.

FossilOrigin-Name: e57fa6af32a1d1bf7be64b26850730f7e714b6c6

8 years agoUpdate releasetest.tcl to automatically do one round of tests with
drh [Mon, 1 Aug 2016 15:00:00 +0000 (15:00 +0000)] 
Update releasetest.tcl to automatically do one round of tests with
USE_STDCALL=1 when running on Windows with MSVC.

FossilOrigin-Name: a6a112de485eb9d15f6fa75568dcb876f00abb64

8 years agoAvoid making unnecessary changes to the signatures of the
drh [Mon, 1 Aug 2016 14:35:48 +0000 (14:35 +0000)] 
Avoid making unnecessary changes to the signatures of the
sqlite3_auto_extension() and sqlite3_cancel_auto_extension() interfaces.

FossilOrigin-Name: b6ea2f21f602031ef4dbd47462ac11b0bb0d5de6

8 years agoFix harmless compiler warning seen with MSVC.
mistachkin [Sat, 30 Jul 2016 18:54:54 +0000 (18:54 +0000)] 
Fix harmless compiler warning seen with MSVC.

FossilOrigin-Name: 390a38a142d36d2c57b3f21aab72edcde450125d

8 years agoUsing the header file 'intrin.h' requires MSVC 2005 or later.
mistachkin [Fri, 29 Jul 2016 17:36:27 +0000 (17:36 +0000)] 
Using the header file 'intrin.h' requires MSVC 2005 or later.

FossilOrigin-Name: 9fae75c08b7d3b3e13734193ad8398ef6971cbac

8 years agoFor test 'shell1-5.0', disable round-trip testing for characters in the range 0xE0...
mistachkin [Fri, 29 Jul 2016 04:12:18 +0000 (04:12 +0000)] 
For test 'shell1-5.0', disable round-trip testing for characters in the range 0xE0 to 0xEF on Linux, due to intermittent shell portability issues.

FossilOrigin-Name: 544c990afd3b64064cc4d970ec5d7eb23eeb9914

8 years agoFix typo in a test file interactive output string.
mistachkin [Fri, 29 Jul 2016 02:04:36 +0000 (02:04 +0000)] 
Fix typo in a test file interactive output string.

FossilOrigin-Name: 4fedd7902371935e1374ca7df3ffd4c4cf93959b

8 years agoMerge additional linkage macro changes from the branch.
drh [Fri, 29 Jul 2016 01:55:42 +0000 (01:55 +0000)] 
Merge additional linkage macro changes from the branch.

FossilOrigin-Name: 8b0eb22ee12b23421dcb8dbeb46909d813788a0b

8 years agoFurther refinement to the calling convention macros.
drh [Fri, 29 Jul 2016 01:49:36 +0000 (01:49 +0000)] 
Further refinement to the calling convention macros.

FossilOrigin-Name: 45588de385d2a721b3e9f04beb6c7b789dd27d42

8 years agoMerge updates from trunk.
mistachkin [Fri, 29 Jul 2016 01:47:18 +0000 (01:47 +0000)] 
Merge updates from trunk.

FossilOrigin-Name: 71ffa195f5a48280ee522d80ab82e8cdea636961

8 years agoUpdate the autoconf makefile for MSVC.
mistachkin [Fri, 29 Jul 2016 01:46:57 +0000 (01:46 +0000)] 
Update the autoconf makefile for MSVC.

FossilOrigin-Name: 2daf20980d4cb9ed36372778ae1f3e595e503549

8 years agoUndo some unhelpful changes to skip-scan scoring that were added
drh [Fri, 29 Jul 2016 01:32:36 +0000 (01:32 +0000)] 
Undo some unhelpful changes to skip-scan scoring that were added
by the check-in [9e2b2681] that improved scoring of index scan.

FossilOrigin-Name: c7d51934a4f30d096bb79fc509fc9dd0df5d89a4

8 years agoAdd macro necessary for building several extensions when the __stdcall calling conven...
mistachkin [Fri, 29 Jul 2016 01:31:49 +0000 (01:31 +0000)] 
Add macro necessary for building several extensions when the __stdcall calling convention is not in use.

FossilOrigin-Name: bc8c9b55ddf5227dc6b2116486f4a19bf54fce2b

8 years agoMissed a couple Tcl command deletion callbacks.
mistachkin [Thu, 28 Jul 2016 23:58:25 +0000 (23:58 +0000)] 
Missed a couple Tcl command deletion callbacks.

FossilOrigin-Name: fc5c187602acceedf7152b6927616d134f779a8f

8 years agoUse the SQLITE_TCLAPI macro in several extensions that were missed in the previous...
mistachkin [Thu, 28 Jul 2016 23:54:45 +0000 (23:54 +0000)] 
Use the SQLITE_TCLAPI macro in several extensions that were missed in the previous check-in.

FossilOrigin-Name: df2543652b835353c03956dfbd3e35e5b191372e

8 years agoMore compiler warning fixes for GCC related to the auto-extension mechanism.
mistachkin [Thu, 28 Jul 2016 22:53:10 +0000 (22:53 +0000)] 
More compiler warning fixes for GCC related to the auto-extension mechanism.

FossilOrigin-Name: b8218129bc848c61fa6910feae4141dac6ad86fc

8 years agoThe return type used by the auto-extension entry points is 'int', not 'void'.
mistachkin [Thu, 28 Jul 2016 22:46:53 +0000 (22:46 +0000)] 
The return type used by the auto-extension entry points is 'int', not 'void'.

FossilOrigin-Name: bf9c86c74f30136a106f37603a6c7dcc76caf41d

8 years agoMake sure all the auto-extension mechanism function signatures match up precisely.
mistachkin [Thu, 28 Jul 2016 22:38:31 +0000 (22:38 +0000)] 
Make sure all the auto-extension mechanism function signatures match up precisely.

FossilOrigin-Name: 87ba69b5ca4a8e4ef2bbaaf07a0ff13fc5cd4721

8 years agoMake the extension auto-loading mechanism work with the __stdcall calling convention...
mistachkin [Thu, 28 Jul 2016 22:23:26 +0000 (22:23 +0000)] 
Make the extension auto-loading mechanism work with the __stdcall calling convention.  Also, fix a couple Tcl command calling conventions missed in the previous check-in.

FossilOrigin-Name: 3ea567c4b07b2a7a027b9b5cb8250ab687803698

8 years agoThe 'sqlite3ext.h' content should be processed before being included in the amalgamation.
mistachkin [Thu, 28 Jul 2016 19:28:35 +0000 (19:28 +0000)] 
The 'sqlite3ext.h' content should be processed before being included in the amalgamation.

FossilOrigin-Name: cbe1de4799df4d512bc175f51ed99c6ec6d5a4d1

8 years agoDecorate all interfaces with calling convention macros.
drh [Thu, 28 Jul 2016 18:55:57 +0000 (18:55 +0000)] 
Decorate all interfaces with calling convention macros.

FossilOrigin-Name: fd784887e125bf95f4799ad09cbcba6795173487

8 years agoAll SQLite API functions and callbacks in the 'sqlite3ext.h' header file must be...
mistachkin [Thu, 28 Jul 2016 18:49:20 +0000 (18:49 +0000)] 
All SQLite API functions and callbacks in the 'sqlite3ext.h' header file must be decorated with the calling convention.

FossilOrigin-Name: 97fc6e4328fe72cdd10f11a4b4bc9ce14bdc537f