]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
12 days agoIn the reserve=N query parameter on the VACUUM INTO target file, the reset-reserve
drh [Thu, 8 Jan 2026 20:20:03 +0000 (20:20 +0000)] 
In the reserve=N query parameter on the VACUUM INTO target file, the
parameter is a silent no-op if N is out of range.

FossilOrigin-Name: 48e59a27330932cf29bcbd01080757b82ea4a03f5a9e1fa7da076dbfcb7f60e3

12 days agoMerge all the latest trunk changes into the reset-reserve branch.
drh [Thu, 8 Jan 2026 18:14:29 +0000 (18:14 +0000)] 
Merge all the latest trunk changes into the reset-reserve branch.

FossilOrigin-Name: 6e5f1fbaec775db5c5e90b29cfa0820c9f4d560b36c063b504ef55a6c3a65bdc

12 days agoFix an off-by-one error in the page number of ELOG_CKPT_PAGE log
drh [Thu, 8 Jan 2026 17:52:42 +0000 (17:52 +0000)] 
Fix an off-by-one error in the page number of ELOG_CKPT_PAGE log
messages in tmstmpvfs.c

FossilOrigin-Name: 6fafd010de2d9820f77ee6d2a5f0a7ab1260872d09e95b6932c959ef017aaa77

12 days agoAdd a missing #if check for SQLITE_OMIT_LOAD_EXTENSION to shell.c.in, trigged by...
stephan [Thu, 8 Jan 2026 15:26:19 +0000 (15:26 +0000)] 
Add a missing #if check for SQLITE_OMIT_LOAD_EXTENSION to shell.c.in, trigged by the fiddle build.

FossilOrigin-Name: 1091f3371f4af75344c2e6da26656c259fa96c8a8da9acde3db79df8aa95fd0a

12 days agoMinor bug fixes in tmstmpvfs.c, showdb.c, and showtmlog.c.
drh [Thu, 8 Jan 2026 15:25:04 +0000 (15:25 +0000)] 
Minor bug fixes in tmstmpvfs.c, showdb.c, and showtmlog.c.

FossilOrigin-Name: 1fee8265f7eab649ee8b28456c37d95198f5cde54e905154e3eccc0b328ece9a

12 days agoRemove an obsolete '32-bit' label from tester1-worker.
stephan [Thu, 8 Jan 2026 15:06:28 +0000 (15:06 +0000)] 
Remove an obsolete '32-bit' label from tester1-worker.

FossilOrigin-Name: e14d9a980351a8d5e935e6991ea02a1c40c9ea8f0ad0fadcabe07d575a9b289c

12 days agoFix the --size X flag for speedtest1.html when X=0 and force the job size to 5 for...
stephan [Thu, 8 Jan 2026 15:03:00 +0000 (15:03 +0000)] 
Fix the --size X flag for speedtest1.html when X=0 and force the job size to 5 for kvvfs so that it doesn't block the main thread for too awful long.

FossilOrigin-Name: e2634e500cce44650ad5dd95b722b993b1f999b9f8b2396ab15154e67cb065c7

12 days agoEnhance the --vfs command-line option to the CLI such that if the argument
drh [Thu, 8 Jan 2026 13:43:15 +0000 (13:43 +0000)] 
Enhance the --vfs command-line option to the CLI such that if the argument
is not a valid VFS name, but is the name of a file, attempt to load that
file as an extension, which presumably adds the desired VFS.

FossilOrigin-Name: 509954b44eb305a4401ddcbcce24d8f9ed5534717290888899d716b9df40c981

12 days agoIn the showdb utility, the -tmstmp option works without -csv for the pgidx
drh [Thu, 8 Jan 2026 13:20:36 +0000 (13:20 +0000)] 
In the showdb utility, the -tmstmp option works without -csv for the pgidx
command.

FossilOrigin-Name: c0aecd2189b431d82eca1c1d6718920cf928d910d443ea506e7b3bf3c5d7e246

12 days agoFix ESCALE typo in shell.c, reported in [forum:b8f6a41c8b|forum post b8f6a41c8b].
stephan [Thu, 8 Jan 2026 12:43:21 +0000 (12:43 +0000)] 
Fix ESCALE typo in shell.c, reported in [forum:b8f6a41c8b|forum post b8f6a41c8b].

FossilOrigin-Name: 6fa09449738af03d096208e26447b795f2825d6aaa397de09590cf18b065f82d

12 days agoDo not show LIKE wildcards on table names in the output of the ".schema"
drh [Thu, 8 Jan 2026 12:39:49 +0000 (12:39 +0000)] 
Do not show LIKE wildcards on table names in the output of the ".schema"
command in the CLI.
[forum:/info/6ebb57b41691293d|Forum post 6ebb57b41691293d].

FossilOrigin-Name: 4c6f646bd2910e6dc80dfec7546a3ed7b47bb9d00402e7c3871ece2c185f4ec0

12 days agoAdd the showtmlog utility for decoding the tmstmpvfs log files.
drh [Thu, 8 Jan 2026 12:22:50 +0000 (12:22 +0000)] 
Add the showtmlog utility for decoding the tmstmpvfs log files.
Fix tmstmpvfs so that it records timestamps in milliseconds since the
Unix epoch, not in JDN milliseconds.

FossilOrigin-Name: 762d3cbf06218f1010425a98a71ebf7623b84b45a90e6419b7dec7f10ad0c5a5

