]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
7 years agoVersion 3.20.1 branch-3.20 version-3.20.1
drh [Thu, 24 Aug 2017 16:21:36 +0000 (16:21 +0000)] 
Version 3.20.1

FossilOrigin-Name: 8d3a7ea6c5690d6b7c3767558f4f01b511c55463e3f9e64506801fe9b74dce34

7 years agoIncrease the version number to 3.20.1.
drh [Thu, 24 Aug 2017 14:08:03 +0000 (14:08 +0000)] 
Increase the version number to 3.20.1.

FossilOrigin-Name: 70338c7cb128855bb134dddebf04fbcf4c0c36b3127a53b9e24cd9f7fd235905

7 years agoMake sure the sqlite3_result_pointer() interface does not leave a VM register
drh [Thu, 24 Aug 2017 14:04:31 +0000 (14:04 +0000)] 
Make sure the sqlite3_result_pointer() interface does not leave a VM register
in an inconsistent state.  Fix for ticket [7486aa54b968e9b5].  Test cases
are in TH3.

FossilOrigin-Name: abc7adfda27b67ef0e3eb4da72811aac7e838cc4bca183007c308dc46362fd1e

7 years agoVersion 3.20.0 version-3.20.0
drh [Tue, 1 Aug 2017 13:24:15 +0000 (13:24 +0000)] 
Version 3.20.0

FossilOrigin-Name: 9501e22dfeebdcefa783575e47c60b514d7c2e0cad73b2a496c0bc4b680900a8

