]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
6 hours agoTest cases for .import, as well as minor enhancements to .import and to .check. master
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

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

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

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

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

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

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

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

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

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

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

FossilOrigin-Name: 99ac94cb9a7a76312cda2d236dcc0c92b2ca269456daed06a1c2674c4f326867

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

2 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

2 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

2 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

2 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

2 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

2 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

2 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

2 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

2 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

2 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

2 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

2 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

2 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

2 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

2 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

2 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

2 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

2 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

2 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

2 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

2 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

2 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

2 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

2 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

3 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

3 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

3 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

3 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

3 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

3 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

3 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

3 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

3 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

3 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

3 weeks agoWhen drawing boxes using QRF, use rounded corners and use a double-line to
drh [Fri, 5 Dec 2025 22:04:49 +0000 (22:04 +0000)] 
When drawing boxes using QRF, use rounded corners and use a double-line to
separate column headers from the content.

FossilOrigin-Name: 8c1ca30707c36f074dad29556df4176a74aa573491bb4aad973789aee5ad80da

3 weeks agoIn the Windows Makefile.msc, never set -DNDEBUG. And add the "env" target
drh [Fri, 5 Dec 2025 19:45:43 +0000 (19:45 +0000)] 
In the Windows Makefile.msc, never set -DNDEBUG.  And add the "env" target
which prints out the value of all 127 configuration variables that
Makefile.msc uses.

FossilOrigin-Name: f82376f080ca5cb316b8eb2e48a128b1838eb376b9e903c7af611b398cfe9b1f

3 weeks agoFix a memory leak in the fileio extension on windows.
dan [Fri, 5 Dec 2025 19:23:20 +0000 (19:23 +0000)] 
Fix a memory leak in the fileio extension on windows.

FossilOrigin-Name: 19e5ae6e20a1e2f41c5bc77b7bb99211b22d6fabf21e5f2f7f82028615eb791e

3 weeks agoOmit obsolete features (Ex: Windows Phone support) from the Windows
drh [Fri, 5 Dec 2025 16:06:34 +0000 (16:06 +0000)] 
Omit obsolete features (Ex: Windows Phone support) from the Windows
Makefile.msc.  More of this kind of thing is pending...

FossilOrigin-Name: c320c5585833e5e6460c61f88ba4d784613c4317b1e50eae0d58d8ce002c5732

3 weeks agoMinor adjustment to the zipfile.test script so that it works on Windows.
drh [Fri, 5 Dec 2025 15:09:42 +0000 (15:09 +0000)] 
Minor adjustment to the zipfile.test script so that it works on Windows.

FossilOrigin-Name: 7bb633df97678b98515e603c5154ffc5b54055cff187d74a2c5d010e5b3720d1

3 weeks agoEnhance the unixIsSharingShmNode() code (check-in [6385a1962c69c69c])
drh [Fri, 5 Dec 2025 12:22:23 +0000 (12:22 +0000)] 
Enhance the unixIsSharingShmNode() code (check-in [6385a1962c69c69c])
so that it more understandable by humans, and so that it does not trigger
false positive deadlock warnings in TSAN.

FossilOrigin-Name: aa0a28776bbeafb71b2db20ac8c16377ba07b7d3d58e46cfd11f60c694759a90

3 weeks agoAnother fix to [e33da6d5dc964db8]: Ensure that the EXISTS-to-JOIN break
drh [Fri, 5 Dec 2025 01:33:23 +0000 (01:33 +0000)] 
Another fix to [e33da6d5dc964db8]: Ensure that the EXISTS-to-JOIN break
happens even if the inner loop is a "no-op" loop that never executes more
than once because it is controlled by a UNIQUE index.  This resolves the
error reported in [forum:/forumpost/7992838ba2|forum post 7992838ba2].
Test cases are in TH3.

FossilOrigin-Name: bbded6477020af4d52253c5af2d33ec9b9cd619d33f744206f7420458bd84f12

3 weeks agoUpdate the autoconf Makefile.msc based on the Makefile.msc changes in the
drh [Fri, 5 Dec 2025 00:56:51 +0000 (00:56 +0000)] 
Update the autoconf Makefile.msc based on the Makefile.msc changes in the
previous check-in.

FossilOrigin-Name: 8dce36698949f2e3a9948afc7c2b6c06f575d12033148e8c55fa79c03a73e2b4

3 weeks agoAutomatically add the /NODEFAULTLIB:msvcrt flag to the Makefile.msc so that
drh [Thu, 4 Dec 2025 21:16:12 +0000 (21:16 +0000)] 
Automatically add the /NODEFAULTLIB:msvcrt flag to the Makefile.msc so that
Windows builds are able to link against zlib.lib by default.

FossilOrigin-Name: 0b75057d61ccd57fca19d49679f0ff99231595f619aa0c4310aa3180b8de08b7

