]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
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

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 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

3 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

3 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

4 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

5 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

5 weeks agoVarious improvements to the .mode command of the CLI, and especially to how
drh [Wed, 10 Dec 2025 19:04:49 +0000 (19:04 +0000)] 
Various improvements to the .mode command of the CLI, and especially to how
it handles the --limits option.

FossilOrigin-Name: f883b854976d2aa679c87edce3b577f38b5fa518f707706320d1ddb38365e2dd

6 weeks agoIn fiddle, remove the default .dot-commands it runs, as they do not reflect current...
stephan [Wed, 10 Dec 2025 16:20:44 +0000 (16:20 +0000)] 
In fiddle, remove the default .dot-commands it runs, as they do not reflect current shell defaults.

FossilOrigin-Name: 27b6aeda5d70e3480b1448b06277a19395b30a205f3f3bac5ce0e4102e3849ed

6 weeks agoAdd the --titlelimit option to CLI, defaulting to 20. In "line" mode of
drh [Wed, 10 Dec 2025 16:10:26 +0000 (16:10 +0000)] 
Add the --titlelimit option to CLI, defaulting to 20.  In "line" mode of
the CLI, the default seperator is changed from " = " to ": ".  This can be
overridden using the --colsep option.

FossilOrigin-Name: 291677ebb3e5c2fe00e4340d8d3661fde6bd18494f1d4e56da1efcf613ab21b6

6 weeks agoDo not show the --titlelimit setting in ".mode" setting output unless -v title-limit
drh [Wed, 10 Dec 2025 15:55:44 +0000 (15:55 +0000)] 
Do not show the --titlelimit setting in ".mode" setting output unless -v
is used or unless the current style is tabular or line.

FossilOrigin-Name: a9b0a3ce043fc910465d676c72bcf44c2ff6fbc1b0a832106cd2d3f97c7fb16a

6 weeks agoTest cases and documentation tweaks.
drh [Wed, 10 Dec 2025 15:50:23 +0000 (15:50 +0000)] 
Test cases and documentation tweaks.

FossilOrigin-Name: cc9e47a205883aedf24b5e85e8e0499567f514780e3e6ec58069a39ea6270133

6 weeks agoAdd the nTitleLimit option to QRF. Also change "line" style so that it
drh [Wed, 10 Dec 2025 15:24:46 +0000 (15:24 +0000)] 
Add the nTitleLimit option to QRF.  Also change "line" style so that it
uses zColumnSep as the divider between the title and the value.

FossilOrigin-Name: d67a299c86ff80ed67857d2546b0edaf852cb23dbfbc15e24793d1c4860a2e50

6 weeks agoIn fts5, avoid holding an open blob handle after an INSERT/UPDATE/DELETE statement...
dan [Tue, 9 Dec 2025 13:41:01 +0000 (13:41 +0000)] 
In fts5, avoid holding an open blob handle after an INSERT/UPDATE/DELETE statement, as this can interfere with sqlite3_interrupt(). Forum post [forum:/forumpost/95413eb410 | 95413eb410].

FossilOrigin-Name: f88e1d03573f394fc7caf60704c96152717b3fe8be4eef0caeb64737054f0fd2

6 weeks agoUpdate the added-in-version stamp to some kvvfs JS APIs.
stephan [Mon, 8 Dec 2025 13:11:17 +0000 (13:11 +0000)] 
Update the added-in-version stamp to some kvvfs JS APIs.

FossilOrigin-Name: 939275c6c574a3354e0626164aab1a005998f811c53a66b078249d6b2fcbd68e

6 weeks agoIntroducing kvvfs v2 for the JS bindings. Summary: no longer hard-coded to session...
stephan [Mon, 8 Dec 2025 13:06:27 +0000 (13:06 +0000)] 
Introducing kvvfs v2 for the JS bindings. Summary: no longer hard-coded to session/localStorage, available outside of the main UI thread (non-persistently), a simpler-to-use import/export API, and adds an asynchronous event interface intended for creating page-by-page db backups.

FossilOrigin-Name: ec866b04d088e53b09764d00f5403902785328fd8f3cbf80d3affa166477711d

6 weeks agoReplace some double-quotes with single quotes an SQL doc snippet in the csv example... kvvfs-v2
stephan [Mon, 8 Dec 2025 12:24:23 +0000 (12:24 +0000)] 
Replace some double-quotes with single quotes an SQL doc snippet in the csv example virtual table.

