drh
f35f2f92ed
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
2017-07-29 16:01:55 +00:00
mistachkin
7751deb3e2
Update Tcl version used by the TclKit batch tool for MSVC.
...
FossilOrigin-Name: bcec155e0d6c6b17ae09d5a366c080723d01ff40dbc1a0ad0bb669a91db1b850
2017-07-28 22:22:15 +00:00
mistachkin
f6285fab68
Fix harmless compiler warning.
...
FossilOrigin-Name: 3286e1a07b0693049a07f0865bf93749c461ea8f6d1175ec2d1642886673d8ac
2017-07-28 22:13:26 +00:00
drh
1d42ea71c2
Enhance the like optimization so that it works with an ESCAPE clause.
...
FossilOrigin-Name: f5d330f495d07a704e115595bbdf5422ddb68fd8191114c5a12c9c873d983f7c
2017-07-27 20:24:29 +00:00
drh
01d837df9c
Increase the version number to 3.21.0 in anticipation for changes to go
...
into the next release.
FossilOrigin-Name: 0645f25c79c1b2af1fd3a02b44090329d456e373d91f6c284b8fbcb929e03a5d
2017-07-27 19:59:37 +00:00
drh
2036833a66
Merge the pointer-passing interface changes from the 3.20 branch.
...
FossilOrigin-Name: c63903a4c5d52a490e3f26707aa85fb54d4e2e8a3ce31ca26a9c615fe7a51e97
2017-07-27 18:49:19 +00:00
drh
761decbb50
Simplified documentation for the pointer passing interface.
...
FossilOrigin-Name: 2dfcd9a8ecdf0ddd8e044d820639830c6171141c588cf0224255af85c64cf79c
2017-07-27 18:43:13 +00:00
drh
05cccc2848
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
2017-07-27 17:45:08 +00:00
drh
34fcf36d62
In sqlite3_bind_pointer(), invoke the destructor if the bind index is
...
out of range, like sqlite3_bind_blob() does.
FossilOrigin-Name: d6684d2a744e6e04b8796c3b5ecb81c6577728b698c1ab5f4a828b2ac114b8a2
2017-07-27 16:42:36 +00:00
drh
a0024e6c99
Improved implementation of the destructor on pointer-passing interfaces.
...
FossilOrigin-Name: 601ad6795927fff8c3cc1711a2fd90912499573e94aa5bc8f18cbd4b89778f58
2017-07-27 15:53:24 +00:00
drh
22930062d5
Add a destructor argument to sqlite3_bind_pointer()
...
and sqlite3_result_pointer().
FossilOrigin-Name: 3d9e841f6011480ebb8a6d860da72af7fa545983e08835ddef2cac96e5f5cd4b
2017-07-27 03:48:02 +00:00
drh
8257aa8dbe
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
2017-07-26 19:59:13 +00:00
drh
61ffb2cda6
Fix a comment on the UnpackedRecord.r1 and UnpackedRecord.r2 fields.
...
No changes to code.
FossilOrigin-Name: 622b108915c7982b29ca9920abde941fff55234b70af9ac4122e4827b35d985c
2017-07-26 10:04:51 +00:00
drh
1fc376bfd1
Release candidate 2 for 3.20.0.
...
FossilOrigin-Name: f39cb76b3347baba22f2c329e74036710b64620414433a952de8d44da79ba8d9
2017-07-25 15:12:01 +00:00
drh
e8cf1ab9aa
Fix a bug in the deterministic date/time function logic that can only appear
...
with STAT3 or STAT4.
FossilOrigin-Name: 1ca707a4fb8db7aa85430413164265607ce727fc8a5afc3424b3abfb59921b39
2017-07-25 01:34:05 +00:00
dan
b67abfc463
Do not attempt to run test file unionvtabfault.test with SQLITE_OMIT_VIRTUAL_TABLE builds.
...
FossilOrigin-Name: 1a632a9a6c85b78abe0351ef91c7478b26299c4c1c269d5796afb1e172084517
2017-07-24 20:01:36 +00:00
dan
fb920e7eb0
Do not attempt to run test file unionvtab.test with SQLITE_OMIT_VIRTUAL_TABLE
...
builds.
FossilOrigin-Name: 9a5a3d60a5c6ce23bbdab5832f706bee8acdc4b1767aeed82b1aceb294f050f7
2017-07-24 19:25:45 +00:00
drh
e8e0eda95d
Handle a real OOM condition when incrblob2.test is run on a low-memory machine.
...
FossilOrigin-Name: f483d06a9af8d6771090551d911831e1df13bb05a6b7780499594703c28ebbb2
2017-07-24 17:37:35 +00:00
drh
1d8536bc0f
Additional documentation on sqlite3_bind_pointer() and sqlite3_result_pointer().
...
No changes to code.
FossilOrigin-Name: b1572d4e05934a0dc1b73092acba652fa50e97552eb6e9a1cedea7c71055804b
2017-07-24 15:29:16 +00:00
drh
caf8cc1b4b
Compiler warning fix associated with date/time functions.
...
FossilOrigin-Name: a98f07d942f0b8cc15da57b84e6340efae72ff19516fa04624242240af43a697
2017-07-24 14:44:15 +00:00
mistachkin
07c3a1a358
Remove stray (and incomplete) comment from a test file. No changes to code.
...
FossilOrigin-Name: 8de20fc72a9b55fabd2444b2d73c88c65658430d6d182da9f0e2f3432373ab51
2017-07-21 20:31:31 +00:00
drh
5acc3bdbdf
Fix a harmless typo, but one that would show up in the documentation if not
...
fixed.
FossilOrigin-Name: e4b1dd36838c4a35913b393b5aad948db9eccfb89b2cd456a0227470d7ac4a26
2017-07-20 20:49:41 +00:00
drh
4562d0db0d
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
2017-07-20 15:08:43 +00:00
drh
2fbeb7e8f0
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
2017-07-20 14:36:26 +00:00
drh
6e97f8ec84
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
2017-07-20 13:17:08 +00:00
drh
3e34eabcdf
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
2017-07-19 19:48:40 +00:00
mistachkin
885f410472
Remove some 'breakpoint' commands in test files.
...
FossilOrigin-Name: d14fc621e918915bbf8e04597eb238ea78dff3d9c5eb4402cb88692d00dbdfee
2017-07-19 18:01:42 +00:00
dan
d4603a2cab
Add further tests to unionvtab.test.
...
FossilOrigin-Name: c93284cd65b6471bffc38696e14dc24a2170698faf566cf91b727ba272f88c25
2017-07-19 11:52:25 +00:00
dan
7f3d20acec
Fix a crash in unionvtab caused by a misconfiguration. Add other test cases
...
for the same.
FossilOrigin-Name: 255d6b99de2bb210c09ebee9f9481ba3d1130fda47e6e01b4cc8411d00679d09
2017-07-18 21:19:17 +00:00
drh
5a75dd86c1
Fix shell.c.in so that it aligns with shell.c.
...
FossilOrigin-Name: 505fdc8ff5150276d3c6ab6135a542b791e9e79e2f76323e592b73b3fdc9bc2a
2017-07-18 20:59:40 +00:00
dan
ff0a4edb72
Add test cases and fix minor error-handling issues in unionvtab.c.
...
FossilOrigin-Name: deadaad2a0801b3c30d2a076d8eb006b62d8557cff820e0939741c078477c83f
2017-07-18 20:49:15 +00:00
mistachkin
aecd438737
Fix duplicate test name. No changes to code.
...
FossilOrigin-Name: 47b80ecc679e656ef865e73809d6a9aa485eceeacab86d10d405881c5d9872bd
2017-07-18 20:30:55 +00:00
drh
3935ce8e28
Fix another harmless compiler warning. Get the MSVC makefile working with unionvtab.
...
FossilOrigin-Name: d49639c208ac366f6c675ac5671accc2a597558b62a51520194276c61f32d406
2017-07-18 20:28:34 +00:00
drh
65e0f11451
Suppress harmless compiler warnings in union-vtab.
...
FossilOrigin-Name: 4d147a1e28b93e267889fcb01b538d6a2a58d6b1655512c883fa5b53ddcc60a4
2017-07-18 20:22:12 +00:00
dan
a18532353c
Remove an unused variable from unionvtab.c.
...
FossilOrigin-Name: a447fdf182c9090ca5b6c9c13147ae4b78d22d67f416ee7a0436ca408284c8fe
2017-07-18 20:17:52 +00:00
dan
859e4a73b7
Improve the readability of the unionvtab code.
...
FossilOrigin-Name: 5bcf0f86ea7fbbc31a13b2d5b1cf93a92e46fb65fe8e779b3d7e4a98d60d7061
2017-07-18 20:03:49 +00:00
dan
090f68a390
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
2017-07-18 19:51:11 +00:00
dan
8342aa0d81
Add test cases to unionvtab.test.
...
FossilOrigin-Name: 6c9128e1a53f8cf26de9ef1bc07051f2c94287531edacfcfb69d3cd7590240b3
2017-07-18 18:50:37 +00:00
drh
53e86ab36f
Add the union-vtab extension - still experimental and under active
...
development.
FossilOrigin-Name: 948f95046b7eaa8c68617b36625a7500dd0e69e52425ac6d748f2a311eb2474a
2017-07-18 18:19:35 +00:00
dan
46133d98a6
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
2017-07-18 17:34:41 +00:00
dan
bbccd52143
Avoid creating an automatic index on the RHS of a LEFT JOIN to optimize an IS
...
term. Fix for [ce68383b].
FossilOrigin-Name: d2f0b2e859a8a413ee4e4bd7040e450ccd604069e4ea8dbc9ff924718c2b14d7
2017-07-18 17:13:41 +00:00
drh
80f134c8aa
Change the default command-line shell history depth to 2000 lines.
...
FossilOrigin-Name: 0b69aa7e37495f15c3fcc36969b650262b5aa5500fb40800de9a5c56a03f309d
2017-07-18 14:41:44 +00:00
dan
16bab5a7d9
Add test cases to test/unionvtab.test.
...
FossilOrigin-Name: f2c4a584e83ffcc1cedd39460eb06d6f231a1a87f269bb3e75055232a866067e
2017-07-17 21:03:13 +00:00
dan
bcd303ac7d
Enhance error detection and fix other issues in unionvtab code.
...
FossilOrigin-Name: 9c3f1b9a82e500e015deb0cc669fbb32e7f0cdc69f926ceff383ab946f8d8d18
2017-07-17 20:25:21 +00:00
drh
b98ca04529
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
2017-07-17 18:45:23 +00:00
drh
06d4940a48
Interchange to branches within an "if" statement in sqlite3_value_pointer()
...
in order to work around a bug in gcc.
FossilOrigin-Name: 8a606e4abab4efa03f2e5ffc33d7c5faa3c663f339da87b4ce9f3feed5dc7194
2017-07-17 17:46:29 +00:00
drh
72495b44e0
Improved the interface to the fts5() extension mechanism for enhanced
...
security.
FossilOrigin-Name: bc78235f547977f1a821342ca8f3e03103a0eb351f8b3115ac10b43dd9c7044d
2017-07-17 15:38:57 +00:00
drh
bd3028d7e3
Merge the pointer-type enhancement from the 3.20 branch.
...
FossilOrigin-Name: 9e8e1c4aa14bcda165b392d1d8af2ce394a56a8e7b67e4c73c742d8da75e73e2
2017-07-17 13:37:07 +00:00
drh
aabebc27b7
Comment changes clarifying details of the pointer-type parameter. No
...
changes to code.
FossilOrigin-Name: e4579e50a1ece4f65dfdae39d5c1670f0e3f7d4824e7d242f07ec9859d15155f
2017-07-17 12:41:29 +00:00
drh
0357713225
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
2017-07-17 12:27:43 +00:00