]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
2 weeks agoRevamp the internal data structures that the CLI uses for tracking and
drh [Mon, 10 Nov 2025 23:40:40 +0000 (23:40 +0000)] 
Revamp the internal data structures that the CLI uses for tracking and
managing the display mode.  This is an incremental check-in.  The code
compiles and runs, but not all tests are passing.

FossilOrigin-Name: 8cc581e53c2ab15bd311e082048b7c57b03a754d25c0b4beead08a3362ac1c7a

2 weeks agoKeep explicit NULL values in QRF_STYLE_Json output.
drh [Mon, 10 Nov 2025 22:05:42 +0000 (22:05 +0000)] 
Keep explicit NULL values in QRF_STYLE_Json output.

FossilOrigin-Name: cb07f3d441b0b2a3ebdfaa9456891a9c8e33fa07b967532a9edfaf6ff3163cb0

2 weeks agoMerge all the latest trunk improvements into the qrf branch.
drh [Mon, 10 Nov 2025 20:11:36 +0000 (20:11 +0000)] 
Merge all the latest trunk improvements into the qrf branch.

FossilOrigin-Name: 1fc2298edc67cbaf1963ed858a36cab15f670c00779ace6b63bdd266b0dbaaf2

2 weeks agoImproved concurrency for "make devtest" by splitting fuzzdata1.db and
drh [Mon, 10 Nov 2025 20:01:39 +0000 (20:01 +0000)] 
Improved concurrency for "make devtest" by splitting fuzzdata1.db and
fuzzdata2.db into slices for asan and ubsan testing.

FossilOrigin-Name: 2c31176607f02a73cf2626cda2dd0711ae74bdf0b4520d4c84ff299c860e419e

2 weeks agoAvoid dropping RETURNING triggers when the schema is reset while preparing a statement.
dan [Mon, 10 Nov 2025 19:11:15 +0000 (19:11 +0000)] 
Avoid dropping RETURNING triggers when the schema is reset while preparing a statement.

FossilOrigin-Name: 45d820ca227eb1ade4dda498b0f94b2c5df4bab3fc5fcdd517ee125a43d16f4d

2 weeks agoImproved argument parsing and error message infrastructure for
drh [Mon, 10 Nov 2025 18:39:33 +0000 (18:39 +0000)] 
Improved argument parsing and error message infrastructure for
dot-commands in the CLI.

FossilOrigin-Name: 23d5d09db8eae33b250cb8c86b6e6790fc9d5a62ca16df77d8aa881405da66fa

2 weeks agoAvoid dropping RETURNING triggers when the schema is reset while preparing a statement. returning-fix
dan [Mon, 10 Nov 2025 17:37:59 +0000 (17:37 +0000)] 
Avoid dropping RETURNING triggers when the schema is reset while preparing a statement.

FossilOrigin-Name: e26bcef7522a6f6ee8d55fa30e7fe06419566cf4e8c2df0c33c92a4c89f58c05

2 weeks agoThe ".www" command is now handled by QRF. So at this point, QRF handles
drh [Mon, 10 Nov 2025 15:56:18 +0000 (15:56 +0000)] 
The ".www" command is now handled by QRF.  So at this point, QRF handles
all query result formatting in the CLI and the legacy formatter has been
removed from the code.

FossilOrigin-Name: 35d4c7151e63c3f105a11dddc853666ae19cfca190204847a42f2b2a5641e95d

2 weeks agoRewrite the ".schema" and ".fullschema" commands in the CLI so as to
drh [Mon, 10 Nov 2025 15:01:57 +0000 (15:01 +0000)] 
Rewrite the ".schema" and ".fullschema" commands in the CLI so as to
eliminate the need for MODE_Pretty and MODE_Semi.

FossilOrigin-Name: 0eb0410f725eed44973cf8712ab2d24c16fb5cbb249b5780f8fe5d41b2193d79

2 weeks agoAdd the bTextNull field to sqlite3_qrf_spec. Use QRF to implement "tcl"
drh [Mon, 10 Nov 2025 12:32:04 +0000 (12:32 +0000)] 
Add the bTextNull field to sqlite3_qrf_spec.  Use QRF to implement "tcl"
mode in the CLI.

FossilOrigin-Name: 2ba92320db3c16c3c91e29ea935ae92da546261f25846d242bd2dd27e0b7e032

2 weeks agoFix a missing va_end() call in the intckMprintf() function of the
drh [Mon, 10 Nov 2025 11:05:36 +0000 (11:05 +0000)] 
Fix a missing va_end() call in the intckMprintf() function of the
incremental integrity-check extension.

FossilOrigin-Name: 62ad2350e368dc337ba2d0fb6847d07c40a6f79520dd6414d22b5b54983b0b12

2 weeks agoA more compact fix for the problem first fixed by [5f5a736f88].
dan [Mon, 10 Nov 2025 11:00:41 +0000 (11:00 +0000)] 
A more compact fix for the problem first fixed by [5f5a736f88].

FossilOrigin-Name: 7a644178c8d289ca18631844b2d73b32fddc72afcc80906633dd38c14eba2ca9

2 weeks agoHave sqlite3_set_errmsg() return SQLITE_MISUSE if a NULL db handle is passed to it...
dan [Mon, 10 Nov 2025 10:47:29 +0000 (10:47 +0000)] 
Have sqlite3_set_errmsg() return SQLITE_MISUSE if a NULL db handle is passed to it, as documented.