13 days agoImprove showdb so that it does a better job of handling reserve-bytes.
drh [Thu, 8 Jan 2026 01:37:13 +0000 (01:37 +0000)] 
Improve showdb so that it does a better job of handling reserve-bytes.
Add the --tmstmp option that causes pgidx to interpret tmstmpvfs tags
if they are available.

FossilOrigin-Name: d7e6e9a5781f467a5b5f02f46134099cf01607a0cf55510155533d57d4a4618a

13 days agoAdd the tmstmpvfs.c extension to trunk. It is not a part of any deliverable
drh [Thu, 8 Jan 2026 00:41:12 +0000 (00:41 +0000)] 
Add the tmstmpvfs.c extension to trunk.  It is not a part of any deliverable
and can easily be removed later, if found to not be desirable.

FossilOrigin-Name: 869f306592a86d2a78f00266c615f033cd2318a7bff0a97b3dcdd3348d99fc66

13 days agoAdd the --csv option to the "pgidx" option to the "showdb" utility.
drh [Wed, 7 Jan 2026 23:46:44 +0000 (23:46 +0000)] 
Add the --csv option to the "pgidx" option to the "showdb" utility.

FossilOrigin-Name: b6ad93f62eb883ee8f4c43dd90c69b31398be6b13186866a7b05d85fe588d967

13 days agoEnhance the VACUUM INTO command such that if the target file is a URI
drh [Wed, 7 Jan 2026 21:19:42 +0000 (21:19 +0000)] 
Enhance the VACUUM INTO command such that if the target file is a URI
with a reserve=N query parameter, then the reserve_bytes value is set to
N provided that N is within the allowed range.  This can even reduce the
size of the reserve, all the way to zero.  This provides a way to remove
reserve from a database without having to do a complete dump/restore.

FossilOrigin-Name: 9cec3b67d95c145c968c560e8b3d2c33896b4b5b6c86c61350263764bb616c43

13 days agoFix the static build. timestamp-vfs
drh [Wed, 7 Jan 2026 19:06:11 +0000 (19:06 +0000)] 
Fix the static build.

FossilOrigin-Name: 4e1a1b6aeffaa5b8c11e165803c6d33becabd1f646f39e4309dfba6892fd4bd6

13 days agoImprovements to logging. Better log-file names. Log files are in a
drh [Wed, 7 Jan 2026 18:45:23 +0000 (18:45 +0000)] 
Improvements to logging.  Better log-file names.  Log files are in a
subdirectory named after the database.  Only connections that write to
the database create logs.  Better documentation in the header comment.

FossilOrigin-Name: 5b1cf0fe73ba1a40fe4cd8f5f6e8ee5b471f96b60aff52c03c045ad6514c363a

13 days agoEnhance QRF so that it terminates more quickly if it encounters an OOM
drh [Wed, 7 Jan 2026 16:19:18 +0000 (16:19 +0000)] 
Enhance QRF so that it terminates more quickly if it encounters an OOM
or oversize string error, and fix it so that it reports such errors.

FossilOrigin-Name: ebedeb6169cc3bc3708130d4061065af600a8851e896fc3eeaf33c8c83fe3b95

2 weeks agoAdd the -p or --port option to sqlite3_rsync.
drh [Tue, 6 Jan 2026 21:39:12 +0000 (21:39 +0000)] 
Add the -p or --port option to sqlite3_rsync.

FossilOrigin-Name: 53f806fdab7161e439a165af47bd45332c15233b87bc35c2272621256a2dc337

2 weeks agoDocumentation tweaks.
drh [Tue, 6 Jan 2026 21:18:42 +0000 (21:18 +0000)] 
Documentation tweaks.

FossilOrigin-Name: b10b0aa7658a04b9354ca09a2dcb807eecd9421451537f3230ba5f47269ec5c1

2 weeks agoEnhance the timestamp-vfs prototype so that it also keeps an event log.
drh [Tue, 6 Jan 2026 20:51:06 +0000 (20:51 +0000)] 
Enhance the timestamp-vfs prototype so that it also keeps an event log.

FossilOrigin-Name: f087c6c0cdd542ec24b4668fff9cb434f46caf554f8856a49fd062ab3f72014e

2 weeks agoUpdate to the sqlite3_get_clientdata() documentation. No code changes.
drh [Tue, 6 Jan 2026 13:00:24 +0000 (13:00 +0000)] 
Update to the sqlite3_get_clientdata() documentation.  No code changes.

FossilOrigin-Name: 395b7168b873390c05ea2cc71fe14bafb5bdee77f32a047bec8d7ed6feb9ed90

2 weeks agoUpdate the regexp extension so that the "-" character may be escaped with a backslash...
dan [Mon, 5 Jan 2026 18:29:07 +0000 (18:29 +0000)] 
Update the regexp extension so that the "-" character may be escaped with a backslash. Forum post [forum:c5e7358f82 | c5e7358f82].

FossilOrigin-Name: 80013129361fb81ce5db1f6390cad640c2cb547e5ba16724dfb55d0aceecdf6d

2 weeks agoAdd the experimental tmstmpvfs.c extension that adds a timestamp and other
drh [Mon, 5 Jan 2026 17:28:33 +0000 (17:28 +0000)] 
Add the experimental tmstmpvfs.c extension that adds a timestamp and other
debugging information on each page of a database as that page is written,
if the database is configured for exactly 16 bytes of reserve space.