7 years agoTclKit batch tool updates for MSVC. Cherrypick of [bcec155e0d6c6b17] and [0c77935cf9...
mistachkin [Mon, 31 Jul 2017 20:06:21 +0000 (20:06 +0000)] 
TclKit batch tool updates for MSVC.  Cherrypick of [bcec155e0d6c6b17] and [0c77935cf9949099].

FossilOrigin-Name: 96ff1675721c744b5c1173a99fc2ad3a2df64ca8e931738e3a87c72a6f8b1e72

7 years agoSync up the MSVC autoconf makefile.
drh [Mon, 31 Jul 2017 19:34:27 +0000 (19:34 +0000)] 
Sync up the MSVC autoconf makefile.

FossilOrigin-Name: 44cebc6e684bcc1b6a4230f04b8ae9de237486476f5fe4ae4cfec4d899644c73

7 years agoMore consistent column names. Cherry-pick of
drh [Mon, 31 Jul 2017 17:40:15 +0000 (17:40 +0000)] 
More consistent column names.  Cherry-pick of
[09834279] and [0c38dde45] as a fix for ticket [de3403bf5ae].

FossilOrigin-Name: be0e24a0293f31b81fc5608a1d5aa1e57d3f5f7dddef6b368ae2e207bbdaf44c

7 years agoCorrectly handle an "INTEGER PRIMARY KEY UNIQUE" column in a WITHOUT ROWID
drh [Sun, 30 Jul 2017 20:30:36 +0000 (20:30 +0000)] 
Correctly handle an "INTEGER PRIMARY KEY UNIQUE" column in a WITHOUT ROWID
table.  This is a fix for ticket [bc115541132dad136] cherry-picked from
[5216bfb73f1a49bdd].

FossilOrigin-Name: 5c8cb1ff5da872fb5ab3f77f678b9df3b68525433f6d5d918f2911a5622bdd14

7 years agoNew test cases for column name generation interacting with the query flattener. early-column-names
drh [Sat, 29 Jul 2017 17:02:22 +0000 (17:02 +0000)] 
New test cases for column name generation interacting with the query flattener.

FossilOrigin-Name: 0c38dde4543d6183a6ab0b7b3b75819f56c47704756a2426d54d3f20468d78d8

7 years agoMove the generation of output column names earlier, to right after name
drh [Sat, 29 Jul 2017 16:01:55 +0000 (16:01 +0000)] 
Move the generation of output column names earlier, to right after name
resolution and before query transformations such as flattening.  This prevents
the names from getting mangled by query transformations, and obviates hacks
in the query flattener that attempt to work around the name mangling.
The resulting code is smaller and faster and gives more consistent output.
This is an alternative fix to ticket [de3403bf5ae5f72ed].

FossilOrigin-Name: 09834279aeca3bda63de684a369ed64f2cbf587b5f5df1454c0a3c009a1337ad

7 years agoUpdate Tcl version used by the TclKit batch tool for MSVC.
mistachkin [Fri, 28 Jul 2017 22:22:15 +0000 (22:22 +0000)] 
Update Tcl version used by the TclKit batch tool for MSVC.

FossilOrigin-Name: bcec155e0d6c6b17ae09d5a366c080723d01ff40dbc1a0ad0bb669a91db1b850

7 years agoFix harmless compiler warning.
mistachkin [Fri, 28 Jul 2017 22:13:26 +0000 (22:13 +0000)] 
Fix harmless compiler warning.

FossilOrigin-Name: 3286e1a07b0693049a07f0865bf93749c461ea8f6d1175ec2d1642886673d8ac

7 years agoFix a punctuation typo in the documentation for sqlite3_step(). No changes to
drh [Fri, 28 Jul 2017 12:20:39 +0000 (12:20 +0000)] 
Fix a punctuation typo in the documentation for sqlite3_step().  No changes to
code.

FossilOrigin-Name: c965b757bb5faed20d44d442e673cdad40dd12726f4f968105636501a021e41c

7 years agoRelease candidate 3 for 3.20.0
drh [Fri, 28 Jul 2017 00:45:38 +0000 (00:45 +0000)] 
Release candidate 3 for 3.20.0

FossilOrigin-Name: d891a2a00a34b6726624c66273f0f3388da9de6a771771c94b6e8a970dd9cdb9

7 years agoEnhance the like optimization so that it works with an ESCAPE clause.
drh [Thu, 27 Jul 2017 20:24:29 +0000 (20:24 +0000)] 
Enhance the like optimization so that it works with an ESCAPE clause.

FossilOrigin-Name: f5d330f495d07a704e115595bbdf5422ddb68fd8191114c5a12c9c873d983f7c

7 years agoIncrease the version number to 3.21.0 in anticipation for changes to go
drh [Thu, 27 Jul 2017 19:59:37 +0000 (19:59 +0000)] 
Increase the version number to 3.21.0 in anticipation for changes to go
into the next release.

FossilOrigin-Name: 0645f25c79c1b2af1fd3a02b44090329d456e373d91f6c284b8fbcb929e03a5d

7 years agoMerge the pointer-passing interface changes from the 3.20 branch.
drh [Thu, 27 Jul 2017 18:49:19 +0000 (18:49 +0000)] 
Merge the pointer-passing interface changes from the 3.20 branch.

FossilOrigin-Name: c63903a4c5d52a490e3f26707aa85fb54d4e2e8a3ce31ca26a9c615fe7a51e97

7 years agoSimplified documentation for the pointer passing interface.
drh [Thu, 27 Jul 2017 18:43:13 +0000 (18:43 +0000)] 
Simplified documentation for the pointer passing interface.

FossilOrigin-Name: 2dfcd9a8ecdf0ddd8e044d820639830c6171141c588cf0224255af85c64cf79c

7 years agoAdd destructor functions for the pointer argument (NB: not the type string)
drh [Thu, 27 Jul 2017 17:45:08 +0000 (17:45 +0000)] 
Add destructor functions for the pointer argument (NB: not the type string)
to the sqlite3_bind_pointer() and sqlite3_result_pointer() interfaces.  Use
this new capability to resolve a pointer leak in the custom geometry function
mechanism of the RTREE extension.

FossilOrigin-Name: 5a2340b81faf0a29deb5b7c9a2ba6a7697d646de6cc4e9b2e6e5e6463fa394bd

7 years agoIn sqlite3_bind_pointer(), invoke the destructor if the bind index is pointer-with-destructor
drh [Thu, 27 Jul 2017 16:42:36 +0000 (16:42 +0000)] 
In sqlite3_bind_pointer(), invoke the destructor if the bind index is
out of range, like sqlite3_bind_blob() does.

FossilOrigin-Name: d6684d2a744e6e04b8796c3b5ecb81c6577728b698c1ab5f4a828b2ac114b8a2

7 years agoImproved implementation of the destructor on pointer-passing interfaces.
drh [Thu, 27 Jul 2017 15:53:24 +0000 (15:53 +0000)] 
Improved implementation of the destructor on pointer-passing interfaces.

FossilOrigin-Name: 601ad6795927fff8c3cc1711a2fd90912499573e94aa5bc8f18cbd4b89778f58

7 years agoAdd a destructor argument to sqlite3_bind_pointer()
drh [Thu, 27 Jul 2017 03:48:02 +0000 (03:48 +0000)] 
Add a destructor argument to sqlite3_bind_pointer()
and sqlite3_result_pointer().

FossilOrigin-Name: 3d9e841f6011480ebb8a6d860da72af7fa545983e08835ddef2cac96e5f5cd4b

7 years agoAdd the new sqlite3.mDbFlags field. Factor out bits of sqlite3.flags that
drh [Wed, 26 Jul 2017 19:59:13 +0000 (19:59 +0000)] 
Add the new sqlite3.mDbFlags field.  Factor out bits of sqlite3.flags that
do not interact with PRAGMA statements into sqlite3.mDbFlags.

FossilOrigin-Name: 3808a00f06d372cc531da039d97bd974e4a6576a30cf63bf562f83f186b313b3

7 years agoFix a comment on the UnpackedRecord.r1 and UnpackedRecord.r2 fields.
drh [Wed, 26 Jul 2017 10:04:51 +0000 (10:04 +0000)] 
Fix a comment on the UnpackedRecord.r1 and UnpackedRecord.r2 fields.
No changes to code.

FossilOrigin-Name: 622b108915c7982b29ca9920abde941fff55234b70af9ac4122e4827b35d985c

7 years agoRelease candidate 2 for 3.20.0.
drh [Tue, 25 Jul 2017 15:12:01 +0000 (15:12 +0000)] 
Release candidate 2 for 3.20.0.

FossilOrigin-Name: f39cb76b3347baba22f2c329e74036710b64620414433a952de8d44da79ba8d9

7 years agoFix a bug in the deterministic date/time function logic that can only appear
drh [Tue, 25 Jul 2017 01:34:05 +0000 (01:34 +0000)] 
Fix a bug in the deterministic date/time function logic that can only appear
with STAT3 or STAT4.

FossilOrigin-Name: 1ca707a4fb8db7aa85430413164265607ce727fc8a5afc3424b3abfb59921b39

7 years agoDo not attempt to run test file unionvtabfault.test with SQLITE_OMIT_VIRTUAL_TABLE...
dan [Mon, 24 Jul 2017 20:01:36 +0000 (20:01 +0000)] 
Do not attempt to run test file unionvtabfault.test with SQLITE_OMIT_VIRTUAL_TABLE builds.

FossilOrigin-Name: 1a632a9a6c85b78abe0351ef91c7478b26299c4c1c269d5796afb1e172084517

7 years agoDo not attempt to run test file unionvtab.test with SQLITE_OMIT_VIRTUAL_TABLE
dan [Mon, 24 Jul 2017 19:25:45 +0000 (19:25 +0000)] 
Do not attempt to run test file unionvtab.test with SQLITE_OMIT_VIRTUAL_TABLE
builds.

FossilOrigin-Name: 9a5a3d60a5c6ce23bbdab5832f706bee8acdc4b1767aeed82b1aceb294f050f7

7 years agoHandle a real OOM condition when incrblob2.test is run on a low-memory machine.
drh [Mon, 24 Jul 2017 17:37:35 +0000 (17:37 +0000)] 
Handle a real OOM condition when incrblob2.test is run on a low-memory machine.

FossilOrigin-Name: f483d06a9af8d6771090551d911831e1df13bb05a6b7780499594703c28ebbb2

7 years agoAdditional documentation on sqlite3_bind_pointer() and sqlite3_result_pointer().
drh [Mon, 24 Jul 2017 15:29:16 +0000 (15:29 +0000)] 
Additional documentation on sqlite3_bind_pointer() and sqlite3_result_pointer().
No changes to code.

FossilOrigin-Name: b1572d4e05934a0dc1b73092acba652fa50e97552eb6e9a1cedea7c71055804b

7 years agoCompiler warning fix associated with date/time functions.
drh [Mon, 24 Jul 2017 14:44:15 +0000 (14:44 +0000)] 
Compiler warning fix associated with date/time functions.

FossilOrigin-Name: a98f07d942f0b8cc15da57b84e6340efae72ff19516fa04624242240af43a697

7 years agoRemove stray (and incomplete) comment from a test file. No changes to code.
mistachkin [Fri, 21 Jul 2017 20:31:31 +0000 (20:31 +0000)] 
Remove stray (and incomplete) comment from a test file.  No changes to code.

FossilOrigin-Name: 8de20fc72a9b55fabd2444b2d73c88c65658430d6d182da9f0e2f3432373ab51

7 years agoFix a harmless typo, but one that would show up in the documentation if not
drh [Thu, 20 Jul 2017 20:49:41 +0000 (20:49 +0000)] 
Fix a harmless typo, but one that would show up in the documentation if not
fixed.

FossilOrigin-Name: e4b1dd36838c4a35913b393b5aad948db9eccfb89b2cd456a0227470d7ac4a26

7 years agoEnhance the built-in date/time functions so that they can be used in
drh [Thu, 20 Jul 2017 15:08:43 +0000 (15:08 +0000)] 
Enhance the built-in date/time functions so that they can be used in
CHECK constraints, in the WHERE clause or partial indexes, and index
expressions, provided that none of the non-deterministic keywords
("now", "localtime", "utc") are used as arguments.

FossilOrigin-Name: a90c062d46c63a1e6f83064b1c5afb26a16e93b6ee8620ca46d169fdb325c488

7 years agoNew test cases for date/time functions in indexes on expressions, in the index-on-date-func
drh [Thu, 20 Jul 2017 14:36:26 +0000 (14:36 +0000)] 
New test cases for date/time functions in indexes on expressions, in the
WHERE clause of partial indexes, and in CHECK constraints.

FossilOrigin-Name: b7f70c7fcabc10b8b3e62fe5ac68476cec23acaee037c7250ff70bca3f3ab541

7 years agoCombine the Parse.ckBase and Parse.iSelfTab fields into just Parse.iSelfTab.
drh [Thu, 20 Jul 2017 13:17:08 +0000 (13:17 +0000)] 
Combine the Parse.ckBase and Parse.iSelfTab fields into just Parse.iSelfTab.
This fixes a problem with date/time functions in check-constraints.  Add
some test cases for date/time functions in index expressions and check
constraints.

FossilOrigin-Name: 22eda0985ecd1f456c073e6ad735a8417f3ff1fb6aaad1640e1cec01e50c51d8

7 years agoAllow indexes to be created on date/time functions as long as the 'now'
drh [Wed, 19 Jul 2017 19:48:40 +0000 (19:48 +0000)] 
Allow indexes to be created on date/time functions as long as the 'now'
date and the 'localtime' and 'utc' modifiers are not used.

FossilOrigin-Name: 0a5e1c04d9d07bb7fd6546a9ddac1bf42b19ea19c2b79570aea6cd4226887a27

7 years agoRemove some 'breakpoint' commands in test files.
mistachkin [Wed, 19 Jul 2017 18:01:42 +0000 (18:01 +0000)] 
Remove some 'breakpoint' commands in test files.

FossilOrigin-Name: d14fc621e918915bbf8e04597eb238ea78dff3d9c5eb4402cb88692d00dbdfee

7 years agoAdd further tests to unionvtab.test.
dan [Wed, 19 Jul 2017 11:52:25 +0000 (11:52 +0000)] 
Add further tests to unionvtab.test.

FossilOrigin-Name: c93284cd65b6471bffc38696e14dc24a2170698faf566cf91b727ba272f88c25

7 years agoFix a crash in unionvtab caused by a misconfiguration. Add other test cases
dan [Tue, 18 Jul 2017 21:19:17 +0000 (21:19 +0000)] 
Fix a crash in unionvtab caused by a misconfiguration. Add other test cases
for the same.

FossilOrigin-Name: 255d6b99de2bb210c09ebee9f9481ba3d1130fda47e6e01b4cc8411d00679d09

7 years agoFix shell.c.in so that it aligns with shell.c.
drh [Tue, 18 Jul 2017 20:59:40 +0000 (20:59 +0000)] 
Fix shell.c.in so that it aligns with shell.c.

FossilOrigin-Name: 505fdc8ff5150276d3c6ab6135a542b791e9e79e2f76323e592b73b3fdc9bc2a

7 years agoAdd test cases and fix minor error-handling issues in unionvtab.c.
dan [Tue, 18 Jul 2017 20:49:15 +0000 (20:49 +0000)] 
Add test cases and fix minor error-handling issues in unionvtab.c.

FossilOrigin-Name: deadaad2a0801b3c30d2a076d8eb006b62d8557cff820e0939741c078477c83f

7 years agoFix duplicate test name. No changes to code.
mistachkin [Tue, 18 Jul 2017 20:30:55 +0000 (20:30 +0000)] 
Fix duplicate test name.  No changes to code.

FossilOrigin-Name: 47b80ecc679e656ef865e73809d6a9aa485eceeacab86d10d405881c5d9872bd

7 years agoFix another harmless compiler warning. Get the MSVC makefile working with unionvtab.
drh [Tue, 18 Jul 2017 20:28:34 +0000 (20:28 +0000)] 
Fix another harmless compiler warning.  Get the MSVC makefile working with unionvtab.

FossilOrigin-Name: d49639c208ac366f6c675ac5671accc2a597558b62a51520194276c61f32d406

7 years agoSuppress harmless compiler warnings in union-vtab.
drh [Tue, 18 Jul 2017 20:22:12 +0000 (20:22 +0000)] 
Suppress harmless compiler warnings in union-vtab.

FossilOrigin-Name: 4d147a1e28b93e267889fcb01b538d6a2a58d6b1655512c883fa5b53ddcc60a4

7 years agoRemove an unused variable from unionvtab.c.
dan [Tue, 18 Jul 2017 20:17:52 +0000 (20:17 +0000)] 
Remove an unused variable from unionvtab.c.

FossilOrigin-Name: a447fdf182c9090ca5b6c9c13147ae4b78d22d67f416ee7a0436ca408284c8fe

7 years agoImprove the readability of the unionvtab code.
dan [Tue, 18 Jul 2017 20:03:49 +0000 (20:03 +0000)] 
Improve the readability of the unionvtab code.

FossilOrigin-Name: 5bcf0f86ea7fbbc31a13b2d5b1cf93a92e46fb65fe8e779b3d7e4a98d60d7061

7 years agoHave unionvtab support constraints on the column that corresponds to the
dan [Tue, 18 Jul 2017 19:51:11 +0000 (19:51 +0000)] 
Have unionvtab support constraints on the column that corresponds to the
INTEGER PRIMARY KEY field of the underlying source tables in the same way as
rowid.

FossilOrigin-Name: 4a6c416fa025a34116ea30923a673cbb108b251b2676734ec8f603600e38e50e

7 years agoAdd test cases to unionvtab.test.
dan [Tue, 18 Jul 2017 18:50:37 +0000 (18:50 +0000)] 
Add test cases to unionvtab.test.

FossilOrigin-Name: 6c9128e1a53f8cf26de9ef1bc07051f2c94287531edacfcfb69d3cd7590240b3

7 years agoAdd the union-vtab extension - still experimental and under active
drh [Tue, 18 Jul 2017 18:19:35 +0000 (18:19 +0000)] 
Add the union-vtab extension - still experimental and under active
development.

FossilOrigin-Name: 948f95046b7eaa8c68617b36625a7500dd0e69e52425ac6d748f2a311eb2474a

7 years agoDo not use the flattening optimization for a sub-query on the RHS of a LEFT
dan [Tue, 18 Jul 2017 17:34:41 +0000 (17:34 +0000)] 
Do not use the flattening optimization for a sub-query on the RHS of a LEFT
JOIN if that subquery reads data from a virtual table. Because it prevents the
planner from creating an automatic index on the results of the sub-query, the
flattening optimization sometimes slows things down in this case.

FossilOrigin-Name: 9dbae1df75219e2accd8993015ce0ffc21966d7e69d04178b1a2cc46207fe260

7 years agoAvoid creating an automatic index on the RHS of a LEFT JOIN to optimize an IS
dan [Tue, 18 Jul 2017 17:13:41 +0000 (17:13 +0000)] 
Avoid creating an automatic index on the RHS of a LEFT JOIN to optimize an IS
term. Fix for [ce68383b].

FossilOrigin-Name: d2f0b2e859a8a413ee4e4bd7040e450ccd604069e4ea8dbc9ff924718c2b14d7

7 years agoChange the default command-line shell history depth to 2000 lines.
drh [Tue, 18 Jul 2017 14:41:44 +0000 (14:41 +0000)] 
Change the default command-line shell history depth to 2000 lines.

FossilOrigin-Name: 0b69aa7e37495f15c3fcc36969b650262b5aa5500fb40800de9a5c56a03f309d

7 years agoAdd test cases to test/unionvtab.test.
dan [Mon, 17 Jul 2017 21:03:13 +0000 (21:03 +0000)] 
Add test cases to test/unionvtab.test.

FossilOrigin-Name: f2c4a584e83ffcc1cedd39460eb06d6f231a1a87f269bb3e75055232a866067e

7 years agoEnhance error detection and fix other issues in unionvtab code.
dan [Mon, 17 Jul 2017 20:25:21 +0000 (20:25 +0000)] 
Enhance error detection and fix other issues in unionvtab code.

FossilOrigin-Name: 9c3f1b9a82e500e015deb0cc669fbb32e7f0cdc69f926ceff383ab946f8d8d18

7 years agoMerge all changes from branch-3.20. Improvements to the fts5() extension
drh [Mon, 17 Jul 2017 18:45:23 +0000 (18:45 +0000)] 
Merge all changes from branch-3.20.  Improvements to the fts5() extension
interface.  Work around a gcc/valgrind bug in the sqlite3_value_pointer()
interface.

FossilOrigin-Name: e0aca7d2c60d9859750a6e98d3e3b87f79779a45920348fc1bda7f1cb93ef996

7 years agoInterchange to branches within an "if" statement in sqlite3_value_pointer()
drh [Mon, 17 Jul 2017 17:46:29 +0000 (17:46 +0000)] 
Interchange to branches within an "if" statement in sqlite3_value_pointer()
in order to work around a bug in gcc.

FossilOrigin-Name: 8a606e4abab4efa03f2e5ffc33d7c5faa3c663f339da87b4ce9f3feed5dc7194

7 years agoImproved the interface to the fts5() extension mechanism for enhanced
drh [Mon, 17 Jul 2017 15:38:57 +0000 (15:38 +0000)] 
Improved the interface to the fts5() extension mechanism for enhanced
security.

FossilOrigin-Name: bc78235f547977f1a821342ca8f3e03103a0eb351f8b3115ac10b43dd9c7044d

7 years agoMerge the pointer-type enhancement from the 3.20 branch.
drh [Mon, 17 Jul 2017 13:37:07 +0000 (13:37 +0000)] 
Merge the pointer-type enhancement from the 3.20 branch.

FossilOrigin-Name: 9e8e1c4aa14bcda165b392d1d8af2ce394a56a8e7b67e4c73c742d8da75e73e2

7 years agoComment changes clarifying details of the pointer-type parameter. No
drh [Mon, 17 Jul 2017 12:41:29 +0000 (12:41 +0000)] 
Comment changes clarifying details of the pointer-type parameter.  No
changes to code.

FossilOrigin-Name: e4579e50a1ece4f65dfdae39d5c1670f0e3f7d4824e7d242f07ec9859d15155f

7 years agoAdd the pointer-type parameter to sqlite3_bind_pointer(),
drh [Mon, 17 Jul 2017 12:27:43 +0000 (12:27 +0000)] 
Add the pointer-type parameter to sqlite3_bind_pointer(),
sqlite3_result_pointer(), and sqlite3_value_pointer().  The pointer type is
a static string that must match (according to strcmp()) or else the pointer
is passed as a NULL.  This is a security measure to prevent crossing pointers
between different extensions.

FossilOrigin-Name: e1196567fcbc313657836262ed9f71668b1c47f26e4bc57c7880ff40079d66cc

7 years agoImprove the sqlite3_result_pointer() interface so that it cannot be faked pointer-types
drh [Mon, 17 Jul 2017 11:39:46 +0000 (11:39 +0000)] 
Improve the sqlite3_result_pointer() interface so that it cannot be faked
using sqlite3_result_null() and sqlite3_result_subtype().

FossilOrigin-Name: c13264d5ef0470fb24e09f7bc12f19be3b77eab06d41f55607b38dddb532a132

7 years agoAdd an experimental "pointer type" parameter to sqlite3_bind_pointer(),
drh [Mon, 17 Jul 2017 00:40:19 +0000 (00:40 +0000)] 
Add an experimental "pointer type" parameter to sqlite3_bind_pointer(),
sqlite3_result_pointer(), and sqlite3_value_pointer().  The pointer type is
a string that must compare equal using strcmp() or else the pointer comes
through as a NULL.

FossilOrigin-Name: 211cce04e97d2e325a6ea3e99738fc71115d673dc13daeffb03ac3140deb11de

7 years agoAdd the "unionvtab" virtual table extension in ext/misc/unionvtab.c.
dan [Sat, 15 Jul 2017 20:48:30 +0000 (20:48 +0000)] 
Add the "unionvtab" virtual table extension in ext/misc/unionvtab.c.

FossilOrigin-Name: 62a86aa6c0519cf1fa232169122d3d6ae8d2f66b20530fb934a82a15712bd2f0

7 years agoMerge the fix for ticket [a4e06e75a9ab61a12] from trunk.
drh [Sat, 15 Jul 2017 20:44:33 +0000 (20:44 +0000)] 
Merge the fix for ticket [a4e06e75a9ab61a12] from trunk.

FossilOrigin-Name: b64d64c84484162d1822430036ba0483365a39ef4cf82cd6a7b9436d9e9f50c8

7 years agoFix a register allocation problem in PRAGMA integrity_check that caused
drh [Sat, 15 Jul 2017 20:33:19 +0000 (20:33 +0000)] 
Fix a register allocation problem in PRAGMA integrity_check that caused
the same register to be used for two different purposes on the first
ATTACHed database if the schema for the ATTACHed database was noticable
more complex than the schema for the first database.
Fix for ticket [a4e06e75a9ab61a1].

FossilOrigin-Name: 253945d480b052bfe311888022b5eb0be91c8c80cda05036e58207d57520262c

7 years agoFix a missing \n at the end of a comment causing a line to be too long.
drh [Sat, 15 Jul 2017 20:25:22 +0000 (20:25 +0000)] 
Fix a missing \n at the end of a comment causing a line to be too long.
No code changes.

FossilOrigin-Name: 687bd478710eb827e041533eea67115464f5a0de767bb6cfdbe36a0d3c597fa1

7 years agoEnhance the showstat4 utility program to show the full precision of
drh [Sat, 15 Jul 2017 17:57:31 +0000 (17:57 +0000)] 
Enhance the showstat4 utility program to show the full precision of
floating point values in sqlite_stat4 tables.

FossilOrigin-Name: 5ec37c62f65b2870dcd7a906912da787367f3912a96b6f3536355fad65903575

7 years agoMinor change to one of the command-line shell test scripts to make that
drh [Sat, 15 Jul 2017 13:49:56 +0000 (13:49 +0000)] 
Minor change to one of the command-line shell test scripts to make that
script compatible with Tcl 8.5.

FossilOrigin-Name: 47cf83a0682b7b3219cf255457f5fbe05f3c1f46be42f6bbab33b78a57a252f6

7 years agoFirst release candidate for version 3.20.0.
drh [Sat, 15 Jul 2017 13:35:17 +0000 (13:35 +0000)] 
First release candidate for version 3.20.0.

FossilOrigin-Name: 035a86ec3e4abd2173bfd0d8666ec86bd85af414cb791e68e6334447ecd35b84

7 years agoFix another minor problem in test file like.test.
dan [Sat, 15 Jul 2017 08:02:10 +0000 (08:02 +0000)] 
Fix another minor problem in test file like.test.

FossilOrigin-Name: 0953e74612358f48a9c9e3772876b514bc79784f277497121c59302a3106110c

7 years agoFix test problems causing the "prepare" permutation test to fail.
dan [Sat, 15 Jul 2017 06:35:15 +0000 (06:35 +0000)] 
Fix test problems causing the "prepare" permutation test to fail.

FossilOrigin-Name: b61cc5a0f9f2c2d2175ad30fc3fa4cb2086dbb948d5a5cc538ac43b871bb5221

7 years agoFix test problems with stmtvtab1.test under some permutations.
dan [Fri, 14 Jul 2017 20:53:21 +0000 (20:53 +0000)] 
Fix test problems with stmtvtab1.test under some permutations.

FossilOrigin-Name: ad6699d476b93131887e30475517764e281647f94df4a8248e2b88f1f14da91d

7 years agoFix a typo in a comment used to generate documentation. No code changes.
drh [Fri, 14 Jul 2017 19:52:47 +0000 (19:52 +0000)] 
Fix a typo in a comment used to generate documentation.  No code changes.

FossilOrigin-Name: 65f9f29c58f61646d700eee6610ce85b572306f0ce2f19bebfd37632523019e5

7 years agoIdentify requirements text in the SQLITE_DBCONFIG_ENABLE_QPSG documentation.
drh [Fri, 14 Jul 2017 19:47:32 +0000 (19:47 +0000)] 
Identify requirements text in the SQLITE_DBCONFIG_ENABLE_QPSG documentation.
Add some implementation marks for SQLITE_DBCONFIG_MAINDBNAME requirements.
No code changes.

FossilOrigin-Name: ab165dcf35ae7385c9366853ce5648294bf5dc9aa9ffe1af84243e6fac3472fc

7 years agoAdd requirements marks for some of the new features in the 3.20 release.
drh [Fri, 14 Jul 2017 19:22:08 +0000 (19:22 +0000)] 
Add requirements marks for some of the new features in the 3.20 release.

FossilOrigin-Name: 264238671379306b14d62a6ddaefd2a20acd34ca77276b6ce872253160fe0146

7 years agoTweak Makefile.in so that testfixture can be built with the
dan [Fri, 14 Jul 2017 19:12:26 +0000 (19:12 +0000)] 
Tweak Makefile.in so that testfixture can be built with the
--disable-amalgamation configure switch.

FossilOrigin-Name: 394c6f4f4376bc3d7796ea4157ba2ae230b0ca950774eff127ae6ef8a7b08602

7 years agoModify mkopcodeh.tcl so that it can handle "same as" opcodes with values
dan [Fri, 14 Jul 2017 17:50:11 +0000 (17:50 +0000)] 
Modify mkopcodeh.tcl so that it can handle "same as" opcodes with values
larger than the total number of opcodes.

FossilOrigin-Name: 1eb56fe0305f0841b14865b7560add3da529b211328f5fa171b9628418a6ed49

7 years agoIn the LSM1 virtual table, dequote the filename before opening the file.
drh [Fri, 14 Jul 2017 15:57:56 +0000 (15:57 +0000)] 
In the LSM1 virtual table, dequote the filename before opening the file.

FossilOrigin-Name: 6ed4ef03ff6f22ae83a14facc48ce594911d7d7b37446436b68af3a822578fae

7 years agoChanges to the LSM1 Tcl tests to make things work on Win32.
mistachkin [Fri, 14 Jul 2017 15:45:27 +0000 (15:45 +0000)] 
Changes to the LSM1 Tcl tests to make things work on Win32.

FossilOrigin-Name: 7dc5e70ef1faa0b51a04abdfe1ee2f9ea5c2d0f99ea8ef6260b9de02500cf8b2

7 years agoInclude a hint in the header comment of the LSM1 makefile about how to
drh [Fri, 14 Jul 2017 15:42:11 +0000 (15:42 +0000)] 
Include a hint in the header comment of the LSM1 makefile about how to
set the LSMOPTS variable.

FossilOrigin-Name: b5e3b264814cde9572130b70fc0d21ccebc2d7f5f0e7db50b6395cb63723383e

7 years agoUpdate the Makefile for LSM1 so that the LSMOPTS can be set prior to
drh [Fri, 14 Jul 2017 15:32:11 +0000 (15:32 +0000)] 
Update the Makefile for LSM1 so that the LSMOPTS can be set prior to
including the Makefile, in order to add platform arguments such as -fPIC.

FossilOrigin-Name: fe319bcd7f85e9997babdb024ab350514524f5901903600fa9780bdcd1805098

7 years agoFix a typo in the header comment to the remember extension. No code changes.
drh [Fri, 14 Jul 2017 15:18:51 +0000 (15:18 +0000)] 
Fix a typo in the header comment to the remember extension. No code changes.

FossilOrigin-Name: 604b9664f4dd6e8d188b5c57407edbbe0639345f8d30bf2d19016f8324934840

7 years agoChange the name of the STMT virtual table to SQLITE_STMT. Also remove the
drh [Fri, 14 Jul 2017 15:14:21 +0000 (15:14 +0000)] 
Change the name of the STMT virtual table to SQLITE_STMT.  Also remove the
first column of that virtual table, which was a pointer leak.

FossilOrigin-Name: 1bc4e93407b7894b0271fbde3720930dcaadda6070e871d9719c4e8dc65b915f

7 years agoMinor updates to requirements marks and documention. No changes to code.
drh [Fri, 14 Jul 2017 13:24:31 +0000 (13:24 +0000)] 
Minor updates to requirements marks and documention.  No changes to code.

FossilOrigin-Name: 8f6dd5e2907d6df230fcbceadd226496bcc35a33c117da58215f7d333c1cc7b8

7 years agoAdd very simple tcl tests for the lsm1 extension.
dan [Fri, 14 Jul 2017 11:40:48 +0000 (11:40 +0000)] 
Add very simple tcl tests for the lsm1 extension.

FossilOrigin-Name: 5e0a97930b08fff1c3a29f5c8b2962b856e3302209228c0e71b9f1a1bd2a4be3

7 years agoMinor tweaks to documentation. No code changes.
drh [Fri, 14 Jul 2017 04:16:03 +0000 (04:16 +0000)] 
Minor tweaks to documentation.  No code changes.

FossilOrigin-Name: d8cd0434f3451e27aefe38a1a9efdc4dfded2ea33baf25d82814c89264f3afff

7 years agoFix harmless compiler warnings in the readline tab-completion logic of the
drh [Fri, 14 Jul 2017 00:28:28 +0000 (00:28 +0000)] 
Fix harmless compiler warnings in the readline tab-completion logic of the
command-line shell.

FossilOrigin-Name: 271ca4acfcff448cf863045595d2c2616decd13b6015d7db481c91e2ad5bb92a

7 years agoImproved documentation for the new sqlite3_bind_pointer() interface and its
drh [Thu, 13 Jul 2017 22:39:15 +0000 (22:39 +0000)] 
Improved documentation for the new sqlite3_bind_pointer() interface and its
cousins.

FossilOrigin-Name: 889968bdbf1c258238cb68d82f059e16366c4a40c2d541dd4a1811ab72e693cb

7 years agoImprovements to the documentation for SQLITE_PREPARE_PERSISTENT.
drh [Thu, 13 Jul 2017 22:03:34 +0000 (22:03 +0000)] 
Improvements to the documentation for SQLITE_PREPARE_PERSISTENT.
No code changes.

FossilOrigin-Name: 265778142485882f39edfb5756175b2675c1993f0d6395dabbcbbb3767c6ec77

7 years agoFix documentation typo. No changes to code.
drh [Thu, 13 Jul 2017 20:11:52 +0000 (20:11 +0000)] 
Fix documentation typo.  No changes to code.

FossilOrigin-Name: 9319f7b71f68c9dc64c22c60b90650955b72f6bd9852d5ea86fa96a5c6fede37

7 years agoUpdate header comments on the carray() and remember() extensions to bring
drh [Thu, 13 Jul 2017 19:11:13 +0000 (19:11 +0000)] 
Update header comments on the carray() and remember() extensions to bring
out the fact that the pointer arguments must be bound using
sqlite3_bind_pointer().

FossilOrigin-Name: 55f5396576d186f310cb0fa66fbdb8ea68c18a3d0fe5de4b395ea03c7aa04c9e

7 years agoAdd new interfaces sqlite3_bind_pointer(), sqlite3_result_pointer(), and
drh [Thu, 13 Jul 2017 18:09:36 +0000 (18:09 +0000)] 
Add new interfaces sqlite3_bind_pointer(), sqlite3_result_pointer(), and
sqlite3_value_pointer() used to safely move pointer values through SQL without
exposing underlying memory address information.

FossilOrigin-Name: 72de49f204277191f62601cce70d5013ec30b564a01063f1e841019c78ae6c77

7 years agoFix an incorrect type signature for the loadable extension pointer bind-pointer
drh [Thu, 13 Jul 2017 17:56:52 +0000 (17:56 +0000)] 
Fix an incorrect type signature for the loadable extension pointer
for sqlite3_result_pointer().

FossilOrigin-Name: 0bd7875bd9948836a14061275eb8ddac627f562a49f59f400ec98c00e2be82c5

7 years agoAdd the three new pointer interfaces to the loadable extension mechanism.
drh [Thu, 13 Jul 2017 17:54:12 +0000 (17:54 +0000)] 
Add the three new pointer interfaces to the loadable extension mechanism.
Update sqlite3_value_subtype() documentation to remove the statement about
it not being used internally.

FossilOrigin-Name: e5a518038fcb23376d2b17d4d70648320bc5540c5bd8b164201044ebe1ce45c5

7 years agoUpdate the FTS3 extension to use sqlite3_result_pointer() and
drh [Thu, 13 Jul 2017 17:48:14 +0000 (17:48 +0000)] 
Update the FTS3 extension to use sqlite3_result_pointer() and
sqlite3_value_pointer() for passing FTS3 cursor objects from the table
into functions such as snippet().

FossilOrigin-Name: 0fa2e170e5e078d155c98b212ade36bd8424502ae07f2d82ebf77a76f57586ba

7 years agoMerge the latest changes from trunk.
drh [Thu, 13 Jul 2017 17:34:46 +0000 (17:34 +0000)] 
Merge the latest changes from trunk.

FossilOrigin-Name: a54be6e041a9185787a22b86603dcb0654e5e4af71225b556d1b6279f8520ad8

7 years agoSmaller and faster implementation for vdbeFreeOpArray() and freeP4().
drh [Wed, 12 Jul 2017 20:43:23 +0000 (20:43 +0000)] 
Smaller and faster implementation for vdbeFreeOpArray() and freeP4().

FossilOrigin-Name: 0c80593520d30958231be41fc443209eb39e0b3ee0e66308c3ef3a0f4cb8ea66

7 years agoFix harmless compiler warnings about incomplete structure initializers.
drh [Wed, 12 Jul 2017 18:05:54 +0000 (18:05 +0000)] 
Fix harmless compiler warnings about incomplete structure initializers.

FossilOrigin-Name: 604c11d1a39f09e47b6fcee0f8b1c1054f9dbbc7b2c1cf93312aeaa4b7095018

7 years agoRemove unnecessary EP_Leaf settings on the Expr object.
drh [Wed, 12 Jul 2017 17:26:44 +0000 (17:26 +0000)] 
Remove unnecessary EP_Leaf settings on the Expr object.

FossilOrigin-Name: f951c8b71b2369da62a329c792af5e3d3087bbe020f38c68ca1d0a594b904c08