FossilOrigin-Name: 5f5a736f88bc9bc6c9c83d2cbfd74c0b5357d7417d9993d34a78f0b7317ff796

2 weeks agoMerge all the latest trunk fixes, and especially the fix for the ".www"
drh [Mon, 10 Nov 2025 10:46:55 +0000 (10:46 +0000)] 
Merge all the latest trunk fixes, and especially the fix for the ".www"
command in the CLI, into the qrf branch.

FossilOrigin-Name: 07a5523cf27fd7c1d8fbc5cde80cb45fadef49317ca59fec9f8e42b2839c3e19

2 weeks agoReworking of JS internals to support binding of nested C structs (like sqlite3_index_...
stephan [Mon, 10 Nov 2025 07:41:54 +0000 (07:41 +0000)] 
Reworking of JS internals to support binding of nested C structs (like sqlite3_index_constraint and friends) and allow some of the automated JS/C conversions to be plugged in at the struct-binding level, simplifying how struct members, in particular function pointers, can be used from JS.

FossilOrigin-Name: bb4fd5b789cebf2b224c29023fea3e620a86fb36730c36c0d85d9f35880bf643

2 weeks agoFix the ".www" command of the CLI so that it works on unix systems with
drh [Mon, 10 Nov 2025 01:46:06 +0000 (01:46 +0000)] 
Fix the ".www" command of the CLI so that it works on unix systems with
newer web browsers that do not allow access to files in /tmp.

FossilOrigin-Name: 2f918c14bac28c567cc854b3d41dcdd59191a118bb5fdea9373945fe860161f5

2 weeks agoFixes to autoExplain
drh [Mon, 10 Nov 2025 00:18:36 +0000 (00:18 +0000)] 
Fixes to autoExplain

FossilOrigin-Name: 38e4171697057437fc9f70f8734c7f557b91da47804ff10b3d2481802377222f

2 weeks agoEnforce mxRowHeight in columnar layouts. Code clean-up. Minimum column with
drh [Sun, 9 Nov 2025 17:25:23 +0000 (17:25 +0000)] 
Enforce mxRowHeight in columnar layouts.  Code clean-up.  Minimum column with
is 2 if there is wrapping, in case there are double-wide characters.

FossilOrigin-Name: 0ee8fc00af4c82da0d597c65dd3d8590c71ea78d8f4a29653bbb21668c6c530d

2 weeks agoMinor doc typo fix reported in [forum:939d5864df|forum post 939d5864df].
stephan [Sun, 9 Nov 2025 07:11:15 +0000 (07:11 +0000)] 
Minor doc typo fix reported in [forum:939d5864df|forum post 939d5864df].

FossilOrigin-Name: a1f9c977b83fab11c54710070dbedfaea47195050946db74075bdd3ade97a4c8

2 weeks agoCLI shell: ensure that .dump propagates its error code on error. Problem reported...
stephan [Sun, 9 Nov 2025 06:51:32 +0000 (06:51 +0000)] 
CLI shell: ensure that .dump propagates its error code on error. Problem reported in [forum:a4f3873b0a8503cc|forum post a4f3873b0a].

FossilOrigin-Name: 850b92b6347187d702736bf5a574b9b4a49854a33799875f24fc75c50a6bf908

2 weeks agoIn sqlite3.wasm.allocFromTypedArray(), swap the order of the allocation and the acces...
stephan [Sun, 9 Nov 2025 06:32:10 +0000 (06:32 +0000)] 
In sqlite3.wasm.allocFromTypedArray(), swap the order of the allocation and the access to the heap view object to work around an obscure issue when allocating huge blobs. The heap view object could previously become stale via the following allocation if the underlying WebAssembly.Memory object needed to grow. Essentially a realloc()-moves-the-pointer situation but it only comes up with huge allocations under the right circumstances and would trigger a JS exception (as opposed to corrupting the WASM heap). Problem reported in [forum:05b77273be104532|forum post 05b77273be104532].

FossilOrigin-Name: 0f712b6b0516dc151d3bcbb63497661c82e11eae368e639bbdf197e1b3467195

2 weeks agoFixes for harmless static analyzer warnings.
drh [Sun, 9 Nov 2025 00:37:29 +0000 (00:37 +0000)] 
Fixes for harmless static analyzer warnings.

FossilOrigin-Name: 37bd136ae842c8f8110c10b0834c804a8af133ce0caff492f37bd567a56ac6c6

2 weeks agoRemove several more hundred lines of dead code from shell.c.in.
drh [Sun, 9 Nov 2025 00:01:48 +0000 (00:01 +0000)] 
Remove several more hundred lines of dead code from shell.c.in.

FossilOrigin-Name: 9de3e1d3fb0b2127e983aa455cda2f38646891da65eb9ac39bb5b00d8488f52f

2 weeks agoRemove about a thousand lines of dead code from shell.c.in.
drh [Sat, 8 Nov 2025 23:35:57 +0000 (23:35 +0000)] 
Remove about a thousand lines of dead code from shell.c.in.

FossilOrigin-Name: efbcc7decd5347e3460cc3ed62720c8c3932225dfdf92293a990c51895450906

2 weeks agoName changes. QRF_TEXT_Off becomes QRF_TEXT_Plain. mxTotalWidth becomes
drh [Sat, 8 Nov 2025 22:46:29 +0000 (22:46 +0000)] 
Name changes.  QRF_TEXT_Off becomes QRF_TEXT_Plain.  mxTotalWidth becomes
nScreenWidth.

FossilOrigin-Name: 871567e377e976e0bb191d466019d1d4abe126f2da1880f1e25cd92b06a666d1

2 weeks agoImprovements to QRF_STYLE_Line. Make it responsive to mxTotalWidth and
drh [Sat, 8 Nov 2025 18:31:57 +0000 (18:31 +0000)] 
Improvements to QRF_STYLE_Line.  Make it responsive to mxTotalWidth and
mxRowHeight.  Indent subsequent lines appropriately.  Add corresponding
test cases.

FossilOrigin-Name: 23ddc38cf19845a385c8b33002805c3c864ab9b2e36c3d609794444b06d20c89

2 weeks agoFix minor issues with alignment and quoting. All legacy tests are now
drh [Sat, 8 Nov 2025 17:08:19 +0000 (17:08 +0000)] 
Fix minor issues with alignment and quoting.  All legacy tests are now
passing.

FossilOrigin-Name: 712b890531d351cf19d57d8cc6dced5cdd2c394d69fd1ace98298d79ddca269a

2 weeks agoMiscellaneous fixes to the new alignment configurations.
drh [Sat, 8 Nov 2025 15:25:07 +0000 (15:25 +0000)] 
Miscellaneous fixes to the new alignment configurations.

FossilOrigin-Name: 787fb4c2ac80db6552bc7a740c3c3c63c0c8414cb4e7db80d367b4b5512519d0

2 weeks agoSeparate column width specification from cell alignment.
drh [Sat, 8 Nov 2025 14:04:29 +0000 (14:04 +0000)] 
Separate column width specification from cell alignment.

FossilOrigin-Name: 5dadfd7f41764ddfed39bb49bbde3a54d8f282bb494c9c2abbba37d0995a7f8e

2 weeks agoMinor changes to fix a few legacy test cases. Snapshot prior to yet another
drh [Sat, 8 Nov 2025 10:48:55 +0000 (10:48 +0000)] 
Minor changes to fix a few legacy test cases.  Snapshot prior to yet another
refactor.

FossilOrigin-Name: b429e7882fd630a490350efa38bfce8686d6727f324a60191337a59d5436828b

2 weeks agoMake sure columnar outputs always invoke qrfWrite().
drh [Sat, 8 Nov 2025 03:44:05 +0000 (03:44 +0000)] 
Make sure columnar outputs always invoke qrfWrite().

FossilOrigin-Name: 21084041196dd6908bb810d8fce80b7f6d5b12ebe474bf62b85128540ad020eb

2 weeks agoRewrite the table layout in QRF. Easier to maintain now. Still a few
drh [Sat, 8 Nov 2025 03:20:47 +0000 (03:20 +0000)] 
Rewrite the table layout in QRF.  Easier to maintain now.  Still a few
shell test failures, but much better after this rewrite.

FossilOrigin-Name: 25838d282c5f7a922988245f373edfe8adbe28e929abce83afcda2b08472e685

2 weeks agoFix some problems. But there is a need to do major surgery on the
drh [Fri, 7 Nov 2025 19:20:49 +0000 (19:20 +0000)] 
Fix some problems.  But there is a need to do major surgery on the
table layout algorithm, so it seems good to snapshot before proceeding.

FossilOrigin-Name: 9052991a897ad12ac54476d9a370d1ad18937abc3c3fc11efcb678f21cb5ef69

2 weeks agoIncremental check-in. QRF is working, but there are many test failures
drh [Fri, 7 Nov 2025 17:48:14 +0000 (17:48 +0000)] 
Incremental check-in.  QRF is working, but there are many test failures
in the shell test modules.

FossilOrigin-Name: de7fc9afc43d4bd5f5995832cd698633e0e7213c190fa044856c9f82512161f9

2 weeks agoBegin the process of integrating QRF into the CLI. Adjust makefiles.
drh [Fri, 7 Nov 2025 14:31:17 +0000 (14:31 +0000)] 
Begin the process of integrating QRF into the CLI.  Adjust makefiles.
Include the QRF code in shell.c.  But QRF is not yet used by the CLI.

FossilOrigin-Name: 7596fc32b371e5e657e830c2e80e61b0947320a7359833e915a888a438c2e935

2 weeks agoUpdate documentation to clarify that mxTotalWidth and mxLength are not
drh [Fri, 7 Nov 2025 13:23:29 +0000 (13:23 +0000)] 
Update documentation to clarify that mxTotalWidth and mxLength are not
yet implemented.

FossilOrigin-Name: c25806fc5491554f1cd55174c6cf98b509d619e3011b8e26abdf05b24133a6e8

2 weeks agoRename "mxWidth" to "mxColWidth". Add "mxTotalWidth" and "mxLength"
drh [Fri, 7 Nov 2025 13:11:16 +0000 (13:11 +0000)] 
Rename "mxWidth" to "mxColWidth".  Add "mxTotalWidth" and "mxLength"
settings and hook them up to the TCL interface, but those settings are
not yet implemented.

FossilOrigin-Name: 3f327e8fbc295b43c79118f8f49f8d2e20c2f3ac96e3b7f996720dab858d8199

2 weeks agoFix an error-message test case broken by the previous check-in.
drh [Fri, 7 Nov 2025 12:15:25 +0000 (12:15 +0000)] 
Fix an error-message test case broken by the previous check-in.

FossilOrigin-Name: fb040354901569915389c8c4c1530dfda8b724be7885adfde654e229d3e98eec

2 weeks agoAdd the JsonLine output style.
drh [Fri, 7 Nov 2025 12:12:02 +0000 (12:12 +0000)] 
Add the JsonLine output style.

FossilOrigin-Name: 7dfba841cfc515ac28401c4eb90ec24e04fd52cddaeae41be3cfa6967dac0eac

2 weeks agoAdd some UNUSED_PARAMATER()s for the sake of -pedantic -DSQLITE_OMIT_WAL.
stephan [Fri, 7 Nov 2025 11:46:56 +0000 (11:46 +0000)] 
Add some UNUSED_PARAMATER()s for the sake of -pedantic -DSQLITE_OMIT_WAL.

FossilOrigin-Name: 620434a4a276ecaf2ee56d325815ac4e33c95e1190b420a341e376e54ef60278

2 weeks agoFix a harmless static-analyzer warning.
drh [Fri, 7 Nov 2025 11:22:47 +0000 (11:22 +0000)] 
Fix a harmless static-analyzer warning.

FossilOrigin-Name: 9819fc5aa7706fda9d4ec67835ae87eed64d321672873c9d864788b8cf5d27d8

2 weeks agoFix the size of an integer in the TCL interface.
drh [Fri, 7 Nov 2025 00:05:44 +0000 (00:05 +0000)] 
Fix the size of an integer in the TCL interface.

FossilOrigin-Name: 04156c34e4efeebe9b8c2ee2944f9576b685c6aa7e6180c8a5caff4958cde2e8

2 weeks agoPut the style constants in alphabetic order. Improvements to
drh [Thu, 6 Nov 2025 23:34:30 +0000 (23:34 +0000)] 
Put the style constants in alphabetic order.  Improvements to
documentation.

FossilOrigin-Name: d5e891426f8b2a0c3326bf868f2d811c44a1f7e619f42b273c7445ab443d618c

2 weeks agoRevamp so that Explain and Eqp styles force the statement into the
drh [Thu, 6 Nov 2025 19:22:34 +0000 (19:22 +0000)] 
Revamp so that Explain and Eqp styles force the statement into the
the appropriate explain-mode for the rendering and restore it afterwards.
Add the new scanstatus styles: Stats, StatsEst, and StatsVm.

FossilOrigin-Name: 128f1149076ef00c567405ea2112be0ae665b12e81672ae5494d82af11633af5

2 weeks agoChanges to try to improve EXPLAIN capabilities. This is a snapshot
drh [Thu, 6 Nov 2025 17:28:34 +0000 (17:28 +0000)] 
Changes to try to improve EXPLAIN capabilities.  This is a snapshot
prior to an attempt to make sweeping changes in that area of the
interface.

FossilOrigin-Name: e7367d8089d43a06933f919c33c6edb15ee9bedf52d9a2d9ea989654077d998f

2 weeks agoMerge the latest trunk enhancements into the qrf branch.
drh [Thu, 6 Nov 2025 13:25:40 +0000 (13:25 +0000)] 
Merge the latest trunk enhancements into the qrf branch.

FossilOrigin-Name: 4e2ada6ad8a56d00aeb73570dc4ee22c484b65b8100a42a7085414d0a4c68afd

2 weeks agoGet the sqlite3Hwtime() function working on ARM. Enable scanstatus by
drh [Thu, 6 Nov 2025 13:19:50 +0000 (13:19 +0000)] 
Get the sqlite3Hwtime() function working on ARM.  Enable scanstatus by
default on Windows CLI builds.

FossilOrigin-Name: 305bb022368bac9fafd7c2794762299324796903aaea270923d07f2127d8926c

2 weeks agoImprovements to documentation for stmt_scanstatus interfaces.
drh [Thu, 6 Nov 2025 12:25:26 +0000 (12:25 +0000)] 
Improvements to documentation for stmt_scanstatus interfaces.

FossilOrigin-Name: 5f3e883d180d6fb7a1909df284713170f5431ea7afcc1a3eb5912c4620df42b2

3 weeks agoMore test cases and a bug fix.
drh [Wed, 5 Nov 2025 22:48:33 +0000 (22:48 +0000)] 
More test cases and a bug fix.

FossilOrigin-Name: 9a9c4580772fa35a68b3e27a40fc9bc615144979dfd27b1054538e29a489c024

3 weeks agoFurther testing and bug fixing.
drh [Wed, 5 Nov 2025 22:33:47 +0000 (22:33 +0000)] 
Further testing and bug fixing.

FossilOrigin-Name: d6b1bac15a692a69f3707fca721b57b3b283edb3850efa34ba42b02c3669fc71

3 weeks agoThe qrf-tester.c program was removed in the previous check-in, but the
drh [Wed, 5 Nov 2025 18:35:54 +0000 (18:35 +0000)] 
The qrf-tester.c program was removed in the previous check-in, but the
makefile rules to build it were not.  This check-in fixes that oversight.

FossilOrigin-Name: d1542696409b67635d0f172042642709452118d62102ebfab2ad3ff2b5732687

3 weeks agoThe TCL interface for QRF is now feature complete (at least until I think
drh [Wed, 5 Nov 2025 18:27:18 +0000 (18:27 +0000)] 
The TCL interface for QRF is now feature complete (at least until I think
of new features to add).  There is still a lot of testing, bug-fixing,
and documentation to be done, however.

FossilOrigin-Name: 633fe4fe584ae14ed6ced1ae137bf96a434a012423d70f0f93876737b0ca075c

3 weeks agoA few simple test cases added.
drh [Wed, 5 Nov 2025 16:29:06 +0000 (16:29 +0000)] 
A few simple test cases added.

FossilOrigin-Name: 7200372ed2424d1ac4c88644e0b17a224539f170b9111ced9c88774edbd75261

3 weeks agoNew style setting QRF_STYLE_Auto which chooses box, explain, or EQP depending
drh [Wed, 5 Nov 2025 15:44:11 +0000 (15:44 +0000)] 
New style setting QRF_STYLE_Auto which chooses box, explain, or EQP depending
on the statement to be rendered.  Improvements to memory management.
Updates to the documentation.

FossilOrigin-Name: 468ba188f034b23398e1f07b915cf7c8b337dcf7f56a13511947c5322ae98722

3 weeks agoThe new "format" method in the TCL interface is now partially functional.
drh [Wed, 5 Nov 2025 14:07:16 +0000 (14:07 +0000)] 
The new "format" method in the TCL interface is now partially functional.

FossilOrigin-Name: ace1ebda08740bb248c009cc4a6c99da318a2bba3e43ef20bd0c365c5021705f

3 weeks agoNew build product "tclsqlite-ex.c" is the tclsqlite.c file with QRF added.
drh [Wed, 5 Nov 2025 12:37:42 +0000 (12:37 +0000)] 
New build product "tclsqlite-ex.c" is the tclsqlite.c file with QRF added.
This is now used whereever tclsqlite.c was used.  Hence QRF is now in the
testfixture and in the tclextension.  The sqlite3 method is "format".  That
method is currently just a non-functional stub.

FossilOrigin-Name: e08d21fe1365176f268f1dcca4048fb5ff043356e5817c8622b4ed9a1a5a58cf

3 weeks agoJNI: doc tweaks. Add missing SQLITE_DBSTATUS_TEMPBUF_SPILL export.
stephan [Wed, 5 Nov 2025 10:07:57 +0000 (10:07 +0000)] 
JNI: doc tweaks. Add missing SQLITE_DBSTATUS_TEMPBUF_SPILL export.

FossilOrigin-Name: 2c8938f43f721a2592b0efe36f75ab87aa370654e1a22d646c0a17d58d643295

3 weeks agoTEA extension: add --tcl-stubs config flag, defaulting to zero, because there does...
stephan [Wed, 5 Nov 2025 05:59:53 +0000 (05:59 +0000)] 
TEA extension: add --tcl-stubs config flag, defaulting to zero, because there does not seem to be a universally-valid default for that. Addresses [forum:cd6503fce2|forum post cd6503fce2].

FossilOrigin-Name: 4954b94763052ed60ad2ae610e4f5c18fdba4475a39eb369408e984c89805e97

3 weeks agoRemove stale code from the fileio.c extension.
drh [Tue, 4 Nov 2025 23:47:49 +0000 (23:47 +0000)] 
Remove stale code from the fileio.c extension.

FossilOrigin-Name: d26f115760f16cac1cd28c950d1c0eec199461d2c9a52baafb91ff6b8d5ec151

3 weeks agoMerge the latest trunk enhancements into the qrf branch
drh [Tue, 4 Nov 2025 22:19:21 +0000 (22:19 +0000)] 
Merge the latest trunk enhancements into the qrf branch

FossilOrigin-Name: bed60e9be6d7f33c9f20dbb98bebdfaa7226a949a8e06691aea4d1e7c1af9507

3 weeks agoMinor wasm build simplifications and extend the JS bindings of sqlite3_column/value_t...
stephan [Tue, 4 Nov 2025 22:01:55 +0000 (22:01 +0000)] 
Minor wasm build simplifications and extend the JS bindings of sqlite3_column/value_text() such that they include embeded NUL bytes in their result strings rather than truncate them at NUL. Consolidate the shell.c build flags from the canonical and autoconf makefiles into the configure script.

FossilOrigin-Name: cee2e2576f5e91911a019bff025ee6071850c0d75941e8746f10d57b56bd830a

3 weeks agoVersion 3.51.0 major-release release version-3.51.0
drh [Tue, 4 Nov 2025 19:38:17 +0000 (19:38 +0000)] 
Version 3.51.0

FossilOrigin-Name: fb2c931ae597f8d00a37574ff67aeed3eced4e5547f9120744ae4bfa8e74527b

3 weeks agoConsolidate the three VFS-specific SEE tests into a shared routine. wasm-post-3.51
stephan [Tue, 4 Nov 2025 01:03:58 +0000 (01:03 +0000)] 
Consolidate the three VFS-specific SEE tests into a shared routine.

FossilOrigin-Name: 8ac0bf125ddb6cc86a6825dcfe8895559835eca85ef14b5ad489f7c8159462e4

3 weeks agoMove the hard-coded SHELL_OPT makefile values from the two main makefiles into their...
stephan [Tue, 4 Nov 2025 00:15:51 +0000 (00:15 +0000)] 
Move the hard-coded SHELL_OPT makefile values from the two main makefiles into their shared configure script.

FossilOrigin-Name: 900885c4fb3071e461bf868e9e68d0d8f3d3e83a1bcbf5c9c68179c701c1fb92

3 weeks agoMerge trunk into wasm-post-3.51 to for some minor config script work.
stephan [Tue, 4 Nov 2025 00:10:10 +0000 (00:10 +0000)] 
Merge trunk into wasm-post-3.51 to for some minor config script work.

FossilOrigin-Name: bf55a4220a74022e8be5f8a0cd7f4ca395a36e1666e14113e7e60c4a94cf0b3a

3 weeks agoAdd tests demonstrating [d0e803b90344].
stephan [Mon, 3 Nov 2025 21:38:34 +0000 (21:38 +0000)] 
Add tests demonstrating [d0e803b90344].

FossilOrigin-Name: 7d22ee947ddecb0dc6c640e79c9a09c0931f8b04f97d3ac89afdbf1736312bf7

3 weeks agoAdd new file missing from [936990cf067a5ebb] (and subsequently deleted by fossil...
stephan [Mon, 3 Nov 2025 21:26:27 +0000 (21:26 +0000)] 
Add new file missing from [936990cf067a5ebb] (and subsequently deleted by fossil clean -x). Have speedtest1 wasm use the user-provided sqlite3.c, rather than forcing the canonical one, so that the wasm exports don't have to be re-generated for that special case. Remove a harmless duplicate -D... flag.

FossilOrigin-Name: 7a592f5cd09699b45051855f6d477def40220b17642cbdb0f35ed74dd32becf1

3 weeks agoUse the same compile-time options for the CLI in the auto-setup tarball
drh [Mon, 3 Nov 2025 15:34:25 +0000 (15:34 +0000)] 
Use the same compile-time options for the CLI in the auto-setup tarball
as are used in the canonical source tree.
[forum:/forumpost/8975130218|Forum post 8975130218].

FossilOrigin-Name: ccabbe06d4e0650eecc91296d6a3040ed7fef06b47e4d63393a2367c8c8f55cf

3 weeks agoAdd new column "cwd" to the jobs table in testrunner.db. For recording the directory...
dan [Mon, 3 Nov 2025 15:29:51 +0000 (15:29 +0000)] 
Add new column "cwd" to the jobs table in testrunner.db. For recording the directory in which the test ran or is running.

FossilOrigin-Name: 334305a469a51ef0d768ba8443d8cab217f45394cc9f720748a489b10703193d

3 weeks agoAdjust the dbstatus2.test module so that it works on 32-bit builds in
drh [Mon, 3 Nov 2025 12:36:52 +0000 (12:36 +0000)] 
Adjust the dbstatus2.test module so that it works on 32-bit builds in
addition to 64-bit builds.

FossilOrigin-Name: dcaaa71e750d56afde3e905aaf10729ec95e0ede00522e1b12af6b6345e744ac

3 weeks agoUpdate test result output from test/dbstatus2.test module so that it
drh [Mon, 3 Nov 2025 11:35:13 +0000 (11:35 +0000)] 
Update test result output from test/dbstatus2.test module so that it
reports the actual value of nTmpSpill when that value is out of range.

FossilOrigin-Name: 382c8440d7a16eae49fa1644513ae045bfceb072d9b4005963f57f1a57fe94b2

3 weeks agoFix the test/speedtest.tcl script so that the CC= command-line option works.
drh [Mon, 3 Nov 2025 10:40:06 +0000 (10:40 +0000)] 
Fix the test/speedtest.tcl script so that the CC= command-line option works.

FossilOrigin-Name: 0de0ba878b9ec572d76d47112a0124df9f234fbb7a69c5f5a76ce8c439b11f6f

3 weeks agoFix a harmless memory leak in the CLI caused by the --cmd option generating
drh [Mon, 3 Nov 2025 10:14:20 +0000 (10:14 +0000)] 
Fix a harmless memory leak in the CLI caused by the --cmd option generating
an error message.

FossilOrigin-Name: ab916bad188b150321e420ec0009d909c287e3790b5d6ec683e2df9ed457ff15

3 weeks agoAdd pedantic OOM detection logic to some disused diagnostic and test code.
drh [Sun, 2 Nov 2025 22:57:26 +0000 (22:57 +0000)] 
Add pedantic OOM detection logic to some disused diagnostic and test code.
No changes to any deliverables.

FossilOrigin-Name: abb6945fc62a1855786bda1f473edef0e937a791c453387a0859a6ce0451635a

3 weeks agoUpdate the test/walthread.test testing script so that it uses a random
drh [Sat, 1 Nov 2025 20:14:43 +0000 (20:14 +0000)] 
Update the test/walthread.test testing script so that it uses a random
database name.

FossilOrigin-Name: ce25a758d4cea1741cb3db6384720f17faef61b352d494ab410a83a41f1721d3

3 weeks agoFix ext/wasm/mkdist.sh to use ./version-info instead of ../../version-info (a recent...
stephan [Sat, 1 Nov 2025 14:49:05 +0000 (14:49 +0000)] 
Fix ext/wasm/mkdist.sh to use ./version-info instead of ../../version-info (a recent build change made to ensure that builds with a custom sqlite3.c embed that version info).

FossilOrigin-Name: d25a92d88923f880d6477a99f2a35528faea83e7db245f2b07db80613b4aeb8e

3 weeks agoUpdates to the compile-for-windows.md document. No changes to code.
drh [Fri, 31 Oct 2025 17:45:59 +0000 (17:45 +0000)] 
Updates to the compile-for-windows.md document.  No changes to code.

FossilOrigin-Name: 652310a9f0ef2a870b5033029278b1fbef28c2ec15405d1b32bf1d51df28266c

3 weeks agoDetect some cases of ambiguous column references in USING clauses that can come up...
dan [Fri, 31 Oct 2025 16:07:31 +0000 (16:07 +0000)] 
Detect some cases of ambiguous column references in USING clauses that can come up with nested joins.

FossilOrigin-Name: 38c993c8b7137d6d5623d387292639634297c17da11befec9029f12a16a472f8

3 weeks agoChange the name of a file-scope constant array in carray.c so that it does
drh [Fri, 31 Oct 2025 15:18:29 +0000 (15:18 +0000)] 
Change the name of a file-scope constant array in carray.c so that it does
not conflict with other variables names in other files when carray.c is
amalgamated.  This is down to resolve a harmless compiler warning.

FossilOrigin-Name: 5afd815ada94d55c9c56efe339235d23ffbf1fb64511a5e460927a2c8deaaaf0

3 weeks agoUpdate the main README.md file to use the robot-safe /rchvdwnld page on the
drh [Fri, 31 Oct 2025 13:44:51 +0000 (13:44 +0000)] 
Update the main README.md file to use the robot-safe /rchvdwnld page on the
server for downloads.

FossilOrigin-Name: c1aa52361b8ede611f64b96f2394174389ce531b1d86b9cfec91d3b03c94f6ea

3 weeks agoFix the output of ".dump" in the CLI so that the sqlite_sequence table
drh [Fri, 31 Oct 2025 11:23:44 +0000 (11:23 +0000)] 
Fix the output of ".dump" in the CLI so that the sqlite_sequence table
is created using correct syntax.

FossilOrigin-Name: 4b9f2e1d4485ad3baf9285aa09b468469be929b18cb308f19af471d7aac66076

3 weeks agoNew assert() statements to help out static analyzers.
drh [Thu, 30 Oct 2025 22:10:41 +0000 (22:10 +0000)] 
New assert() statements to help out static analyzers.

FossilOrigin-Name: ba0c4bf072ed721a507855d68bde7f1c388396a19b69814b6e257b934f8b0fd9

3 weeks agoAdd SQLITE_OMIT_WAL checks around some functions to avoid defining unused statics...
stephan [Thu, 30 Oct 2025 21:11:01 +0000 (21:11 +0000)] 
Add SQLITE_OMIT_WAL checks around some functions to avoid defining unused statics in such builds. Fixes OMIT_WAL builds on msys2 and passes tool/omittest-msvc.tcl.

FossilOrigin-Name: f9b89535dc279acf617f274b6edbad0610fc8e5c76d402fc8b5b9dc656e95caa

3 weeks agoSimplify the EXPORTED_FUNCTIONS lists to use the preprocessor instead of per-list...
stephan [Thu, 30 Oct 2025 20:18:20 +0000 (20:18 +0000)] 
Simplify the EXPORTED_FUNCTIONS lists to use the preprocessor instead of per-list shell commands. (Unrelated) Remove part of the post-compilation JS filtering which breaks with emsdk 4.0.16+, which means the .js files are about 57kb bigger than they really ought to be.

FossilOrigin-Name: 936990cf067a5ebb34f7f662fc2d23d468c50f179afafe47fe0d2ed775f5ef74

3 weeks agoMerge trunk into the wasm-post-3.51 branch.
stephan [Thu, 30 Oct 2025 19:32:46 +0000 (19:32 +0000)] 
Merge trunk into the wasm-post-3.51 branch.

FossilOrigin-Name: dda1735716cf1006b2a5d1d8eb29df3039047be38dcc04249c4ce50c77084fac

3 weeks agoFurther improvements the ".dump" command to handle corner cases.
drh [Thu, 30 Oct 2025 18:52:48 +0000 (18:52 +0000)] 
Further improvements the ".dump" command to handle corner cases.

FossilOrigin-Name: cd0c77934ff32050380c2143bba7d4e6c07d5f08187cb5d5e8e7602854d1cda8

3 weeks agoAnother (void), as per [dd6edfc09434].
stephan [Thu, 30 Oct 2025 18:48:19 +0000 (18:48 +0000)] 
Another (void), as per [dd6edfc09434].

FossilOrigin-Name: 7a822cfd388d7ac5765cffd5bd3d6e5b31abc6a360f9d5e27c0223f83a84237e

3 weeks agoAdd (void) to two places for the sake of SQLITE_OMIT_WAL builds. Why these do not...
stephan [Thu, 30 Oct 2025 18:46:03 +0000 (18:46 +0000)] 
Add (void) to two places for the sake of SQLITE_OMIT_WAL builds. Why these do not complain on tests in this tree, but do on a downstream tree (same machine, same compiler), is a mystery.

FossilOrigin-Name: dd6edfc09434b0d170d5ab462053497043016a4ec6b91a46db565ccf646aee20

3 weeks agowasm: re-add SQLITE_OMIT_WAL to the c-pp-lite build flags.
stephan [Thu, 30 Oct 2025 18:39:28 +0000 (18:39 +0000)] 
wasm: re-add SQLITE_OMIT_WAL to the c-pp-lite build flags.

FossilOrigin-Name: 617f8ac40e073c3fdc1144639b78617ad61113f4e873fc20c99399d2b60e1ceb

3 weeks agoMacro tweaks to get SQLITE_OMIT_WAL building. Remove some nearby stray EOL whitespace.
stephan [Thu, 30 Oct 2025 18:38:14 +0000 (18:38 +0000)] 
Macro tweaks to get SQLITE_OMIT_WAL building. Remove some nearby stray EOL whitespace.

FossilOrigin-Name: c31a944680f18a799c763238dbb0561f8b039905ce442533258905219b33b743

3 weeks agoFix a typo and improve wording in README.md
drh [Thu, 30 Oct 2025 18:33:58 +0000 (18:33 +0000)] 
Fix a typo and improve wording in README.md

FossilOrigin-Name: 34a662ce24930a5e1a142f0b3ce427c4b1b61a306537820dc5e72996f8080d86

3 weeks agoUpdates to the tool/warnings.sh script for better compiler warnings.
drh [Thu, 30 Oct 2025 18:32:32 +0000 (18:32 +0000)] 
Updates to the tool/warnings.sh script for better compiler warnings.

FossilOrigin-Name: c9c64892c76cb9f2efb58428b349d43b075e7595b6a391d4818a7e9fb68b85fd

3 weeks agoFix a harmless compiler warning associated with flexarrays.
drh [Thu, 30 Oct 2025 17:23:17 +0000 (17:23 +0000)] 
Fix a harmless compiler warning associated with flexarrays.

FossilOrigin-Name: f02cdf1d3ea8da8a09d115721845afeff5d6169dd7532ab486d3ed6db69cde2d

3 weeks agoUpdates to the main README.md file.
drh [Thu, 30 Oct 2025 15:43:57 +0000 (15:43 +0000)] 
Updates to the main README.md file.

FossilOrigin-Name: ab10c4cd9f9314bc62aa310ee796f63c82710c35659debe347e8ebcbf34d9e86

3 weeks agoFix the CLI ".dump" command so that it does not make duplicate
drh [Thu, 30 Oct 2025 11:39:49 +0000 (11:39 +0000)] 
Fix the CLI ".dump" command so that it does not make duplicate
sqlite_sequence table entries as described in
[forum:/forumpost/b1674b56ad|forum thread b1674b56ad].

FossilOrigin-Name: c833f26a6780f919551e50c67d308e96293cec8481899354411d805617481f24

3 weeks agoPrevent a harmless signed integer overflow in the CLI if the argument
drh [Thu, 30 Oct 2025 10:36:10 +0000 (10:36 +0000)] 
Prevent a harmless signed integer overflow in the CLI if the argument
to the --skip option of the ".inport" command is -9223372036854775808.

FossilOrigin-Name: 247277d9373cb2614a1bc4c1e08b904315e5e8c0c2a7fbe9c2ac651481601642

4 weeks agoA experiment addressing the embedded-NUL behavior of sqlite3_colum/value_text() in...
stephan [Thu, 30 Oct 2025 02:21:38 +0000 (02:21 +0000)] 
A experiment addressing the embedded-NUL behavior of sqlite3_colum/value_text() in the JS bindings, as discussed in [forum:d77281aec2df9ada|forum post d77281aec2]. This is an experiment only. It works, in that existing tests do not see the difference, but it has implicications which require careful consideration before deploying.

FossilOrigin-Name: d0e803b90344ee972e4b3fb30b77e283599dc4d5c6a3335ce9fea653a1b3f6f0

4 weeks agoRemove an OMIT_WAL from the wasm build because it breaks with the current amalgamatio...
stephan [Thu, 30 Oct 2025 01:43:30 +0000 (01:43 +0000)] 
Remove an OMIT_WAL from the wasm build because it breaks with the current amalgamation (and isn't strictly needed here anyway).

FossilOrigin-Name: a7be7d155aa6f02075f939ab6d26cfdfe2d0832b59da39c8bf4a74fc4845bd05

4 weeks agoFix a logic error introduced by [cea8bf79e18d55a8] which caused
drh [Wed, 29 Oct 2025 20:47:01 +0000 (20:47 +0000)] 
Fix a logic error introduced by [cea8bf79e18d55a8] which caused
"0 OR 2" to be evaluated as "2" instead of as "1".  Problem reported at
[forum:/forumpost/d5f32040c5d50d2d|forum post d5f32040c].

FossilOrigin-Name: 095cc4f22e63c98cbb2acabdbcaf02e59e67ec6d3cc219b5f42a714e3d53a264

4 weeks agoStriving for better names for fields in the spec structure.
drh [Wed, 29 Oct 2025 13:03:35 +0000 (13:03 +0000)] 
Striving for better names for fields in the spec structure.

FossilOrigin-Name: 9644e2a8db4d97a85aa7660a1536894ab971abca52fb32f946c01de30eb40de3