FossilOrigin-Name: 703e593dfc92676a2d44c67ca8282a78a1943b9c1e3f2447c0a9917d70a383c4

2 weeks agoFix an uninitialized var use reported in [forum:88561a4a1e|forum post 88561a4a1e].
stephan [Sun, 4 Jan 2026 11:05:05 +0000 (11:05 +0000)] 
Fix an uninitialized var use reported in [forum:88561a4a1e|forum post 88561a4a1e].

FossilOrigin-Name: 707c0f6442e946f23de061ee2753eb5994ab55d411c49b232799f309ba0f10cf

2 weeks agoFix yet another bug in the [/info/e33da6d5dc964db8|EXISTS-to-JOIN]
drh [Sat, 3 Jan 2026 15:11:07 +0000 (15:11 +0000)] 
Fix yet another bug in the [/info/e33da6d5dc964db8|EXISTS-to-JOIN]
optimization, reported by
[forum:/forumpost/2026-01-03T14:05:48z|forum post 2026-01-03T14:05:48z].

FossilOrigin-Name: f60e863e0ca2d8ab853fa5f48d3cd7b062b13167fcddffc4563bde9285b92320

2 weeks agoMinor change to an #if in the Windows VFS, which I am told will allow
drh [Fri, 2 Jan 2026 19:42:55 +0000 (19:42 +0000)] 
Minor change to an #if in the Windows VFS, which I am told will allow
SQLite to be compiled for 64-bit Windows7.

FossilOrigin-Name: 2afc54b91fe94a37bd3754b5beae6b1f378488b33f7d23eeeebe96d78d120fe3

2 weeks agoEnsure that loops created by the exists-to-join optimization use unique cursor number...
dan [Fri, 2 Jan 2026 17:10:40 +0000 (17:10 +0000)] 
Ensure that loops created by the exists-to-join optimization use unique cursor numbers, even if the EXISTS expression in the WHERE clause is a copy of an expression from the result-set of the SELECT. dbsqlfuzz 4f6a5213cf74fcf2a8a3e48abc2333100348c38e.

FossilOrigin-Name: 19e57a18cbfad44bb1cb1e62d4485635d26059cb2319f4b7f1244df2638bea43

2 weeks agoChange the shelltest target on the windows makefile to use testrunner.tcl
drh [Fri, 2 Jan 2026 00:23:22 +0000 (00:23 +0000)] 
Change the shelltest target on the windows makefile to use testrunner.tcl

FossilOrigin-Name: db4d07623500325153c3254c2ad9eaf5e0f1d056637c6799643fcc9bb3a5e84e

2 weeks agoFurther improvements to testrunner.tcl documentation.
drh [Thu, 1 Jan 2026 21:35:25 +0000 (21:35 +0000)] 
Further improvements to testrunner.tcl documentation.

FossilOrigin-Name: c71402031ce81b4415a793afa3152f5691b197dce634c1322948f39086b8c819

2 weeks agoUpdates to the testrunner documentation.
drh [Thu, 1 Jan 2026 15:41:50 +0000 (15:41 +0000)] 
Updates to the testrunner documentation.

FossilOrigin-Name: bcac99f962c6403fddfcaeef309ea9f825fa661fee0b3e3fd24f04c861be1d1b

2 weeks agoVerify the effect of "--titles on" in the "insert" mode in the CLI.
drh [Wed, 31 Dec 2025 20:43:31 +0000 (20:43 +0000)] 
Verify the effect of "--titles on" in the "insert" mode in the CLI.

FossilOrigin-Name: a5f922b0832d9544b083f3d55d4029aa80e320bf5505547c5a1ddb21f4685e3e

2 weeks agoThe header setting from the legacy ".headers" dot-command takes precedence
drh [Wed, 31 Dec 2025 20:35:16 +0000 (20:35 +0000)] 
The header setting from the legacy ".headers" dot-command takes precedence
over the current ".mode" setting, for backwards compatibility.
[forum:/forumpost/2025-12-31T19:14:24z|Forum post 2025-12-31T19:14:24z].

FossilOrigin-Name: d2c5df41285a9c8a66e9bdea4e28d86fe10665ad01cfbab5a7ce43b8e39b4e34