FossilOrigin-Name: 1781e5e8d0cd2b508f7992987257416bd48841ea7e30bc9294784a7c1a402be7

6 weeks agoMinor tweaks to the QRF documentation. No changes to code.
drh [Sun, 7 Dec 2025 18:19:22 +0000 (18:19 +0000)] 
Minor tweaks to the QRF documentation.  No changes to code.

FossilOrigin-Name: b2517d01e65b34ea4ca52c9149d7b255a36a45a50b332cb8ccfdacf22e629be2

6 weeks agoDo not return too many bytes from the zipfile extension given a malformed
drh [Sat, 6 Dec 2025 23:58:09 +0000 (23:58 +0000)] 
Do not return too many bytes from the zipfile extension given a malformed
ZIP file.

FossilOrigin-Name: 9766b47beb9ec72f55bfe9fa6e4dadf1829848389388aa30e97094a325de17fa

6 weeks agoIn the zipfile extension, only return as many bytes as Inflate actually zipfile-fix
drh [Sat, 6 Dec 2025 20:41:24 +0000 (20:41 +0000)] 
In the zipfile extension, only return as many bytes as Inflate actually
generated.  [forum:/forumpost/761eac3c82|Forum post 761eac3c82].
Adjust ./configure so that it builds zipfile into testfixture if ZLIB
is available, so that tests get run on unix platforms.

FossilOrigin-Name: 3d459f1fb1bd1b5e723629c463ab392af7b206ece3388bda216c6a4c26160909

6 weeks agoRemove #ifdefs intended to make SQLite compatible with Windows RT. WinRT
drh [Sat, 6 Dec 2025 19:56:40 +0000 (19:56 +0000)] 
Remove #ifdefs intended to make SQLite compatible with Windows RT.  WinRT
was short-lived and has been discontinued for a long time.

FossilOrigin-Name: 108691a3cb2f296f0ede06c34271ee185f299bfd76e97a1bd06c730a28d94ff4

6 weeks agoFix a harmless compiler warning inside an assert() in FTS3.
drh [Sat, 6 Dec 2025 18:40:14 +0000 (18:40 +0000)] 
Fix a harmless compiler warning inside an assert() in FTS3.

FossilOrigin-Name: 005e176b4e5b3a28865b08c23d6ecd2c76c036b9c6b2075e6d7bfc584d3c433e

6 weeks agoFox the "box" format, use rounded corners and use a double-line to separate
drh [Sat, 6 Dec 2025 11:54:43 +0000 (11:54 +0000)] 
Fox the "box" format, use rounded corners and use a double-line to separate
the header from the content.  Add the "-quote relaxed" text rendering mode
and make it the default for TTYs.

FossilOrigin-Name: b3da6a8728641a0c9ca2f3b20c9817c0a2be6c5bf05f020590547480d2aff0e0

6 weeks agoFix typos and harmless compiler warnings. Omit the use of ctypes.h in QRF. qrf-box-enhancements
drh [Sat, 6 Dec 2025 11:50:36 +0000 (11:50 +0000)] 
Fix typos and harmless compiler warnings.  Omit the use of ctypes.h in QRF.

FossilOrigin-Name: 4f7edadbdeeb4baee2e4a4703def6e258ce00f54684343b73380e7c69165892e

6 weeks agoNew test cases to cover the "--quote relaxed" feature.
drh [Sat, 6 Dec 2025 11:35:30 +0000 (11:35 +0000)] 
New test cases to cover the "--quote relaxed" feature.

FossilOrigin-Name: d00d9556edc198d49cf9aa2f14e46bb5b1021ef0622aee1fa4ae585ed9a13a98

6 weeks agoUpdate test cases to work with the new box format and with --quote relaxed.
drh [Sat, 6 Dec 2025 11:02:14 +0000 (11:02 +0000)] 
Update test cases to work with the new box format and with --quote relaxed.

FossilOrigin-Name: e3f442d08f455e0aa260cc8db4922a5f611e17afe71b0bb251328ab4b3ad46ca

6 weeks agoNew text rendering style of QRF_TEXT_Relaxed.
drh [Sat, 6 Dec 2025 10:07:15 +0000 (10:07 +0000)] 
New text rendering style of QRF_TEXT_Relaxed.

FossilOrigin-Name: d2049bffe6674b8840663b0e5f404a040b715640c87f022517cf11546548fda3