]>
git.ipfire.org Git - thirdparty/sqlite.git/log
drh [Mon, 2 Mar 2026 15:06:59 +0000 (15:06 +0000)]
Change some sqlite3_realloc() calls into sqlite3_realloc64().
FossilOrigin-Name:
a391f5646926787fd9a004225ea406b61d20f282c852c0282fd26cada644b601
drh [Mon, 2 Mar 2026 13:44:04 +0000 (13:44 +0000)]
Remove the experimental and incomplete ext/repair extension, to prevent AIs
from scanning the (incomplete) code and reporting bugs against it.
FossilOrigin-Name:
213b1c6608af4b3e9d6e0d8de6432cc6857931427baf4beac1e0a4294e4dc6ce
drh [Mon, 2 Mar 2026 13:43:08 +0000 (13:43 +0000)]
Disable test shell1-5.0 as it is causing a use of initialized deep inside
of TCL.
FossilOrigin-Name:
440bd6091e3767f0a2f42ffdc92ca5e4736c0a73324fdd15397c3b5dbbc31fb8
drh [Mon, 2 Mar 2026 11:41:48 +0000 (11:41 +0000)]
Use only 64-bit memory allocation in FTS5. Fix for UAF reported by
Zijie Zhao.
FossilOrigin-Name:
e8976d5041c929675772039b7a8fc4ff0b609537d86f9aa6e445ecd512a10673
dan [Mon, 2 Mar 2026 11:22:28 +0000 (11:22 +0000)]
Fix a possible 9-byte buffer overread in the zipfile extension hit when processing a corrupt zip file. Forum post [forum:/forumpost/
721a05d2c5 |
721a05d2c5 ].
FossilOrigin-Name:
5db21813d126554d80db903be6d36ab6c1f73f9135a54af6dcfcfce0bcc18e68
drh [Mon, 2 Mar 2026 00:06:02 +0000 (00:06 +0000)]
The intck01.sql test should only be run if virtual tables work.
FossilOrigin-Name:
641d6f31a7f7b4901061e24d4e624da5ed92282e79771bb019b82a882e5d1ae9
drh [Sun, 1 Mar 2026 23:23:52 +0000 (23:23 +0000)]
drh [Sun, 1 Mar 2026 23:01:17 +0000 (23:01 +0000)]
drh [Sun, 1 Mar 2026 22:36:02 +0000 (22:36 +0000)]
Fix an OOB read in the incremental integrity-check extension.
FossilOrigin-Name:
abecc8e388e294311aa0b572e0a984b8ddad2afbf829c1246e1682fa549c8fac
drh [Sun, 1 Mar 2026 20:22:08 +0000 (20:22 +0000)]
Simplified rounding logic in sqlite3Fp10Convert2().
FossilOrigin-Name:
8ac63ebc5c04ba555bbf0d878a70e25deba5fcc75ff44c464600b92c27e5dcb0
drh [Sat, 28 Feb 2026 20:22:10 +0000 (20:22 +0000)]
Code changes in sqlite3Fp10Convert2() for easier maintenance. Does not
affect the generated machine code.
FossilOrigin-Name:
21c8fc7100e23b632b77934cbbafb98dfd3e6e73bab702446ef6345b378c9d36
drh [Fri, 27 Feb 2026 22:59:46 +0000 (22:59 +0000)]
Improvements to power-of-ten computations used for text ↔ binary64
conversions.
FossilOrigin-Name:
0780bce854b962fb2d4a1a19c55c9b5790a9669f26e1ff8b5f1f1733cfc647e0
drh [Fri, 27 Feb 2026 20:37:03 +0000 (20:37 +0000)]
Minor simplification to the text→binary64 conversion algorithm.
FossilOrigin-Name:
6632d51f1673e9a6b6e26baebc7aaa1ae27024ad5db1baff6ee5fcf865099f43
stephan [Fri, 27 Feb 2026 18:32:12 +0000 (18:32 +0000)]
Two code comment typo fixes reported in the forum. No code changes.
FossilOrigin-Name:
3fbd28fabc5509a0bf2026cb60891d6d3efe251910baa3a3934225d0a7187bfa
drh [Fri, 27 Feb 2026 13:25:42 +0000 (13:25 +0000)]
Fix an off-by-one error in the indentation of multi-line outputs in
QRF_STYLE_Line mode.
FossilOrigin-Name:
d47499b21c893cc8749a1cafe1cf712dacfeaa6cfe2cdb75d1fc450f3cb6879f
drh [Fri, 27 Feb 2026 11:36:43 +0000 (11:36 +0000)]
Add an assert() to sqlite3RegisterLikeFunctions() to hopefully prevent
future false-positive bug reports coming out of CodeQL.
FossilOrigin-Name:
7c5f4dcd748baa60097bbf68d7aca99cc959bb1f7da92bd9ad86a4425a37d391
stephan [Fri, 27 Feb 2026 06:33:28 +0000 (06:33 +0000)]
stephan [Fri, 27 Feb 2026 03:21:47 +0000 (03:21 +0000)]
JS: slight performance improvements in KVVfsStorage.
FossilOrigin-Name:
56edf2addb155dbb60269fe563ecb5f6132672c6c61f6f9d18ebdff72111298d
drh [Thu, 26 Feb 2026 16:19:21 +0000 (16:19 +0000)]
Fix typos in the SQLITE_PREPARE_FROM_DDL documentation.
FossilOrigin-Name:
9174e7dacf867c1f80e73ccf5e0ee7b9e84fbe9f2e53559d06b72206b1cde3c6
drh [Thu, 26 Feb 2026 13:35:38 +0000 (13:35 +0000)]
Improvements to the SQLITE_PREPARE_FROM_DDL documentation.
FossilOrigin-Name:
c3288f16848866a2c846221c33631785f7b39938078bb95c61895f789395aa1d
drh [Thu, 26 Feb 2026 12:17:19 +0000 (12:17 +0000)]
Fix an inconsequential typo in the output of the datedebug() SQL function.
FossilOrigin-Name:
3a92a53d8cf77822c22618dbf35851a20d27c4a659d23db2d24e7ccb3f61c7fc
dan [Thu, 26 Feb 2026 11:03:22 +0000 (11:03 +0000)]
Fix a problem where the wrong collation could be used as part of a row-value comparison between columns with different collation sequences. [forum:/forumpost/
6ceca07fc3 | Forum post
6ceca07fc3 ].
FossilOrigin-Name:
212c68249cc0e8904fc36d8e90646d04604f2b3b9d4c32eaeac7d920fa0fba99
drh [Wed, 25 Feb 2026 21:19:20 +0000 (21:19 +0000)]
drh [Wed, 25 Feb 2026 12:44:19 +0000 (12:44 +0000)]
Reinstant the work-around for [https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96270|GCC compiler bug 96270]
which is apparently still an issue as of gcc 13.3.0 with -m32 on Mint Linux.
The test case in the bug report is fixed, but the vdbeMemRenderNum() routine
in SQLite still shows the problem.
FossilOrigin-Name:
7fae321095ebec775de1b39b974fb1f295d5efbd5723e9cb29a981c97a4262c8
drh [Wed, 25 Feb 2026 01:04:22 +0000 (01:04 +0000)]
Use a 64-bit hash for the testing option SQLITE_CHECK_PAGES to maintain
page alignment.
FossilOrigin-Name:
75a35cd8f97f8a6cd2311c829685bd3b1cfb394de15174aef347f15cfb1913a1
drh [Tue, 24 Feb 2026 19:50:27 +0000 (19:50 +0000)]
Adjust the changes to shell8.test from [
5da9bf09cc00faf9 ] so that they
work with older versions of TCL.
FossilOrigin-Name:
c3b9e2cee3565da50bcc92766f700c31142391a697cbab7465774cf20a307dd8
drh [Tue, 24 Feb 2026 19:37:16 +0000 (19:37 +0000)]
Rename SQLITE_ENABLE_MULTITHREADED_CHECKS to SQLITE_THREAD_MISUSE_WARNINGS.
Run test cases with that option. Also add the
SQLITE_THREAD_MISUSE_ABORT option.
FossilOrigin-Name:
be8c8b9cb7b618a1571a988bc1cfdc15d99a8bf144d699385c0076e940b9f7f5
drh [Mon, 23 Feb 2026 19:51:54 +0000 (19:51 +0000)]
Fix an assert() that is incorrect when the SQLITE_DBCONFIG_FP_DIGITS setting
is on a non-default value.
FossilOrigin-Name:
3ca1ed81c4fa41f5f9fdbebf0929dd8421a4e29f95764fe1027d4d8706a41480
drh [Mon, 23 Feb 2026 13:29:29 +0000 (13:29 +0000)]
Add test cases for the symlink defenses of the previous check-in.
FossilOrigin-Name:
5da9bf09cc00faf98cc515fb5a10a0af325b8f7608893808d031dfef62380be2
drh [Mon, 23 Feb 2026 12:19:05 +0000 (12:19 +0000)]
Change the SQLAR archive extraction algorithm in the CLI so that it
uses the newly enhanced realpath() SQL function to guard against
attacks that use symlinks to try to write files outside of the
destination directory.
[forum:/forumpost/
641b09daa17d9086 |Forum post
641b09daa17d9086 ].
FossilOrigin-Name:
7cced53e8c508fbf1816162c5358c77a712f76a38fd18f07171efc3c028a3c57
drh [Mon, 23 Feb 2026 11:44:30 +0000 (11:44 +0000)]
Enhance the realpath() SQL function in the fileio.c extension
so that it works ever for pathnames that do not exist.
FossilOrigin-Name:
27a5735fb1e194d763ab9fdb933fad4f694fb2f8ad19205d17ac81caebd82548
drh [Mon, 23 Feb 2026 01:34:14 +0000 (01:34 +0000)]
When doing an SQLAR archive extraction in the CLI, postpone creating symlinks until after
all files and directories have been created. This prevents a hostile archive from
creating a symlink through which it can subsequently write content outside of the target
directory. [forum:forumpost/
9e176adfef91c207 |Forum post
9e176adfef91c207 ].
FossilOrigin-Name:
9719034d4d3becda127dc294f7f58ded9c982509c690dd55b56310912957eb51
drh [Mon, 23 Feb 2026 00:57:00 +0000 (00:57 +0000)]
Improved implementation of realpath() in the fileio.c extension that does not require
the last element of the path to actually exist.
FossilOrigin-Name:
4df4999484d9008d8af3c9c340810e0cf5f57161ba053ed5501276b450577039
drh [Sun, 22 Feb 2026 20:44:52 +0000 (20:44 +0000)]
Add the realpath() SQL function to the fileio.c extension. And clean up
the UTF8 handling on the Windows side of that extension while we are at it.
FossilOrigin-Name:
8bb8941930378b436f1353603be194644568b55fe347475be0caddddad40efa3
drh [Sat, 21 Feb 2026 21:19:41 +0000 (21:19 +0000)]
Fix typos and include wording in the documentation for
SQLITE_DBCONFIG_FP_DIGITS.
FossilOrigin-Name:
c30cee1224904eb2092daa0ad9494aec7c7a8c6c1661f5b91b62c3ef0c5ea95b
drh [Sat, 21 Feb 2026 20:20:06 +0000 (20:20 +0000)]
Fix a harmless warning in the decimal extension.
FossilOrigin-Name:
f16c7c4000f2b992f7245dcaf669f13ed464579f8894f3c16842eebf41285c70
drh [Sat, 21 Feb 2026 20:03:47 +0000 (20:03 +0000)]
Improved rounding of double→text conversions for rounding digits
of 17. Add the new sqlite3_db_config(), SQLITE_DBCONFIG_FP_DIGITS,
to specify the number of significant digits to preserve on conversions.
FossilOrigin-Name:
78c12b4f6ae869c3ea5e368c97b45991442bdd2d3a60935f1e6fc02a8e01cd41
drh [Sat, 21 Feb 2026 19:26:58 +0000 (19:26 +0000)]
New sqlite3_db_config(SQLITE_DBCONFIG_FP_DIGITS) that let's the application
specify the number of significant digits that double→text conversions
will attempt to preserve.
FossilOrigin-Name:
3f16985dcc47a366b54164c5024f920a79dddd76faeac5e36b4770732ed72c0a
drh [Sat, 21 Feb 2026 13:57:40 +0000 (13:57 +0000)]
New test cases for floating-point conversions.
FossilOrigin-Name:
3033fe97b14ba0531278d4aa444bc5340e044b87a72b3a4341032ddee442000f
drh [Sat, 21 Feb 2026 13:40:07 +0000 (13:40 +0000)]
drh [Sat, 21 Feb 2026 10:57:02 +0000 (10:57 +0000)]
Increase the precision of double → text conversions that happen in
sqlite3_column_text(), or sqlite3_value_text(), or in the CAST() operator,
or similar, so that round-tripping the value back to double results in
exactly the same value.
FossilOrigin-Name:
ef0049e3ade304f64e1ab97e52e1e21379e4db461f3fa80dac8e544fb90d622f
drh [Sat, 21 Feb 2026 00:56:11 +0000 (00:56 +0000)]
Further simplification, performance gain, and size reduction in
sqlite3FpDecode().
FossilOrigin-Name:
5954f22ceb6b43ed160ec085cd86b66299d8aab3e349a41941a4f1c2eade7457
drh [Sat, 21 Feb 2026 00:20:29 +0000 (00:20 +0000)]
Small performance increase and size reduction in sqlite3FpDecode() by using
local variables instead of structure elements.
FossilOrigin-Name:
b4c378bba582205aa676e45b21ffa17ad6199e2a017ec73cf41a0243f693b589
drh [Fri, 20 Feb 2026 20:43:25 +0000 (20:43 +0000)]
Inconsequential changes to floating-point conversion, amounting to mere
code cleanup to aid comprehension.
FossilOrigin-Name:
6d9c29123b6b143b0f7c8f5d018f170c72edfc5b1a4d67edd45e5552def2af6c
drh [Fri, 20 Feb 2026 16:21:58 +0000 (16:21 +0000)]
In the decimal extension, an optional second argument to the
decimal() and decimal_exp() functions rounds the value to the
number of significant digits specified by that argument.
FossilOrigin-Name:
cb24edf1afc3f9083a4963c5fe232933eccc7c0cb8872aa5fcd336d226b885ef
stephan [Fri, 20 Feb 2026 14:22:09 +0000 (14:22 +0000)]
Fix a cse in the fiddle.debug build where it could not overwrite its read-only/generated index.html.
FossilOrigin-Name:
7adb2c0f438a97d377760436b1ac81fffab36e541a2b5ee733bfc7108e0180e5
drh [Fri, 20 Feb 2026 14:20:33 +0000 (14:20 +0000)]
Add new functions ieee754_to_int() and ieee754_from_int() to the
ieee754 extension. No changes to the core SQLite.
FossilOrigin-Name:
8660d3e94cbe892693554df282bce0fa8c7aedbc5e020cab647cbbff3d7e55b7
drh [Fri, 20 Feb 2026 12:27:52 +0000 (12:27 +0000)]
Improved rounding of floating-point conversions in some corner cases.
FossilOrigin-Name:
436dccd42650a6ab0a74459ae42fdb3e36d853f934324acc2bc961f87c001852
drh [Thu, 19 Feb 2026 17:20:40 +0000 (17:20 +0000)]
In the CLI, the ".quit" command in a --cmd argument causes an immediate
exit. [forum:/forumpost/
f057122b68 |Forum post
f057122b68 ].
FossilOrigin-Name:
4731cc8856aa4dcfad5db501648bfd0afef43d8c5f339e7b11a1e3ee64348b87
drh [Thu, 19 Feb 2026 12:59:42 +0000 (12:59 +0000)]
Improvements to rounding behavior in the new floating-point conversion logic.
FossilOrigin-Name:
e540f6c370675ae043af8cdbb80f7eb17c08e50f7634e0b78f0b1dccf7bd4b18
drh [Tue, 17 Feb 2026 20:28:25 +0000 (20:28 +0000)]
Restore the CLI function dtostr() back to its original purpose of converting
floating point values to decimal using the host computer's C-library.
FossilOrigin-Name:
f3cc05ba7fa9cb77573de5cd28ab90f10844567692ed57a706c5dc35b1348009
drh [Tue, 17 Feb 2026 14:28:18 +0000 (14:28 +0000)]
drh [Tue, 17 Feb 2026 14:02:27 +0000 (14:02 +0000)]
Increase the number of floating-point precision test cases by 9x, and
increase the require precision to 16 digits.
FossilOrigin-Name:
62c2cf74db5e47f975d1f47818f82f060ddecad4b68c4d4dbc6190cc9a8fc397
drh [Tue, 17 Feb 2026 12:23:12 +0000 (12:23 +0000)]
drh [Tue, 17 Feb 2026 11:28:48 +0000 (11:28 +0000)]
New assert()s for the return value from sqlite3SchemaToIndex().
FossilOrigin-Name:
2610105a439e25c050b2deb32953861187c81b1d97407f41dc188e6627e0ac4d
drh [Tue, 17 Feb 2026 01:04:23 +0000 (01:04 +0000)]
Further simplifications, performance improvements, and size reductions
to the numeric to text conversion logic.
FossilOrigin-Name:
dd5af703e1082951a4295a3453611db12b23cfbcfee4258ec3985abe96ab54ba
drh [Tue, 17 Feb 2026 00:37:12 +0000 (00:37 +0000)]
Faster conversion of integers to text, by converting two digits at a time.
FossilOrigin-Name:
90300e02f0de45b57d53976cae72928b3e56532d90b8b8cdc988e14762777930
drh [Mon, 16 Feb 2026 23:52:51 +0000 (23:52 +0000)]
Simplifications to sqlite3AtoF(), resulting in slightly faster performance
and slightly smaller size.
FossilOrigin-Name:
6b9ab641763bc1620a01beec71589506b3b0827bff1c6cd98a5d17c6070050b3
drh [Mon, 16 Feb 2026 17:22:17 +0000 (17:22 +0000)]
Fix a bad assert() in the previous check-in.
FossilOrigin-Name:
a4540582b5b704af13b570b3dc609dbacada719302372a038cf74eee3688d5e7
drh [Mon, 16 Feb 2026 16:56:59 +0000 (16:56 +0000)]
Refactor the sqlite3AtoF() routine so that it requires a zero-terminated
UTF-8 input. When the need arises to convert UTF16 or non-terminated
strings, wrapper functions are used. Together, this makes the code slightly
smaller and faster.
FossilOrigin-Name:
67c7c72e9bdf04c920d77006538a202c923fa74b47c81dc3014c2929dac7277d
dan [Mon, 16 Feb 2026 16:56:25 +0000 (16:56 +0000)]
Fix another case where SQLite might fail to identify an ON clause on a RIGHT or FULL join that refers to FROM-clause elements to its right.
FossilOrigin-Name:
e956b36063e77b5ad0d8b8afb5dc942665f570d762929ff277e320c06ded8ce6
dan [Mon, 16 Feb 2026 11:59:14 +0000 (11:59 +0000)]
Fix a problem with identifying ON clauses attached to RIGHT or FULL JOINs (which is an error) if the join appeared in a flattened sub-query.
FossilOrigin-Name:
cf2dc6dfad275dad8fef763a57baaaf6301b0d3bf1916be90f22200cbe0115d0
drh [Mon, 16 Feb 2026 11:14:59 +0000 (11:14 +0000)]
Performance improvement in floating-point conversions.
FossilOrigin-Name:
b5ebbd004183f81902fa79a143222204b33dbe1cacb918194556b8dac67bd567
drh [Sun, 15 Feb 2026 18:41:29 +0000 (18:41 +0000)]
drh [Sat, 14 Feb 2026 22:04:53 +0000 (22:04 +0000)]
Fix to [
9d3a12d3926d55ef ] to force the static const string literal to
have two-byte alignment. Necessary to get that patch to work in Mac-ARM.
FossilOrigin-Name:
a80c847169f307a4d2e524b6732ea557bf7f312f1a319d6c6c2e81adb0907596
drh [Sat, 14 Feb 2026 21:47:08 +0000 (21:47 +0000)]
Add the "LLU" suffix to 64-bit integer constants, for portability to older
compilers.
FossilOrigin-Name:
4bf08110662c4b8db9ee90ce34271890a62a469166ea292f7f782b84236531d4
drh [Sat, 14 Feb 2026 21:31:31 +0000 (21:31 +0000)]
Fix to the generic version of the 128-bit multiple subroutine.
FossilOrigin-Name:
9c3d09ee75beb26447161c0bf5ea252520a6ec051774f1a4e9f18204281d504f
drh [Sat, 14 Feb 2026 20:48:58 +0000 (20:48 +0000)]
drh [Sat, 14 Feb 2026 19:42:55 +0000 (19:42 +0000)]
drh [Sat, 14 Feb 2026 19:36:41 +0000 (19:36 +0000)]
drh [Sat, 14 Feb 2026 17:58:46 +0000 (17:58 +0000)]
Use a precomputed table of 696 powers of 10 to improve the performance
of floating-point to decimal and decimal to floating-point conversions.
FossilOrigin-Name:
64d9b7becf2da8927024adda278e837a46837e46af3cff51bd54a183d1716750
drh [Fri, 13 Feb 2026 16:02:27 +0000 (16:02 +0000)]
Add new assert() statements to demonstrate that the complaint given in
[forum:/forumpost/
56ad8b632c |forum post
56ad8b632c ] is not a real bug.
FossilOrigin-Name:
d62999907d5f5987fe0030e1a4a7144c898e55595ac116eec966741a5099322b
drh [Fri, 13 Feb 2026 12:20:57 +0000 (12:20 +0000)]
Use only a single bit, rather than a whole byte, to store infrequently
accessed boolean values in the Parse object.
FossilOrigin-Name:
e1bcd7e1cf6d6b1add49deac65e1b64bcae52fbbad094e561846bb92959db76a
drh [Fri, 13 Feb 2026 11:40:28 +0000 (11:40 +0000)]
Add a "const" to avoid a harmless false-positive compiler warning.
FossilOrigin-Name:
d44af6cc093ab6b5a196249a84681148bbae3f624abf4bc8cc42c88f3f7320b2
drh [Thu, 12 Feb 2026 18:15:26 +0000 (18:15 +0000)]
Respect "const" strings in the sqlite3ShadowTableName() function.
Patch moved to trunk, where it was intended.
FossilOrigin-Name:
51b5afdfac401cbf74af6383d4559439cb6defe2ce23ebcf7ed9a5b526a07b51
drh [Wed, 11 Feb 2026 19:42:46 +0000 (19:42 +0000)]
Minor performance enhancement to floating-point rendering.
FossilOrigin-Name:
38d8c0d8a0b0e9990ba7bdcce979f2824ffee22a083cb788a75917628b1eb559
drh [Tue, 10 Feb 2026 19:33:11 +0000 (19:33 +0000)]
Correction to date/time computations associated with the timestamp-vfs.
FossilOrigin-Name:
b67889e4f17c3280f839ee7045256cc47d6ce3ed60d880925e3d30f9ebbcf3ff
drh [Tue, 10 Feb 2026 18:28:41 +0000 (18:28 +0000)]
Minor tweaks to the star-query optimization in the query planner.
FossilOrigin-Name:
5021e114b251467fee6a39749c88ec581ee1f7d50093b02a44dc300db0c0a1c5
drh [Mon, 9 Feb 2026 19:58:04 +0000 (19:58 +0000)]
Immediately reset all pending prepared statements on any call to
sqlite3_set_authorizer(), even if the authorizer is being disabled.
FossilOrigin-Name:
5c0468acd1a12f7fd01b9974250fb42c5811939dc2319729a1ef93c073dc0071
dan [Mon, 9 Feb 2026 14:45:17 +0000 (14:45 +0000)]
Do not allow table-function argument expressions on the RHS of an OUTER join to refer to FROM clause elements to their right.
FossilOrigin-Name:
021e48e28931afd781e76db6293e60fd2ffb8377cb1051e8b802f2743a10fa5d
stephan [Sun, 8 Feb 2026 12:13:19 +0000 (12:13 +0000)]
Fix a method name typo in test-only code which could hide the triggering error condition.
FossilOrigin-Name:
b2c1a4184c3de5a26524906ba04ce6c9c80b27f8d89c40fde7bbc8f5a9f99e34
stephan [Sun, 8 Feb 2026 05:08:30 +0000 (05:08 +0000)]
drh [Sat, 7 Feb 2026 13:41:05 +0000 (13:41 +0000)]
Improved output from calls to sqlite3ShowSrcList() made from a symbolic debugger.
FossilOrigin-Name:
241d23f8d36a0d4d0bcf058c5c1ff6144cfe7dd33460e8d94de5f0daf56aaf50
drh [Thu, 5 Feb 2026 21:14:34 +0000 (21:14 +0000)]
Do a better job of not generating unnecessary Bloom filters associated
with IN operators.
FossilOrigin-Name:
3861df5c127f82becea80c48c547de8ed0d01eebcf6a6a9d7f234dde31f50394
drh [Thu, 5 Feb 2026 13:03:04 +0000 (13:03 +0000)]
Fix harmless compiler warning when the CLI is compiled with
SQLITE_OMIT_PROGRESS_CALLBACK.
FossilOrigin-Name:
d6150c813ce43e15285a07d24135b10a7c254b3c175dee4f61c3b6a6ce91c29f
drh [Wed, 4 Feb 2026 20:51:27 +0000 (20:51 +0000)]
drh [Wed, 4 Feb 2026 18:10:49 +0000 (18:10 +0000)]
Improved output for ".scanstatus est" in the CLI.
FossilOrigin-Name:
e6902937ecdbeb449986469859b46631272fb0a9e7e1c31adea14cff072b6d67
drh [Wed, 4 Feb 2026 17:52:50 +0000 (17:52 +0000)]
drh [Wed, 4 Feb 2026 13:35:32 +0000 (13:35 +0000)]
Render scan-status values with 3 or 4 significant digits only, for
improved readability.
FossilOrigin-Name:
d9102ff0c43a496e782b0a3ec86ba7cd45f8118a07f15a4f3d58b399466d6cf2
drh [Wed, 4 Feb 2026 11:51:20 +0000 (11:51 +0000)]
Fix scanstatus output in QRF so that it shows the total number of cycles
on the "QUERY PLAN" line.
FossilOrigin-Name:
611cef0ec281ae06eac97df8048d617fd445c348c2fc1673202b9cc081a365db
drh [Tue, 3 Feb 2026 17:21:59 +0000 (17:21 +0000)]
Improve the query planner by reducing the estimated number of output rows
for each stage of a join if there are LIKE, GLOB, REGEXP, or MATCH
constraints on the table where the pattern string is a constant. The
reduction in the output row estimate is proportional to the length of
the pattern string.
FossilOrigin-Name:
6852843e6aa23051de0884593ce64b96a16f16c4d63b222bd324297581f7cf75
drh [Tue, 3 Feb 2026 17:07:28 +0000 (17:07 +0000)]
Minor change to test/dotcmd01.test so that it works with STAT4.
FossilOrigin-Name:
8aaf5b6b6c3d71789eebd2b8f440dd2fdaad2ef2adc9c7b2b019f08853d0b195
drh [Tue, 3 Feb 2026 16:29:14 +0000 (16:29 +0000)]
Improved comments on this enhancement. No code changes.
FossilOrigin-Name:
510a6738e5d186a74a45fa7385f4722f4e090d85562f259b02c49393ca56860b
drh [Tue, 3 Feb 2026 14:00:28 +0000 (14:00 +0000)]
Refactor the implementation of this enhancement to keep all the code inside
the query planner, not leaking out into SQL function implementations.
Expand the enhancement to cover MATCH and REGEXP operators and overloads
of LIKE and GLOB.
FossilOrigin-Name:
96f8ce225ee863c6dfe0df2d10da27a35407128d7c4691ddb927401465047a6e
drh [Mon, 2 Feb 2026 20:54:28 +0000 (20:54 +0000)]
When reducing the truth probability of a LIKE/GLOB constraint, only consider
non-wildcard characters in the pattern.
FossilOrigin-Name:
2ba8fc290dbc80d159a217d745d8bd62371c305443d5aed10bfcf34cc98d3985
drh [Mon, 2 Feb 2026 16:03:24 +0000 (16:03 +0000)]
Do not reduce the estimated truth probability of LIKE and GLOB operators
by quite so much. Fix a single test case whose output changed.
FossilOrigin-Name:
fdebbedbd9a99165359761106cdc76d327f74043b22806b7bd96402fbed36f14
drh [Mon, 2 Feb 2026 14:24:47 +0000 (14:24 +0000)]
Merge the latest trunk enhancements into the prune-by-like-glob branch.
FossilOrigin-Name:
d9d3d3a807710957f35b023ddc89cb80eea529f654ce3aa0f9aafe6c15b3ce88
dan [Mon, 2 Feb 2026 11:42:19 +0000 (11:42 +0000)]
Update session module test code to correctly use Tcl_Size instead of int.
FossilOrigin-Name:
619060c2267a889089bf5328ba83640806688164a096df8582a5cf91b173741d
drh [Sun, 1 Feb 2026 21:10:04 +0000 (21:10 +0000)]
Add the "--timeout SECONDS" option to the ".progress" command in the CLI.
FossilOrigin-Name:
8eb5c88aeb37279f68f5bb0b268339a8f6fb0b927b1e398ac4c83bf42c281273
drh [Sun, 1 Feb 2026 15:58:37 +0000 (15:58 +0000)]
Enhance the ".timer" command in the CLI to accept the "once" argument, and
so that it leaves its last real-time result in the $TIMER variable. Also
fix a harmless warning from an earlier check-in.
FossilOrigin-Name:
8ad7dffc261cbb3f7c9b4d38b04282c805c1c047fb431076f85e577c81f21574