3 weeks agoMake the shell_exec() routine in the CLI robust against NULL SQL text.
drh [Thu, 4 Dec 2025 20:22:36 +0000 (20:22 +0000)] 
Make the shell_exec() routine in the CLI robust against NULL SQL text.
Fix harmless compiler warnings in ext/misc/zipfile.c.

FossilOrigin-Name: 2ecba7dfd10c7d6a7a34b0ec01a387c9f1426c0504c8f20edc03e29bb9aa93c3

3 weeks agoLimit compile time value SQLITE_MAX_SQL_LENGTH to 1024 less than 2^31, or 2147482624...
dan [Thu, 4 Dec 2025 16:44:11 +0000 (16:44 +0000)] 
Limit compile time value SQLITE_MAX_SQL_LENGTH to 1024 less than 2^31, or 2147482624. This is to avoid having to deal with edge cases related to 32-bit integer overflow that can only occur in custom builds.

FossilOrigin-Name: d73364555d213e443d8400ed69b134006f4e2fe0054d74fe0828ff01effe5cd2

3 weeks agoEnable TEMP triggers to reference tables in the main schema.
drh [Thu, 4 Dec 2025 13:42:53 +0000 (13:42 +0000)] 
Enable TEMP triggers to reference tables in the main schema.

FossilOrigin-Name: 307a500aa6a1f3ac8b154d2e981bb30c90236be26a8c9a8f318d5982c62440dd

3 weeks agoMark an always-true conditional as such. temp-trigger-refs
drh [Thu, 4 Dec 2025 13:28:25 +0000 (13:28 +0000)] 
Mark an always-true conditional as such.

FossilOrigin-Name: 4f79434f5b52470291dcd09e31fdefba708d0243a2b60966536c6cb91451d203

3 weeks agoFix an error introduced by the previous check-in.
drh [Thu, 4 Dec 2025 13:08:59 +0000 (13:08 +0000)] 
Fix an error introduced by the previous check-in.

FossilOrigin-Name: 948e24ae3816d650be66bbe6b880bea74da643af37c4349e6cf2e207e6cf9b28

3 weeks agoPerformance optimization in the language grammar.
drh [Thu, 4 Dec 2025 11:59:11 +0000 (11:59 +0000)] 
Performance optimization in the language grammar.

FossilOrigin-Name: 1c1ad5e39cb379250f10db5ef61f42e0bd56ace308f8e41f9bf5e08d92075521

3 weeks agoMerge all the latest trunk enhancements and fixes into the temp-trigger-refs
drh [Thu, 4 Dec 2025 11:20:01 +0000 (11:20 +0000)] 
Merge all the latest trunk enhancements and fixes into the temp-trigger-refs
branch.

FossilOrigin-Name: 8e8a27c77aa0ea5891968231e13a8caeade48b817419bbf6eda18ad217f1df63

3 weeks agoFix an incorrect answer that might arise if a scalar query is both
drh [Thu, 4 Dec 2025 00:05:49 +0000 (00:05 +0000)] 
Fix an incorrect answer that might arise if a scalar query is both
DISTINCT and contains an OFFSET clause.
[forum:/forumpost/2025-12-03T09:25:59Z|Forum post 2025-12-03T09:25:59Z].

FossilOrigin-Name: aef5397569d65d2971367b0278fe3a6f42544cf771572e7d046e2472f052364d

3 weeks agoMore aggressive optimization of IS NULL and IS NOT NULL operators in
drh [Wed, 3 Dec 2025 21:31:53 +0000 (21:31 +0000)] 
More aggressive optimization of IS NULL and IS NOT NULL operators in
the parser.  New sqlite3ExprInt32() internal interface for creating
integer nodes in an expression tree.

FossilOrigin-Name: 560082d61f5b73ae68a86ce4d7e96d072d4f0996d82ec62d639847353bb8bf15

3 weeks agoMore aggressive optimization of IS NULL and IS NOT NULL operators. expr-opt
drh [Wed, 3 Dec 2025 18:18:29 +0000 (18:18 +0000)] 
More aggressive optimization of IS NULL and IS NOT NULL operators.

FossilOrigin-Name: c69eec9909af40e1e22d44a6859ef52378ebe06a587373f332f9d379cb39a84d

3 weeks agoCreate a new internal subroutine specifically designed to allocate
drh [Wed, 3 Dec 2025 16:54:48 +0000 (16:54 +0000)] 
Create a new internal subroutine specifically designed to allocate
Expr nodes that hold a 32-bit integer.

FossilOrigin-Name: 38d06f69e516dd13becbfb735a2a0035c2f3c50ea5d661a668b109a996656523