2 weeks agoIn the (completely unused, as far as I know) btreeinfo.c extension (not
drh [Wed, 31 Dec 2025 19:45:45 +0000 (19:45 +0000)] 
In the (completely unused, as far as I know) btreeinfo.c extension (not
a part of any standard build) do a better job of detecting corrupt database
files and provide better error messages when corruption is detected.
[forum:/forumpost/e66a458339|Forum post e66a458339].

FossilOrigin-Name: 326d29ac7ecd933d6fca80d3d538783ed46939e7bc6e3aa60ded4b619aa73730

2 weeks agoUse 64-bit integers to track memory allocation sizes in the CSV extension.
drh [Wed, 31 Dec 2025 18:30:45 +0000 (18:30 +0000)] 
Use 64-bit integers to track memory allocation sizes in the CSV extension.
[forum:/forumpost/e66a458339|Forum post e66a458339].

FossilOrigin-Name: f293a2b3ffcfe20fcda954bd31e88bbfcba18d007e9b5f29a473983f6030f2ce

2 weeks agoAdd the new "retest" command to testrunner.tcl, which reruns any tests that
drh [Wed, 31 Dec 2025 17:21:30 +0000 (17:21 +0000)] 
Add the new "retest" command to testrunner.tcl, which reruns any tests that
failed or never completed in the previous invocation.  New makefile target
"retest" for both unix and Windows that runs testrunner.tcl with "retest".

FossilOrigin-Name: 9b668d56bf0eca3eb826df3edd6705cc809d920494c192a9949cafda791d83f9

2 weeks agoEnhance testrunner.tcl so that it can always be run from an ordinary tclsh
drh [Wed, 31 Dec 2025 14:17:51 +0000 (14:17 +0000)] 
Enhance testrunner.tcl so that it can always be run from an ordinary tclsh
as long as that tclsh can load the sqlite3 package.

FossilOrigin-Name: 1a08b85a862e8c9ac56c11e05f76abc25ad98b510fb13ad0716206ba797e53a8

2 weeks agoFix test/shellB.test so that it works under Device-One. Also bring the
drh [Wed, 31 Dec 2025 11:46:26 +0000 (11:46 +0000)] 
Fix test/shellB.test so that it works under Device-One.  Also bring the
header comment of shellB up to date.

FossilOrigin-Name: 836d02468c7749fa9cdb656c9f80cfef9a41e2eb1321d4bb56c0e0cbc5f37df4

3 weeks agoUse sqlite3_malloc64() in all places in the compress.c extension to avoid
drh [Wed, 31 Dec 2025 01:19:51 +0000 (01:19 +0000)] 
Use sqlite3_malloc64() in all places in the compress.c extension to avoid
integer overflow.
[forum:/forumpost/2025-12-31T01:04:00z|Forum post 2025-12-31T01:04:00z].

FossilOrigin-Name: 7ceaf1f0c3d9b96d2224ce6526fb3092b9e1673573e3d7dd898b2a135e23027d

3 weeks agoFix a typo in [0819fe670f9ceec7] that lead to incomplete protection against
drh [Wed, 31 Dec 2025 01:01:14 +0000 (01:01 +0000)] 
Fix a typo in [0819fe670f9ceec7] that lead to incomplete protection against
buffer overflow in the zipfile extension.
[forum:/forumpost/2025-12-30T23:57:19z|Forum post 2025-12-30T23:57:19z]

FossilOrigin-Name: a6abbadacbb88c1ddcc236b40fb34eddf3bb0891189bd00a5af8d34b42871967

3 weeks agoFix the output from the (undocumented) --test-argv option of the CLi so
drh [Tue, 30 Dec 2025 13:10:10 +0000 (13:10 +0000)] 
Fix the output from the (undocumented) --test-argv option of the CLi so
that it correctly displays UTF8 text on Windows.

FossilOrigin-Name: 39e15ce3d6c42b13d0c1164a161e7b5d5d8382050c2729961733ddef695c9116

3 weeks agoAdd missing free() to winmain.c
drh [Tue, 30 Dec 2025 13:01:05 +0000 (13:01 +0000)] 
Add missing free() to winmain.c

FossilOrigin-Name: 44dff1a1bb986cd08b729d4b73f09c995cbc67f884caa297674b31fb36805c8b

3 weeks agoImproved handling of the process entry point in Windows, to translate
drh [Tue, 30 Dec 2025 12:38:43 +0000 (12:38 +0000)] 
Improved handling of the process entry point in Windows, to translate
arguments into UTF8.

FossilOrigin-Name: 1d4ee6c35e69d43e2b801c425308de0ef5d5d9d2d0af9b406b664bf0f9cfa337

3 weeks agoAvoid signed integer overflow when an fts5 'merge' command is passed -2147483648...
dan [Tue, 30 Dec 2025 11:36:23 +0000 (11:36 +0000)] 
Avoid signed integer overflow when an fts5 'merge' command is passed -2147483648 as a parameter.

FossilOrigin-Name: 52738908b04848b93d54431def37ffaa9723043270ff8ba1e2fa59ab0040afc5

3 weeks agoFix the change on this branch so that it works with amalgamation builds. fts5-int-overflow-fix
dan [Tue, 30 Dec 2025 11:33:30 +0000 (11:33 +0000)] 
Fix the change on this branch so that it works with amalgamation builds.

FossilOrigin-Name: 7f0b9e7a8bba1b73ef16257e72a055ea84fb10eb5cf0e6431fca81b2f040c5ee

3 weeks agoAvoid signed integer overflow when an fts5 'merge' command is passed -2147483648...
dan [Tue, 30 Dec 2025 11:19:27 +0000 (11:19 +0000)] 
Avoid signed integer overflow when an fts5 'merge' command is passed -2147483648 as a parameter.

FossilOrigin-Name: 4c5d18d7f5bdcf95efdf96062c7434d5d10584a1fdfd65b18d331b8aae42e26a

3 weeks agoFix the new .import logic in the CLI so that it honors ".bail on".
drh [Mon, 29 Dec 2025 23:56:05 +0000 (23:56 +0000)] 
Fix the new .import logic in the CLI so that it honors ".bail on".
[forum:/forumpost/6c1c0e213d|Forum post 6c1c0e213d].

FossilOrigin-Name: d58846e74b6971a5fd80e5f030985273b7dfa0087c2f3c9d0c088c248e183f8a

3 weeks agoFix error messages associated with .import, along with corresponding
drh [Mon, 29 Dec 2025 21:39:48 +0000 (21:39 +0000)] 
Fix error messages associated with .import, along with corresponding
test cases.

FossilOrigin-Name: 2084e805d0d9da8f419b8506fccd652a7d20262bd95729250a2d2eabfdd079ad

3 weeks agoIncremental improvements to .import, and new test cases.
drh [Mon, 29 Dec 2025 19:04:41 +0000 (19:04 +0000)] 
Incremental improvements to .import, and new test cases.

FossilOrigin-Name: 5a1e931b19c346bdc8d1a51fa6ef8ee04b7371cdf5df2ee32e1333226c42d327

3 weeks agoUpdate to the unix build documentation.
drh [Mon, 29 Dec 2025 12:46:35 +0000 (12:46 +0000)] 
Update to the unix build documentation.

FossilOrigin-Name: 004cf4ad3cb0c05e501a464bee55e8ed168c4825cf419902890593468ca4d588

3 weeks agoFix the "testfixture" makefile target so that it builds with a static TCL
drh [Mon, 29 Dec 2025 12:34:37 +0000 (12:34 +0000)] 
Fix the "testfixture" makefile target so that it builds with a static TCL
library on Mac-ARM.  Fix the "tool-zip" target so that it uses ordinary
tclsh rather than testfixture to run the tool/mmktoolzip.tcl script that
builds the archive.

FossilOrigin-Name: adf5d624cf109ebd05952e5df62f143f40829070cbcbe43280d371a60db7470b

3 weeks agoTest cases for .import, as well as minor enhancements to .import and to .check.
drh [Sun, 28 Dec 2025 21:37:58 +0000 (21:37 +0000)] 
Test cases for .import, as well as minor enhancements to .import and to .check.

FossilOrigin-Name: 0252ac1c946cd2101f0084f11951b1aeea330dea23b707934c8852d9abe136b9

3 weeks agoIf the filename argument to the .import command is of the form
drh [Sun, 28 Dec 2025 14:32:28 +0000 (14:32 +0000)] 
If the filename argument to the .import command is of the form
"<<endmark" then the content is read from the script (or stdin) until
the first line that begins with "endmark".

FossilOrigin-Name: 6e8ab51fbe0ee918bce6ab960c9fb078764aa9721ef41d39818127eb98045d46

3 weeks agoImprovements to the .import command of the CLI.
drh [Sun, 28 Dec 2025 14:01:52 +0000 (14:01 +0000)] 
Improvements to the .import command of the CLI.

FossilOrigin-Name: 436ed7937bcd3b5781539d883ff2957b81d74abccb75f65a2ffb7446a5944522

3 weeks agoChange a single integer variable to 64-bit in the tokenizer to avoid
drh [Sat, 27 Dec 2025 19:57:59 +0000 (19:57 +0000)] 
Change a single integer variable to 64-bit in the tokenizer to avoid
any possibility of an integer overflow.

FossilOrigin-Name: 69cf692a24d714305b2e4c8c4c40f70dc6510c26b8db7e5249f32a53e44c7e5c

3 weeks agoWork around the Windows "Worst-Fit" bug in the "sqldiff.exe" program.
drh [Fri, 26 Dec 2025 20:13:32 +0000 (20:13 +0000)] 
Work around the Windows "Worst-Fit" bug in the "sqldiff.exe" program.

FossilOrigin-Name: f41851587328f8b434e66987765324b7bf5746ecdf3a9f2869000276e0f79401

3 weeks agoTo ensure that the sqlite3_hard_heap_limit() call it makes is effective, add "sqlite3...
dan [Fri, 26 Dec 2025 17:23:25 +0000 (17:23 +0000)] 
To ensure that the sqlite3_hard_heap_limit() call it makes is effective, add "sqlite3_config(SQLITE_CONFIG_MEMSTATUS, 1);" to fuzzcheck.c.

FossilOrigin-Name: f7736af849d910f04d8622ed7c6e705d84cf22f0a73dca0f30eead9bd1f28bc7

3 weeks agoDoc typo fixes in the configure script pieces.
stephan [Wed, 24 Dec 2025 18:12:08 +0000 (18:12 +0000)] 
Doc typo fixes in the configure script pieces.

FossilOrigin-Name: 8ab37d9fb909dc6bfbede004f342e6c1625c99df9b316807dc77a9a636ee6873

3 weeks agoEnhance the omit-noop-join optimization so that it is able to omit a
drh [Wed, 24 Dec 2025 14:03:15 +0000 (14:03 +0000)] 
Enhance the omit-noop-join optimization so that it is able to omit a
chain of noop-joins.  Optimization improvement suggested by
[forum:/forumpost/11a53f2bad|forum post 11a53f2bad].

FossilOrigin-Name: 5a85b83b9f21ad88938e273bb35b398e91133424683e915836f322b69f277673

4 weeks agoAdditional changes to support the ".schema" command on builds that omit
drh [Tue, 23 Dec 2025 17:24:10 +0000 (17:24 +0000)] 
Additional changes to support the ".schema" command on builds that omit
virtual tables.

FossilOrigin-Name: 6b5c0374fa81cf069263bebf9b740573de4f82fde3c4e5796af80dcbe6a1a2e7

4 weeks agoFix the ".schema" command in the CLI so that it works on builds that
drh [Tue, 23 Dec 2025 16:51:49 +0000 (16:51 +0000)] 
Fix the ".schema" command in the CLI so that it works on builds that
omit virtual table support.

FossilOrigin-Name: b4e3c8170a107b2018fe5374495dbec14c851ccbf7419cd382991b2fe68c45e4

4 weeks agoHarmless typo fixes in shell.c
drh [Tue, 23 Dec 2025 11:13:52 +0000 (11:13 +0000)] 
Harmless typo fixes in shell.c

FossilOrigin-Name: 519877cdbde80071ac08f2e467ef8b9679816dc486cf6eb87ec2d9a38c819f88

4 weeks agoAPI documentation enhancements.
drh [Mon, 22 Dec 2025 17:06:37 +0000 (17:06 +0000)] 
API documentation enhancements.

FossilOrigin-Name: 99ac94cb9a7a76312cda2d236dcc0c92b2ca269456daed06a1c2674c4f326867

4 weeks agoAdd the SQLITE_PREPARE_FROM_DDL flag to sqlite3_prepare_v3(). Use this to prevent...
dan [Mon, 22 Dec 2025 15:22:02 +0000 (15:22 +0000)] 
Add the SQLITE_PREPARE_FROM_DDL flag to sqlite3_prepare_v3(). Use this to prevent fts3/4 tables in non-trusted schemas from calling unsafe SQL functions.

FossilOrigin-Name: 26f39ac806a5582fab1497e38a4ce68dad2b79df8c8aade43c4e21eed7576931

4 weeks agoFix spurious error log reports caused by [d25c8a6222d4e3f2]. See
drh [Mon, 22 Dec 2025 12:33:27 +0000 (12:33 +0000)] 
Fix spurious error log reports caused by [d25c8a6222d4e3f2].  See
[forum:/forumpost/d2326687662430c1|forum post d2326687662].

FossilOrigin-Name: 403dafc7790a2e8d1772537800760addc47d3e3555bda343c3991d56c1b36e70

4 weeks agoFix a harmless signed integer overflow warning in the ieee754() extension
drh [Mon, 22 Dec 2025 12:00:57 +0000 (12:00 +0000)] 
Fix a harmless signed integer overflow warning in the ieee754() extension
function.

FossilOrigin-Name: f43d3339c1f06aabcb8e678ed4b91a490cfd0bc880c642ce9c1138c7e08cb360

4 weeks agoRemove unused thunk cases from os_win.c, so that it will (hopefully) compile
drh [Mon, 22 Dec 2025 11:28:16 +0000 (11:28 +0000)] 
Remove unused thunk cases from os_win.c, so that it will (hopefully) compile
again on WinXP.

FossilOrigin-Name: eb2c020481dd591f459cf7191d18c2499aeec210fc3fc27bb35e5abc0d9cb6d8

4 weeks agoAdd experimental compile-time option SQLITE_ALLOW_TRIGGERS_ON_SYSTEM_TABLES.
drh [Fri, 19 Dec 2025 13:17:40 +0000 (13:17 +0000)] 
Add experimental compile-time option SQLITE_ALLOW_TRIGGERS_ON_SYSTEM_TABLES.

FossilOrigin-Name: f916bcc8657a4db2d069018751815f2ad91851499add761b1eb119f265b72a09

4 weeks agoBug fix in the vt02.c test virtual table.
drh [Thu, 18 Dec 2025 20:44:48 +0000 (20:44 +0000)] 
Bug fix in the vt02.c test virtual table.

FossilOrigin-Name: a7a73d30c552195c95c282688eb3d067746c722b702c7f2ba151996ec92136f5

4 weeks agoAllow queries that use "GROUP BY e1 ORDER BY e2" where e1 and e2 are identical aprt...
dan [Thu, 18 Dec 2025 18:47:49 +0000 (18:47 +0000)] 
Allow queries that use "GROUP BY e1 ORDER BY e2" where e1 and e2 are identical aprt from ASC/DESC sort-orders to be optimized using a single index. Also allow virtual tables to optimize DISTINCT in cases where the result-set of a query does not exactly match the ORDER BY clause.

FossilOrigin-Name: fba29a8b560d839e42c2a46421ab870da6e6ed6e15a17aa51f223e32ec3aa8ae

4 weeks agoNew options for vt02.c that allow tests to configure it to partially
drh [Thu, 18 Dec 2025 16:14:38 +0000 (16:14 +0000)] 
New options for vt02.c that allow tests to configure it to partially
de-duplicate a DISTINCT query.

FossilOrigin-Name: 1c65bb6e5d92cf39c409b7f870253571ec96b48abf87e5ed931cabd86f582069

4 weeks agoImprove tests in bestindexF.test. No changes to non-test code.
dan [Thu, 18 Dec 2025 16:05:05 +0000 (16:05 +0000)] 
Improve tests in bestindexF.test. No changes to non-test code.

FossilOrigin-Name: 347d4d34c1815827e7049e57830c1fff67f6eb16ae5cc00839e35d94bac81e92

4 weeks agoBetter orderByConsumed logic in the vt02.c test virtual table.
drh [Thu, 18 Dec 2025 15:35:50 +0000 (15:35 +0000)] 
Better orderByConsumed logic in the vt02.c test virtual table.

FossilOrigin-Name: 612c1ece6752e3318fc688717ad6a82219b85df7d32e4e07dbc2f361a5aeeee4

4 weeks agoEnhance the sqlite3_load_extension() so that when the entry point is
drh [Thu, 18 Dec 2025 14:01:43 +0000 (14:01 +0000)] 
Enhance the sqlite3_load_extension() so that when the entry point is
not specified, after trying sqlite3_extension_init() and
sqlite3_X_init() where X is the alphabetic part of the base filename,
if neither or found it tries again with X as the alpha*numeric* part
of the base filename.  Hence, a shared library named "vt02.so" can be
loaded with just ".load vt02" and without having to specify the entry
point separately.

FossilOrigin-Name: acc95f24cc034408de1e9225aef4dae8bf76beec812c152bea32db95f7d2b854

4 weeks agoEnhance the vt02.c test virtual table with the ability to process
drh [Thu, 18 Dec 2025 12:49:44 +0000 (12:49 +0000)] 
Enhance the vt02.c test virtual table with the ability to process
ORDER BY DESC.

FossilOrigin-Name: 35461a8d5a103e373e5b38b3974a3bb1074e914e862825108713b36bef04b6bd

4 weeks agoFix the return value of sqlite3_vtab_distinct() in cases where a virtual table query...
dan [Wed, 17 Dec 2025 21:00:06 +0000 (21:00 +0000)] 
Fix the return value of sqlite3_vtab_distinct() in cases where a virtual table query has similar GROUP BY and ORDER BY expression lists.

FossilOrigin-Name: d017ae8640f24543ad5bf37a3e514c1e919730b8c686255c61890448ba22b3e1

4 weeks agoFix a FILE* leak in the CLI
drh [Wed, 17 Dec 2025 13:10:23 +0000 (13:10 +0000)] 
Fix a FILE* leak in the CLI

FossilOrigin-Name: 7986a35d27fe0cfd7d9a3bfec0ee0d1c5556b24d571bb68c35dd5eb7251e423c

5 weeks agoCLI: The .imposter command matches the index name regardless of case.
drh [Tue, 16 Dec 2025 13:43:35 +0000 (13:43 +0000)] 
CLI:  The .imposter command matches the index name regardless of case.
Minor fixes to .check.

FossilOrigin-Name: 989ebba9ad263abafeddaf4a0e3e1275e83a3a12d7f95c7a451ecf8cbd64a583

5 weeks agoCLI improvements. In the .check command, ignore leading and trailing
drh [Tue, 16 Dec 2025 13:25:45 +0000 (13:25 +0000)] 
CLI improvements.  In the .check command, ignore leading and trailing
whitespace unless the --exact option is used.  In the .limit command, do
not print the new limit when changing the limit, but only when requesting
the current value of the limit.

FossilOrigin-Name: d72cb66d672d514822b2fbb0be8880377628599f1f8e2a219d36791c125c6242

5 weeks agoStricter enforcement of the LIKE_PATTERN_LENGTH for the regexp extension.
drh [Tue, 16 Dec 2025 13:13:21 +0000 (13:13 +0000)] 
Stricter enforcement of the LIKE_PATTERN_LENGTH for the regexp extension.

FossilOrigin-Name: c94b1e9c5674f7d0ad75d91085262f38cba6036979e8a0f9d39edc7db841915f

5 weeks agoFix for optimizing "SELECT DISTINCT ...cols... FROM vtab" in cases where the virtual...
dan [Mon, 15 Dec 2025 18:45:22 +0000 (18:45 +0000)] 
Fix for optimizing "SELECT DISTINCT ...cols... FROM vtab" in cases where the virtual table implementation is able to deliver results sorted by "...cols...".

FossilOrigin-Name: 80c0d922937615422e813593ac4eb83c3040a417fad97dba18a549de50a91b72

5 weeks agoEnhance the vtablog extension so that it shows the value of
drh [Mon, 15 Dec 2025 17:32:56 +0000 (17:32 +0000)] 
Enhance the vtablog extension so that it shows the value of
sqlite3_vtab_distinct() in xBestIndex, and so that provides the new
consume_order_by option that can cause xBestIndex to set the
orderByConsumed flag.

FossilOrigin-Name: b158fe929929ae209f2603b11a2c4f44ad9147f6b2ce09a10ec1f92429402631

5 weeks agoClarify the affect of nCharLimit, nLineLimit, and nTitleLimit on the
drh [Mon, 15 Dec 2025 13:58:41 +0000 (13:58 +0000)] 
Clarify the affect of nCharLimit, nLineLimit, and nTitleLimit on the
xRender output from QRF.

FossilOrigin-Name: 881534858de8bccffca53e7256a725378a98a354e792374d972b120880c2ae78

5 weeks agoFix the test/vt100-a.sql script to use .testcase and .check.
drh [Mon, 15 Dec 2025 13:26:27 +0000 (13:26 +0000)] 
Fix the test/vt100-a.sql script to use .testcase and .check.

FossilOrigin-Name: 5cf9e99ff8279530cb73a24794107591f8dab755fe78acd6c11429e532f3d1bf

5 weeks agoEnable an ORDER BY clause to refer to columns in outer queries.
drh [Mon, 15 Dec 2025 11:59:47 +0000 (11:59 +0000)] 
Enable an ORDER BY clause to refer to columns in outer queries.

FossilOrigin-Name: ef9b4b1e4690c889c48f4e725d42127c46f60c6bf2023ae79bf1e9c6c83368ec

5 weeks agoUse the correct wildcard character in sqlite3_strlike() in the previous
drh [Sat, 13 Dec 2025 23:18:04 +0000 (23:18 +0000)] 
Use the correct wildcard character in sqlite3_strlike() in the previous
check-in.

FossilOrigin-Name: 87bca1250c5e660debbb29c5fabb89082c2d2059fc8b5851e1b1a519c3be7fc1

5 weeks agoIn the CLI, if a command-line argument names a file and the filename ends
drh [Sat, 13 Dec 2025 21:11:49 +0000 (21:11 +0000)] 
In the CLI, if a command-line argument names a file and the filename ends
with .sql or .txt, then process that file as an SQL script.  Use this
feature for better testing.

FossilOrigin-Name: 19cc0522e2255f21f6fb6af1442c2ba122fdd4deacd9ea2c181ce9e597b88770

5 weeks agoBack out the --compat option from the CLI.
drh [Sat, 13 Dec 2025 00:13:40 +0000 (00:13 +0000)] 
Back out the --compat option from the CLI.

FossilOrigin-Name: 850d5dbfb0f1eacd1e5213759810ec7e5eba4fcc0b2718dabccd5b269b126f1c

5 weeks agoGet the .testcase and .check commands working in the CLI.
drh [Fri, 12 Dec 2025 18:22:07 +0000 (18:22 +0000)] 
Get the .testcase and .check commands working in the CLI.

FossilOrigin-Name: 1ca31e1a297c0d53d068afb658ce6602887cda0f3eaf42cd629c4d1b7204f0b0

5 weeks agoAdd new assert() statements designed to detect and prevent the kind
drh [Fri, 12 Dec 2025 12:06:42 +0000 (12:06 +0000)] 
Add new assert() statements designed to detect and prevent the kind
of system interface numbering errors that happened in [108691a3cb2f296f]
and that were not fixed until [fe49703034bd23fa].

FossilOrigin-Name: 4e6e551c89c4f18299b3d60369f439e80f2fe2b0e70199f649821b1dbf20c668

5 weeks agoOmit unused entries in the aSysCall array for the Windows driver. Fix
drh [Fri, 12 Dec 2025 11:50:37 +0000 (11:50 +0000)] 
Omit unused entries in the aSysCall array for the Windows driver.  Fix
incorrect numbering in alter entries of that array.

FossilOrigin-Name: fe49703034bd23fa8f43ffdf0e23ec9613688d957adf96b3f1ea86fb02a8d86b

5 weeks agoRemove from os_win.c a reference to unused system call CreateEventExW() left over...
dan [Fri, 12 Dec 2025 11:02:18 +0000 (11:02 +0000)] 
Remove from os_win.c a reference to unused system call CreateEventExW() left over from the now removed winrt support.

FossilOrigin-Name: c68ef69ec97da0312b95375b3af159f8a06ce1a69376d042c557dcca18d3f77e

5 weeks agoFix an inaccuracy in the qrfRelaxable() routine in QRF when the input is
drh [Fri, 12 Dec 2025 10:21:52 +0000 (10:21 +0000)] 
Fix an inaccuracy in the qrfRelaxable() routine in QRF when the input is
an empty string.

FossilOrigin-Name: eb8a519571f7d35b81cbdbe668da45b33e5505d9a038305129df7ba2c16fd3b0

5 weeks agoInclude the latest Makefile.msc changes and the new "make.bat" script
drh [Fri, 12 Dec 2025 00:21:10 +0000 (00:21 +0000)] 
Include the latest Makefile.msc changes and the new "make.bat" script
in the amalgamation tarballs.

FossilOrigin-Name: 6deab75874acfa183e51b8ae8d9305e8d09072bb6c646859ed40beb46e91fe0f

5 weeks agoPrevent a malicious delta from causing an integer overflow in the
drh [Thu, 11 Dec 2025 23:24:05 +0000 (23:24 +0000)] 
Prevent a malicious delta from causing an integer overflow in the
fossildelta extension.  This code is not used in the SQLite core.

FossilOrigin-Name: 01409738afc2c0d5bdaa248ffb508aa5f36a66390f6b8e4834734529ee8ed2fa

5 weeks agoUpdate build instructions for Windows to explain how to link against
drh [Thu, 11 Dec 2025 18:16:39 +0000 (18:16 +0000)] 
Update build instructions for Windows to explain how to link against
ZLIB.

FossilOrigin-Name: e785a80e4100c368dca8d73cb662cff4d0fd76734fa0f3fa9b5754a380f7c746

5 weeks agoAdjust the MSVC Makefile so that when it invokes the zlib makefile, it
drh [Thu, 11 Dec 2025 17:49:17 +0000 (17:49 +0000)] 
Adjust the MSVC Makefile so that when it invokes the zlib makefile, it
changes CFLAGS to use the correct -M compiler option to match SQLite.

FossilOrigin-Name: ba003c7c74fb4dd665a8ec6dea7d030f1e7e9cbb13e60bb728860ebffdff5aaf

5 weeks agoFix calls to sqlite3_wal_checkpoint_v2(SQLITE_CHECKPOINT_NOOP) so that they do not...
dan [Thu, 11 Dec 2025 11:05:26 +0000 (11:05 +0000)] 
Fix calls to sqlite3_wal_checkpoint_v2(SQLITE_CHECKPOINT_NOOP) so that they do not return SQLITE_MISUSE.

FossilOrigin-Name: 117f4093f08e0abbde2041f70898220e237e250664f6ede6d4eb2a8a44050466

5 weeks agoUse macros for the default values for QRF limits in the CLI, rather than
drh [Wed, 10 Dec 2025 19:43:06 +0000 (19:43 +0000)] 
Use macros for the default values for QRF limits in the CLI, rather than
hard-coded magic numbers.

FossilOrigin-Name: 4ef66da15bfe69d940cfbeff2be2b7e13da156495b349b453d68e70f4dcca36a