]>
git.ipfire.org Git - thirdparty/sqlite.git/log
drh [Sat, 7 Dec 2024 20:39:59 +0000 (20:39 +0000)]
drh [Sat, 7 Dec 2024 20:01:08 +0000 (20:01 +0000)]
Yet another iteration of the solution to the floating-point conversion
problem. This one avoids complaints about oversize double values
from -fsanitize.
FossilOrigin-Name:
07bd06b13c42edb3a3efa8f26d48823c9ffa3d5ec8d06ee21a33b6c1d29b4726
drh [Sat, 7 Dec 2024 19:12:41 +0000 (19:12 +0000)]
A cleaner and more robust solution to the floating-point conversion problem
originally fixed earlier today.
FossilOrigin-Name:
18b20494ce0d0f8eb87f1157245ebd728d2262f0d1d902a5934f240fc781b4e6
drh [Sat, 7 Dec 2024 14:53:43 +0000 (14:53 +0000)]
drh [Sat, 7 Dec 2024 14:51:32 +0000 (14:51 +0000)]
On x64 hardware, round-trip uint64_t→double→uint64_t conversions
fail for values greater than UINT64_MAX-2047. This caused the SQLite
text-to-float converter routine to give incorrect results for values
between '1.8446744073709550592eNNN' and '1.8446744073709551609eNNN' for any
exponent NNN. Fixed by this check-in.
FossilOrigin-Name:
17537a98cb31ab41f0e02a8403b1480f8d86ddbfc263fd766e73b6b5a7dbba2f
drh [Mon, 2 Dec 2024 19:32:07 +0000 (19:32 +0000)]
Ensure that the query flattener does not change an ON clause term to a WHERE clause term.
FossilOrigin-Name:
e487d3b3c03ebcf06f8071f5c6a04faae15605200361e831df7bb2361e33efc3
drh [Mon, 2 Dec 2024 16:38:24 +0000 (16:38 +0000)]
stephan [Sun, 1 Dec 2024 16:19:58 +0000 (16:19 +0000)]
Fix the percentile extension so that works as an independent extension. [forum:/forumpost/
ab25469a350e0488 |Forum post
ab25469a350e0488 ]
FossilOrigin-Name:
86256f2cd4402268a1cc423940f49978e42c0fd00508799d1411690f7fe0a5bc
drh [Mon, 25 Nov 2024 12:07:48 +0000 (12:07 +0000)]
drh [Fri, 22 Nov 2024 18:50:46 +0000 (18:50 +0000)]
Fix a problem handling OOM errors in fts3 that could occur when parsing multi-token strings.
FossilOrigin-Name:
c8dcac33402daef74b6e55efaa9fcf38a7a5f3e3efcc34111e653ddb33ae944e
drh [Fri, 22 Nov 2024 17:45:37 +0000 (17:45 +0000)]
Fix two problems with argument expansion in sqlite-tclsh on Windows.
FossilOrigin-Name:
dcef1992d55de1a8ff183baf355ec4cca23131343c6a6b30bb587aabf431d051
stephan [Fri, 22 Nov 2024 16:52:07 +0000 (16:52 +0000)]
Remove a flaky JS test which has a result depending on unrepredictable context. That same feature is more reliably tested at a later point in the same script.
FossilOrigin-Name:
540a4a16241d35d2fcaa33ce8c0db74f8cd3f064f8a8a985e64032f58209888f
drh [Fri, 22 Nov 2024 12:12:06 +0000 (12:12 +0000)]
Fix some harmless scanbuild warnings in the shell.
FossilOrigin-Name:
04d6124d341c637dfbeb280088173ba98fab22955d24a58027f519395f7fae88
drh [Fri, 22 Nov 2024 11:27:45 +0000 (11:27 +0000)]
Document that -nofollow does not work on Windows. Fix Windows symlink
test cases for when the test suite is run as administrator.
FossilOrigin-Name:
3f76388a47bd4cc181ce2e72c72d5e235edcae251785990dc568665016ec34a5
drh [Fri, 22 Nov 2024 11:18:52 +0000 (11:18 +0000)]
drh [Wed, 20 Nov 2024 21:45:25 +0000 (21:45 +0000)]
Cherrypick a couple of changes requested by Mozilla onto the 3.47 branch.
FossilOrigin-Name:
b50d20d7951311f1fbf37b228687990f515d2d5189d5c4892b771081298e0af5
drh [Wed, 20 Nov 2024 15:02:34 +0000 (15:02 +0000)]
If a subquery is copied and then changes are made to the copy, be sure
to give the copy a unique Select.selId value so that the original will
not be substituted in place of the modified copy.
FossilOrigin-Name:
16d46e116086948a704c03b7b6aecbb2c66cefca4418e8e5a9ffd05e0036c7d1
drh [Wed, 20 Nov 2024 11:37:24 +0000 (11:37 +0000)]
Do not report an sqlite3_error_offset() for errors that occur inside of
views or triggers, since the text of those elements is not part of the
original query.
FossilOrigin-Name:
cb5ddebf79f824672045cbc660ffc896e82a769e1312ab5925d334ce1e7036dd
stephan [Sun, 17 Nov 2024 09:51:52 +0000 (09:51 +0000)]
buildtclext.tcl: add docs explaining the DESTDIR check and break out of the auto_path search loop early if the DESTDIR is not writable, rather than re-checking that repeatedly.
FossilOrigin-Name:
322be94569d196a66b3671100e880f32f85777c248a662866b0579a6392a24dc
stephan [Sat, 16 Nov 2024 17:12:17 +0000 (17:12 +0000)]
Handle DESTDIR at an earlier phase in buildtclext.tcl to account for the is-writable-dir check and to filter out //zipfs: dirs as (im)possible installation targets.
FossilOrigin-Name:
2f6e5946cf34e0948e177aa12a4a768fcd6dc413909a97566e0abff51230c87c
stephan [Sat, 16 Nov 2024 14:33:01 +0000 (14:33 +0000)]
Add DESTDIR support to the tclextension-install target, via [
67a3ca0c013b ] and [
d1663cf05f7d ].
FossilOrigin-Name:
38136b33f9536b63520d3810f397a3b4b5372028b31108806f84fe44bf338425
drh [Sat, 9 Nov 2024 18:17:28 +0000 (18:17 +0000)]
Fix a case in fts3 where a corrupt database record was not being handled correctly.
FossilOrigin-Name:
17bc57fa16096177684ee7246d2996219eeb7178c7687af808b5f56d8decd5fa
drh [Thu, 7 Nov 2024 18:06:19 +0000 (18:06 +0000)]
Fix an OOB write that could occur in fts3 when dealing with corrupt database records.
FossilOrigin-Name:
521b873be7863b6c009641db1f2636fdbe032d209ca39aa4da6671a72b5791f3
dan [Tue, 5 Nov 2024 18:53:13 +0000 (18:53 +0000)]
Have the xBestIndex method of the generate_series virtual table ignore contraints on the "value" column with usable=0.
FossilOrigin-Name:
1333e54422649b886629e6fb6ebc8ff8c6ce104d5ba334cbfb95e6fb84fae8ac
stephan [Mon, 4 Nov 2024 13:59:58 +0000 (13:59 +0000)]
Fix two mismatched uses of malloc() and sqlite3_free() in sqlite3_stdio.c, as reported in [forum:
7dd7c70038 | forum post
7dd7c70038 ].
FossilOrigin-Name:
5238959d05bbf3c12f488a55e52f3e9733138993d0365255184dffeb2bf36c03
stephan [Wed, 30 Oct 2024 00:35:08 +0000 (00:35 +0000)]
Replace 3 instances of the == 'test' shell command operator with =, as == is apparently not as portable across shells. Problem reported in [forum:
14274389fb2 |forum post
14274389fb2 ].
FossilOrigin-Name:
68199c40fedeb07a3f9c5024fac6376a0579a13b0e5690aef6238e3e22b9c1b7
drh [Thu, 24 Oct 2024 19:31:17 +0000 (19:31 +0000)]
Patch sqlite3_rsync.c to disable undesirable automatic line ending
conversions on Windows.
FossilOrigin-Name:
e3c27c6d8a8610ac4ad8ad95e0958ffad05fd58a086c67709f6ac132acff9b35
stephan [Thu, 24 Oct 2024 16:02:25 +0000 (16:02 +0000)]
Add missing ZERO_ARGUMENT_GENERATE_SERIES checks to ext/misc/series.c.
FossilOrigin-Name:
31e104cc40e335108b57afe8184782ad389b1e8ecc526e1e60417f00f94560ad
drh [Mon, 21 Oct 2024 16:30:22 +0000 (16:30 +0000)]
dan [Mon, 21 Oct 2024 14:24:27 +0000 (14:24 +0000)]
Add a case to testrunner.tcl so that mdevtest can run on openbsd.
FossilOrigin-Name:
e904b37fb2621e6bd5e761f3ecb75adb34350f2d1d7b229e655e74bc6a2f5321
dan [Mon, 21 Oct 2024 10:47:24 +0000 (10:47 +0000)]
Avoid using LIKE in sqlite3expert.c, in case "PRAGMA case_sensitive_like" has been used or the "like" UDF replaced by something unexpected.
FossilOrigin-Name:
9f642b3dbc8febfacad97076030f44e9b40067e27222f2bcb84813c5765d3d2a
dan [Sun, 20 Oct 2024 07:19:38 +0000 (07:19 +0000)]
Fix another problem with ".expert" and virtual tables. [forum:/forumpost/
49d6a19ec |Forum post
49d6a19ec ].
FossilOrigin-Name:
7a7162293c8fdb0078fe56948d697703539dd23273b2072990d4391c761e6ae2
stephan [Sat, 19 Oct 2024 22:45:50 +0000 (22:45 +0000)]
Add sqlite3_rsync to the docs at the top of mktoolzip.tcl. No code changes.
FossilOrigin-Name:
10f5c4a2fce8a9ea9b1533cabbaf4ca8549e72950d5c460c0f4501a9fc50e3e8
stephan [Sat, 19 Oct 2024 13:38:51 +0000 (13:38 +0000)]
Add missing $(TEXE) suffixes in the tool-zip makefile target.
FossilOrigin-Name:
5a594dbcd533aa1e37acea1702db993672c3c0e621add9ea26a497c52037617f
drh [Sat, 19 Oct 2024 13:20:34 +0000 (13:20 +0000)]
Move the #include of hwtime.h from the bottom of util.c to the top of
vdbe.c so that it will be available when needed, even for non-amalgamation
builds.
FossilOrigin-Name:
5f23036a87f443c82fa7fd48fdac16a31128bb9288b71f97228c29bcfeb632fb
stephan [Sat, 19 Oct 2024 12:39:06 +0000 (12:39 +0000)]
An assortment of comment typo fixes discovered by aspell. Add several new words to tool/custom.txt. No code changes.
FossilOrigin-Name:
59b76a99e4a28f4cc8c4f9f39ff6e039c4d29cb7b44183f1902b5792638656d2
drh [Sat, 19 Oct 2024 11:02:24 +0000 (11:02 +0000)]
Remove unnecessary VACUUMs from the previous check-in to sqlite3_rsync.
FossilOrigin-Name:
ad8d4812420e6a5f1cd5c26d2ed07b76e0e3e94596bae4ca59b667a4099bd1cc
drh [Sat, 19 Oct 2024 00:16:23 +0000 (00:16 +0000)]
Fix the sqlite3_rsync utility so that it is able to synchronize a database
using a UTF16 text encoding.
[forum:/forumpost/
e055d50821 |Forum post
e055d50821 ].
FossilOrigin-Name:
981347009c4baa9f16d60091d37e11b05a7fc1c62ae262c4de596b584d6a491a
stephan [Fri, 18 Oct 2024 23:54:23 +0000 (23:54 +0000)]
Minor doc cleanups in SQLTester.mjs and confirm that the tests pass with both OPFS VFSes.
FossilOrigin-Name:
ac747d57c2a26b47644bca2a9b191b09f5180f6872dce9c3261c370a18c848a2
stephan [Fri, 18 Oct 2024 23:36:08 +0000 (23:36 +0000)]
Fix three bugs in SQLTester.mjs which caused --tableresult tests, escaping of SQL values to incorrectly fail, and the --column-names setting to not be reset between tests.
FossilOrigin-Name:
779368dd9b8bb20890b06229c4c3c3b5d153ee88d1af472799515cdc599c870a
stephan [Fri, 18 Oct 2024 23:10:41 +0000 (23:10 +0000)]
stephan [Fri, 18 Oct 2024 16:50:29 +0000 (16:50 +0000)]
Remove the unused dbfuzz2-asan/msan makefile targets. Fix a comment typo in a makefile.
FossilOrigin-Name:
07843ac245661e8b8e086ad9d36c60bacf11784e9c56482593691fb97732f04f
stephan [Fri, 18 Oct 2024 12:31:21 +0000 (12:31 +0000)]
Remove a not-strictly-necessary 'undefine' invocation from ext/wasm/GNUmakefile, as it is not compatible with too-old versions of gmake. Resolves the problem reported in [forum:
e57932e3ccdc2c9c | forum post
e57932e3ccdc2c9c ].
FossilOrigin-Name:
a31a94644113c226a06316a3f95fb38b605821f1c123e2cda06ba90bfcacf59f
drh [Fri, 18 Oct 2024 10:51:43 +0000 (10:51 +0000)]
Minor enhancements to the compile-for-windows.md document.
FossilOrigin-Name:
5f0cc7f26453faaea20a7bb0a1bcbab381a9bae7a81e099bb27f4b05fac1cd6c
drh [Fri, 18 Oct 2024 10:42:24 +0000 (10:42 +0000)]
Fix typo in the README.txt for the amalgamation autoconf tarball.
FossilOrigin-Name:
62d24a69fe9cf6c07aa7e554f54aa7874b90e64c7c5597a78a824c6c9dc8847e
drh [Fri, 18 Oct 2024 01:14:14 +0000 (01:14 +0000)]
New assert() statements to validate OP_OpenEphemeral logic.
FossilOrigin-Name:
6d55c3e238e06c6727f3e816a9268b6222ebfc90ec745bbbd48430bf7b16664c
drh [Thu, 17 Oct 2024 23:14:27 +0000 (23:14 +0000)]
Fix obsolete M4 macro in the configure script for the TEA extension within
the autoconf tarball.
FossilOrigin-Name:
360613a2246ae193d9a1d4bc7a91a0f63f159146709dac8a2de3e0ca8eb62752
drh [Thu, 17 Oct 2024 18:12:03 +0000 (18:12 +0000)]
Fixes from code inspection:
(1) Extra paranoid defense against integer overflow.
(2) Remove a stray blank line in an FTS5 comment.
FossilOrigin-Name:
8563728deeb1d3ead9ff99a3ad2c7819b2223ead44e7374ecc7bbeda2d955ade
drh [Thu, 17 Oct 2024 16:22:47 +0000 (16:22 +0000)]
Fix a typo in compile-for-unix.md. Simplify hyperlinks in the compile-for-*
documents.
FossilOrigin-Name:
8cd7d157741f207c3a38744f2d85a5bb808824b5e83b9e033a8ce3954fe38f43
drh [Thu, 17 Oct 2024 13:29:49 +0000 (13:29 +0000)]
Improved README.txt file in the amalgamation-autoconf tarball.
FossilOrigin-Name:
b7814350381a2929e9fa6444867a80437291b8bbe59479d4525350b2719bc72c
drh [Thu, 17 Oct 2024 13:00:56 +0000 (13:00 +0000)]
Attempt to get the TEA builder in the amalgamation-autoconf tarball working
using hints from Jan Nijtmans.
FossilOrigin-Name:
ad9d7bdef95a8da76da0f6db358b6ffb0a0aa9097df2ff52f042e16e62afa8f5
stephan [Thu, 17 Oct 2024 12:14:34 +0000 (12:14 +0000)]
Ensure that the OPFS VFS's xOpen() writes back the read-only flag to the output flags. Resolves the problem reported in [forum:
cf37d5ff1182c31081 | forum post
cf37d5ff1182c31081 ].
FossilOrigin-Name:
0a32624015f16fd881a4ecbb56b7833391028d327a95f4c899eee864ed7fe00d
stephan [Thu, 17 Oct 2024 11:12:57 +0000 (11:12 +0000)]
When calling OpfsSAHPoolUtil.removeVfs(), ensure that the cached result the VFS init is also removed so that the VFS may later be registered again with the same name. Set up test code for the regression reported in [forum:
cf37d5ff11 | forum post
cf37d5ff11 ] (which uncovered the removeVfs() shortcoming) but that test is currently only known to fail with the "opfs" VFS and is not currently set up to fail.
FossilOrigin-Name:
b7f7a5deeae61920dbfec7606cf9014de711f959a285b29e12673abfd2f88646
stephan [Wed, 16 Oct 2024 14:05:39 +0000 (14:05 +0000)]
Add has_tclconfig to the tidy makefile target.
FossilOrigin-Name:
309e6d6f07d4169fbd6ea1d8b3d4809186ad9b7a2e69bbd33eedb9a55e831d68
drh [Wed, 16 Oct 2024 11:05:11 +0000 (11:05 +0000)]
Change the name of the new utility program from sqlite3-rsync to
sqlite3_rsync - dash changed to underscore - for consistency with the
preexisting sqlite3_analyzer.
FossilOrigin-Name:
86e794cbaa5ae600635c933b46298a39f2465daf4c5cd1570f2a03e19ac08d9d
drh [Wed, 16 Oct 2024 10:20:30 +0000 (10:20 +0000)]
In the unix Makefile, strip compiled binaries prior to adding them to the
tool ZIP archive.
FossilOrigin-Name:
cd8ae6fd7166680a6d121d710ff9d722e3e14d1d3538fc8ea1ea2690035ba80e
drh [Tue, 15 Oct 2024 22:22:53 +0000 (22:22 +0000)]
Fix harmless compiler warning in flockCheckReservedLock().
FossilOrigin-Name:
f369de3d8fa34a403b5c9f6269f7e3fdb16a13784a70460c5032ad4e66615d64
drh [Tue, 15 Oct 2024 18:45:21 +0000 (18:45 +0000)]
Fix the "tool-zip" makefile target so that it includes sqlite3-rsync.
FossilOrigin-Name:
ecdbedb16bbc467b0bc56badae2a4d407b4ea2085312b50af56af8cd110f055c
drh [Tue, 15 Oct 2024 14:28:23 +0000 (14:28 +0000)]
Fix a typo in a comment used to generate document. No code changes.
FossilOrigin-Name:
9b4bc5c4c1dc7c4ba359babc71c07ac3a6719971766951a8d2cb1df9e2396a83
drh [Tue, 15 Oct 2024 14:00:29 +0000 (14:00 +0000)]
Cross-reference the sqlite3_backup_init() function to the documentation for
VACUUM INTO and sqlite3-rsync. Comment changes only. No changes to code.
FossilOrigin-Name:
405c23ce02cc7f970e732afc26e01d0267b8fa89d8edc3d53fae2b3bc8405cbb
drh [Mon, 14 Oct 2024 18:43:04 +0000 (18:43 +0000)]
Avoid the possibility of buffer overrun in the READ_UTF8 macro by using
an less-than operator rather than not-equal-to.
FossilOrigin-Name:
20e60bf058c54bc818ea1b8ce54ace8bcd50699734713cef622bf79e49a9a279
drh [Mon, 14 Oct 2024 11:48:19 +0000 (11:48 +0000)]
There is no need to DELETE the content of sqlite_sequence in the output of
the CLI ".dump" command because that table will initially be empty if it
exists at all. [forum:/forumpost/
2e31f49d00472cec |Forum post
2e31f49d004 ]
FossilOrigin-Name:
8d7fe903d09a2a7961f506b2c8e93765e4feb7cd48aac436d75c7ec7838e856a
drh [Mon, 14 Oct 2024 10:45:02 +0000 (10:45 +0000)]
The CLI now default to ".crlf ON" in Windows. CSV output always uses CRLF on
all platforms.
FossilOrigin-Name:
84d19f03b1989d665547745defcd95fc927f8389ed65c76195a39206435791ba
drh [Mon, 14 Oct 2024 09:19:02 +0000 (09:19 +0000)]
Be consistent about using "CRLF" instead of "CRNL".
FossilOrigin-Name:
ec4f4cfd5f8ca83fad4f08cf6566251d9c63e50a3a4284baca299bd94b047951
drh [Mon, 14 Oct 2024 09:08:02 +0000 (09:08 +0000)]
dan [Sat, 12 Oct 2024 19:33:47 +0000 (19:33 +0000)]
Fix a problem with the ".expert" command and queries that use virtual tables.
FossilOrigin-Name:
43787b8ec5348207ae84e6f16acf2605c1ca024fc02b022ce2f36b8495e88384
dan [Sat, 12 Oct 2024 18:33:40 +0000 (18:33 +0000)]
Ensure that test file ext/expert/expert1.test works with non-fts5 builds.
FossilOrigin-Name:
933dfd06188b487f14e522453a83b06e491aea97b4248c17f87727b56694acb5
dan [Sat, 12 Oct 2024 18:00:22 +0000 (18:00 +0000)]
Allow the ".expert" command to analyze statements that use built-in virtual tables.
FossilOrigin-Name:
a201906cd3c85080f9b739c2d347c51348ebebd3dc9b647d33d8dcae4b6e5850
drh [Fri, 11 Oct 2024 23:31:37 +0000 (23:31 +0000)]
Additional clarification in the comments to sqlite3_stdio.c. No changes
to code.
FossilOrigin-Name:
2db24c5364808008fa503f37ca8ccf5d135e8f6bfac2efb29e509e26f7190470
drh [Fri, 11 Oct 2024 19:57:41 +0000 (19:57 +0000)]
Update comments in ext/misc/sqlite3_stdio.c to reflect the latest enhancements.
No changes to code.
FossilOrigin-Name:
9621c3b527702b47799538e028f96945b5697752dbb56078aa7f114c72fd4e1a
drh [Fri, 11 Oct 2024 19:33:22 +0000 (19:33 +0000)]
stephan [Fri, 11 Oct 2024 19:22:32 +0000 (19:22 +0000)]
Avoid a segfault when calling src-verify without any arguments.
FossilOrigin-Name:
c0c4e6f111b9b16538aad33e83f02f8d7835e952649f5cee610c068722bea4a4
stephan [Fri, 11 Oct 2024 19:18:44 +0000 (19:18 +0000)]
Add two missing $(BEXE) suffixes, as reported in [forum:
9ad28680d394afda | forum post
9ad28680d3 ]. Problem introduced by [
1218a203483cecdc ] being incomplete in where it added that suffix.
FossilOrigin-Name:
de9663c0aae92e457ddda48b751b32f205bfab29f60b055571e5f69b41ffd584
drh [Fri, 11 Oct 2024 19:13:02 +0000 (19:13 +0000)]
Improved instructions in the TEA readme for building the TCL extension.
FossilOrigin-Name:
bf996f710212fbc0c0c67789e3f6f1a805e7b81e0265b312265ca7286e76d6f3
drh [Fri, 11 Oct 2024 19:08:45 +0000 (19:08 +0000)]
Update the README for the TEA extension in the amalgamation tarball.
FossilOrigin-Name:
acc866c8f1b73fd57f434c5cb2576c2a7b9475a127febbcc27e8c714bbe29a8a
dan [Fri, 11 Oct 2024 18:59:29 +0000 (18:59 +0000)]
Avoid running some new tests in lock5.test with the inmemory_journal permutation.
FossilOrigin-Name:
0b12e2e55c6d4b329f0a7629965f313f48b6d3918d36d3371953c56e0c688a28
drh [Fri, 11 Oct 2024 17:43:47 +0000 (17:43 +0000)]
drh [Fri, 11 Oct 2024 17:02:37 +0000 (17:02 +0000)]
An improved method for statically linking sqlite3_analyzer.exe using Tcl9.
Enable wildcard expansion of arguments to testfiture on Windows.
FossilOrigin-Name:
9b87ea219bce5689a69efac31063b9b11928e59124c0d36194715ff7faa5129d
drh [Fri, 11 Oct 2024 14:30:58 +0000 (14:30 +0000)]
Fix the CSV output mode in the CLI such that the line ending is NL by default
but goes to CRLF if ".crnl on" is set. Make the .crnl command available on
non-Windows builds. Update the .crnl command such that if it has no arguments
it shows the current setting.
FossilOrigin-Name:
da750e39df7bf42330d8c8b266300da07247c9619895861b4cff4be7c94db7cf
drh [Fri, 11 Oct 2024 14:02:48 +0000 (14:02 +0000)]
Avoid undesirable NL to CRLF translation when doing binary output to the
Windows console.
FossilOrigin-Name:
d25bdce36abed95524ad058a277aba7bb17270e7ff1476474713dbc29742c762
drh [Thu, 10 Oct 2024 10:47:37 +0000 (10:47 +0000)]
Improvements to TCL9 support. Fixes to the Makefiles so that the "install"
targets are consistent and so that they work better with TCL9.
FossilOrigin-Name:
bcfae7183e92ce37717852bae5b1dd526903fa8429fb6f738c2147d4e5231642
drh [Thu, 10 Oct 2024 10:33:31 +0000 (10:33 +0000)]
For compatibility, allow the TCL interfact to continue working with TCL 8.5.
FossilOrigin-Name:
69346e9d4704e8fd82cbb3359913191e05cb38ee591baf97dcfe321db0ea085e
drh [Thu, 10 Oct 2024 09:59:06 +0000 (09:59 +0000)]
Adjustments to the Makefile.msc to get static builds of sqlite3_analyzer.exe
working with TCL9. Update the compile-for-windows.md document for TCL9.
FossilOrigin-Name:
df16d07d8db042cdb1dc6bb9a00a0265ba791a615d74f9152d0b3344e618fe93
drh [Wed, 9 Oct 2024 20:05:26 +0000 (20:05 +0000)]
Improvements to Makefile.msc: (1) Attempt to find sane values for key
variables based on the value of TCLDIR. (2) Default to TCLVERSION 90 instead
of 86. (3) Add the "tcl-env" target that shows the values of key variables
associated with TCL.
FossilOrigin-Name:
6b7a789a416fb62a532882d10e41c7048a6805f5fbbc008f36f9802be45d9ebb
stephan [Wed, 9 Oct 2024 17:47:43 +0000 (17:47 +0000)]
Add quotes around $(CC) in tclextension-related targets so that a CC of "ccache cc" works.
FossilOrigin-Name:
e8f719d13fbcbaf1b52b421d7af59759b1b4692d4010a68d5865dfeaf3cf8cb0
drh [Wed, 9 Oct 2024 16:32:19 +0000 (16:32 +0000)]
Fix a problem in the generate_series() extension introduced by
[
d50b784807333c54 ].
FossilOrigin-Name:
41d58a014ce89356932d717843a1fa6e0735f15a7b7265c41ac85a9722a5d826
dan [Wed, 9 Oct 2024 16:28:26 +0000 (16:28 +0000)]
Fix the xCheckReservedLock() method of the flock VFS to avoid dropping the file lock.
FossilOrigin-Name:
f7acb189d8eadf2de2fa992b3ff7293838fd0f8fd3c61e9f0238226a36ea6bcf
dan [Wed, 9 Oct 2024 15:40:07 +0000 (15:40 +0000)]
Fix the xCheckReservedLock() method of the flock VFS to avoid dropping the file-lock.
FossilOrigin-Name:
8ffaf85249ff38ceea037a6e96b3484c912f1c1aa55b8642297d592768661344
drh [Wed, 9 Oct 2024 13:54:24 +0000 (13:54 +0000)]
Change the makefile to prefer the use of tclsh9.0 if it is available.
FossilOrigin-Name:
28e2b9a23f61530bc5eea364a74817fca03fa31f70d4eefb0942a89c1d79f765
drh [Wed, 9 Oct 2024 13:40:49 +0000 (13:40 +0000)]
Make it so that the TCL extension installed using "make install" has the
same name as the one installed by "make tclextension-install".
FossilOrigin-Name:
e21fc1ba44dc88547fd2cdfaed90717566153880e79d862e2b3e54ba7f8f0a2e
drh [Wed, 9 Oct 2024 13:19:21 +0000 (13:19 +0000)]
Changes to the TCL extension and how it is built, suggested by Jan Nijtmans.
FossilOrigin-Name:
9c0690193200551a3218c576b19eaf40e330dc252d67b430204ff44495e4793e
drh [Wed, 9 Oct 2024 11:52:29 +0000 (11:52 +0000)]
Improved handling of unicode characters in the LIKE optimization.
Follow-up to [
bce52ce2a6e7f3d3 ].
FossilOrigin-Name:
9d0eb3980409115f2f6fd1720a03f34e3968c93be55feafdfef20bf5f711c17f
stephan [Wed, 9 Oct 2024 05:20:32 +0000 (05:20 +0000)]
Add a few missing $(BEXE) suffixes on makefile targets which are apparently never run on platforms where that var is non-empty.
FossilOrigin-Name:
1218a203483cecdc8c9abdc970ad68eba0dfa9cafbed95c63cefb7e8af8babee
drh [Tue, 8 Oct 2024 17:27:00 +0000 (17:27 +0000)]
Enable the ".crnl" command on Windows builds of the CLI even if the
SQLITE_U8TEXT_ONLY or SQLITE_U8TEST_STDIO compile-time options are used.
FossilOrigin-Name:
6364a2f0449794b0c089ba9fbc099f5558b88ac91c459caf7fae3a43dfcd192e
drh [Tue, 8 Oct 2024 15:11:43 +0000 (15:11 +0000)]
Additional improvements to the behavior of ".crnl" in the CLI. The default
output mode is O_BINARY so that results are identical on Windows and
non-Windows systems. On Windows you can optionally do ".crnl on" to enable
NL-to-CRLF conversion on output. Output to Windows console is always
O_U8TEXT and so is unaffected by the .crnl setting.
FossilOrigin-Name:
dbfc10b8981bcce4f875c4adef43f398871b41551074445087e343ded50253c5
drh [Tue, 8 Oct 2024 14:07:28 +0000 (14:07 +0000)]
Fix the .crnl command in the shell so that it does not get undone by
calls to print a quoted string or CSV output.
FossilOrigin-Name:
6b932337c8dee3e52b472a38984e91b5091f3d90c41ac1cc171fa4149cc491c5
drh [Tue, 8 Oct 2024 10:10:42 +0000 (10:10 +0000)]
Allow expressions with subtypes to be read from indexes unless they are
being used as direct or indirect parameters to SQLITE_SUBTYPE functions.
FossilOrigin-Name:
39a56a23fec24dd713905457b6d4ed7c148f88e325a26c376f1e6daf147c69c8
drh [Tue, 8 Oct 2024 00:15:22 +0000 (00:15 +0000)]
Add an ALWAYS() on a branch in the new indexed-subtype logic.
FossilOrigin-Name:
f150c3c5b898975b1f83d61fa589753449a48f8a0007e8e167dbd702528197c5
drh [Mon, 7 Oct 2024 21:04:57 +0000 (21:04 +0000)]
Add a NEVER() to an unreachable branch in the new indexed-subtype logic.
Mark the pi() function as deterministic.
FossilOrigin-Name:
50be8f5091b2202b67a80f826feee2c378f001745ad5acb7c4374423bbf6ff22
drh [Mon, 7 Oct 2024 18:06:17 +0000 (18:06 +0000)]
The (undocumented) subtype() SQL function should have the SQLITE_SUBTYPE flag.
FossilOrigin-Name:
c361dd91841da64fdd009e6eab389ccd81266a24d1070e5313fe1d22e6cef65a