3 weeks agoFix a problem that could occur when a scalar subquery had both a DISTINCT and OFFSET... distinct-offset-subquery-fix
dan [Wed, 3 Dec 2025 14:39:25 +0000 (14:39 +0000)] 
Fix a problem that could occur when a scalar subquery had both a DISTINCT and OFFSET clause. First reported by [forum:41bd7af485 | forum post 41bd7af485].

FossilOrigin-Name: 496bbff910b73775b16c1ccb95dadf37416d3f3032722a1140f2a9134666d7f1

3 weeks agoClarification of comment text in expr.c. No changes to code.
drh [Wed, 3 Dec 2025 12:07:35 +0000 (12:07 +0000)] 
Clarification of comment text in expr.c.  No changes to code.

FossilOrigin-Name: afe5ee64f1cde4945c878220b029f2a22578c2bccda4fddc005c4e6a4718c6cd

3 weeks agoFix recently added test cases for Windows.
drh [Wed, 3 Dec 2025 02:48:36 +0000 (02:48 +0000)] 
Fix recently added test cases for Windows.

FossilOrigin-Name: bccc0d65b0fb617f6c8eb111b6717d3ad419f80d3495dc5c6a69ccd0771b3d9d

3 weeks agoImprovements to the ".schema indent" logic.
drh [Tue, 2 Dec 2025 19:55:39 +0000 (19:55 +0000)] 
Improvements to the ".schema indent" logic.
[forum:/forumpost/c8136b1bd0|Forum post 2025-12-02T19:04:04Z].

FossilOrigin-Name: 71ea7f38ffd0648c58713d8be5d2f5536f926ec21a0adc3c2a8a9a7ba8ea3826

3 weeks agoNew test cases for QRF
drh [Tue, 2 Dec 2025 18:37:49 +0000 (18:37 +0000)] 
New test cases for QRF

FossilOrigin-Name: e49c63e31888c6787ab13f736d58ff985a24c3f98b475e05c30e8b244afffb80

3 weeks agokvvfs: make the filename suffixes -wal and -shm illegal and teach xAccess() to silent...
stephan [Tue, 2 Dec 2025 18:28:22 +0000 (18:28 +0000)] 
kvvfs: make the filename suffixes -wal and -shm illegal and teach xAccess() to silently not fail for illegal names (else it breaks things when a -wal file is checked for).

FossilOrigin-Name: 2ea29c77a85236ca4126c05c7fd1d45a80dfe3f653af9b3ed86d6e62877ec5af

3 weeks agoGet kvvfs::xAccess() fleshed out.
stephan [Tue, 2 Dec 2025 18:10:53 +0000 (18:10 +0000)] 
Get kvvfs::xAccess() fleshed out.

FossilOrigin-Name: d947e9bed5affee3f6e54b0fe3e2b1a0ac3771865b93c06a4087318f26d87f7f

3 weeks agoConsolidate kvvfs's page size workaround into a central flag and add some logging...
stephan [Tue, 2 Dec 2025 16:29:28 +0000 (16:29 +0000)] 
Consolidate kvvfs's page size workaround into a central flag and add some logging to facilitate testing and debugging.

FossilOrigin-Name: 8d683130d2f2aaf6300a8c858802eb671e831ed520621af59c9e830e87a9d753

3 weeks agoAdd more logging to kvvfs to try to trace down why it cannot recover from a page...
stephan [Tue, 2 Dec 2025 15:47:32 +0000 (15:47 +0000)] 
Add more logging to kvvfs to try to trace down why it cannot recover from a page size change.

FossilOrigin-Name: 0bf0b8a98a2cc5128aa0e510ef2fe411a6859ce807d6159175f5eaf3bc14183b

3 weeks agoFix a harmless compiler warning in the previous check-in.
drh [Tue, 2 Dec 2025 15:01:29 +0000 (15:01 +0000)] 
Fix a harmless compiler warning in the previous check-in.

FossilOrigin-Name: 601c40a1d9e1bcd9c453210c275001543d1533af25b4ccf399d5ef4ea1328950

3 weeks agoFix a problem with ALTER TABLE DROP COLUMN commands where the column being dropped...
dan [Tue, 2 Dec 2025 14:43:59 +0000 (14:43 +0000)] 
Fix a problem with ALTER TABLE DROP COLUMN commands where the column being dropped is the rightmost in table and is immediately preceded by a comment containing a "," character.

FossilOrigin-Name: c872bd1ee7b219e055f40e43766e4ed6bc2d2ca8cb92577cd3560f4173b1f257

3 weeks agoAdd developer note on how to measure coverage of QRF.
drh [Tue, 2 Dec 2025 12:23:24 +0000 (12:23 +0000)] 
Add developer note on how to measure coverage of QRF.

FossilOrigin-Name: 0fdd453c03addb8f5c1e546f7513e3498bccd61266174ce99a61ceebf04e97cf