]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
8 weeks agoHandle a special case of a corrupt changeset in sqlite3changegroup_add().
dan [Tue, 14 Apr 2026 20:18:54 +0000 (20:18 +0000)] 
Handle a special case of a corrupt changeset in sqlite3changegroup_add().

FossilOrigin-Name: eba625f917935437e3f366197df1c6717c7120ce0418a0cbac1d2024b2235091

8 weeks agoHave the session module detect some corrupt changesets earlier. corrupt-changeset_fix
dan [Tue, 14 Apr 2026 20:17:41 +0000 (20:17 +0000)] 
Have the session module detect some corrupt changesets earlier.

FossilOrigin-Name: 0de91ff0d798cff21289d893cc441b89fc37b051d5cdf611d92d3ae2bc41cdf2

8 weeks agoMerge trunk enhancements and fixes into the analyze-sql-func branch.
drh [Tue, 14 Apr 2026 20:17:03 +0000 (20:17 +0000)] 
Merge trunk enhancements and fixes into the analyze-sql-func branch.

FossilOrigin-Name: bb4a9beac87796b4186efce416bf03f840041bc588be6702c5a444d643df684e

8 weeks agoVarious minor tweaks and refinements to the analyze() function.
drh [Tue, 14 Apr 2026 20:07:29 +0000 (20:07 +0000)] 
Various minor tweaks and refinements to the analyze() function.

FossilOrigin-Name: 48d94e72eaec443011dd1f7a7264e5222c05bb515c84deaf20ed4195b74d45ff

8 weeks agoHandle a special case of a corrupt changeset in sqlite3changegroup_add().
dan [Tue, 14 Apr 2026 20:02:49 +0000 (20:02 +0000)] 
Handle a special case of a corrupt changeset in sqlite3changegroup_add().

FossilOrigin-Name: 49b3bac482c831f503c7f90c35959e7ea731950e991baba86b2ab95987d2539b

8 weeks agoImplementation of the analyze() SQL function is now mostly complete.
drh [Tue, 14 Apr 2026 19:36:33 +0000 (19:36 +0000)] 
Implementation of the analyze() SQL function is now mostly complete.

FossilOrigin-Name: 1ca0386ab2df0d88ed52941469d459114f483ecf6b7e4691bcc32e909636cb7d

8 weeks agoMuch, but not all, of the report generation is added. An incremental check-in.
drh [Tue, 14 Apr 2026 19:02:40 +0000 (19:02 +0000)] 
Much, but not all, of the report generation is added.  An incremental check-in.

FossilOrigin-Name: 289fefc3edfeecb06dc11897d3ff24763fd9e25db44e369eeec29b9ed3de5ccc

8 weeks agoEnsure c-tests use the locally built sqlite3.h file, not the system copy. c-tests
dan [Tue, 14 Apr 2026 18:12:09 +0000 (18:12 +0000)] 
Ensure c-tests use the locally built sqlite3.h file, not the system copy.

FossilOrigin-Name: 2d81ee65ffbed30fd98bdda96dc79c1929c73f806cea3c9e4c244b618980b202

8 weeks agoIn RBU vacuum commands, do as SQLite does and ignore any trailing SQL statements...
dan [Tue, 14 Apr 2026 18:08:30 +0000 (18:08 +0000)] 
In RBU vacuum commands, do as SQLite does and ignore any trailing SQL statements in the sql column of the sqlite_schema table.

FossilOrigin-Name: cf7dad1b105ab35cd7180efec735b7cbeaf42b8d53dfec5582b63cd121c3425c

8 weeks agoCheck-in [495e4851d4296b49] breaks the build for Windows. Fixed here.
drh [Tue, 14 Apr 2026 18:06:41 +0000 (18:06 +0000)] 
Check-in [495e4851d4296b49] breaks the build for Windows.  Fixed here.

FossilOrigin-Name: 5b004348c3ec15a02dd657b3619502b6f8ba1c6f46918108b3de9534622076a0

8 weeks agoFurther fixes and clarifications. Now ready to start generating the
drh [Tue, 14 Apr 2026 13:18:04 +0000 (13:18 +0000)] 
Further fixes and clarifications.  Now ready to start generating the
actual report.

FossilOrigin-Name: 037a0e586c4aa81a53aea164080e739f9d5b87197d04fdd68feb0ab5eb01020b

8 weeks agoFurther improvements to error messages and robustness.
drh [Tue, 14 Apr 2026 12:46:12 +0000 (12:46 +0000)] 
Further improvements to error messages and robustness.

FossilOrigin-Name: 45917c1124310fd77daca47865959d3261154f7b0c6771d3689e6d345a3fd153

8 weeks agoImproved error messages and robustness.
drh [Tue, 14 Apr 2026 12:23:11 +0000 (12:23 +0000)] 
Improved error messages and robustness.

FossilOrigin-Name: c09ed9eb914bde96cdc5157e29b6384ce488262a2dadc7321c44941a1d08a187

8 weeks agoInitial prototype implementation of a new run-time loadable SQL function
drh [Tue, 14 Apr 2026 11:25:22 +0000 (11:25 +0000)] 
Initial prototype implementation of a new run-time loadable SQL function
to do approximately the same work as sqlite3_analyze.

FossilOrigin-Name: 03934b5a6c88a97117a4743a68ee36d30bcbdcebcf11342d30ac42daf9f10874

8 weeks agoMinor README typo fix reported off-list by BrickViking.
stephan [Tue, 14 Apr 2026 02:09:43 +0000 (02:09 +0000)] 
Minor README typo fix reported off-list by BrickViking.

FossilOrigin-Name: aa3432af90b2b9ab0b92f56a8e9c926930b9859e986500bd00d5600c1dd036bf

8 weeks agoPass the ICU-related build flags through the 'tclextension' target, not just 'tclexte... tclextension-icu
stephan [Tue, 14 Apr 2026 00:48:34 +0000 (00:48 +0000)] 
Pass the ICU-related build flags through the 'tclextension' target, not just 'tclextension-install'.

FossilOrigin-Name: 499c89f8745fac7ee93ff79a340abd69b4f06b07983b4d50057fa5d0893b2f3b

8 weeks agoTweak 'make tclextension' to pass on any --with-icu-config build flags so that it...
stephan [Tue, 14 Apr 2026 00:11:23 +0000 (00:11 +0000)] 
Tweak 'make tclextension' to pass on any --with-icu-config build flags so that it can link with the various ICU libs. This works for me but needs testing on a wider selection of systems before being moved to trunk. Intended to resolve [forum:92a88de4b88929fe|forum post 92a88de4b88929fe].

FossilOrigin-Name: a8c022d7946e8a29114400c1321f36f03979a2277253f1dcd769d8f36e944ece

8 weeks agoFix typos and inaccuracies in comments. No changes to code.
drh [Mon, 13 Apr 2026 17:33:34 +0000 (17:33 +0000)] 
Fix typos and inaccuracies in comments.  No changes to code.

FossilOrigin-Name: a6c2d7ce84f4f5f8a82cc566a27f98f5418f251e87f1f264ae57935fb10399f7

2 months ago".prompt" command improvements in the CLI: Guard against mistakenly saying
drh [Mon, 13 Apr 2026 12:22:16 +0000 (12:22 +0000)] 
".prompt" command improvements in the CLI:  Guard against mistakenly saying
".prompt show" without the "--" before "show".  Add the --hard-reset option
to .prompt to make it more easily testable.

FossilOrigin-Name: 495e4851d4296b49a37b963edd8410314de1510b2ae0b9dbe9dc0307c466c3b5

2 months agoImprovements to the prompt_filename() function in the CLI so that it finds
drh [Mon, 13 Apr 2026 11:34:15 +0000 (11:34 +0000)] 
Improvements to the prompt_filename() function in the CLI so that it finds
the database filename even if the connection is not yet fully open.

FossilOrigin-Name: efb3e808a0281014512a812920d526a4909467e925ea000956606318bb6f2e65

2 months agoUpdate test/c/snprintf1.c to test the result of the sqlite3_snprintf() call. Also...
dan [Mon, 13 Apr 2026 11:20:51 +0000 (11:20 +0000)] 
Update test/c/snprintf1.c to test the result of the sqlite3_snprintf() call. Also add an SQLITE_OMIT_AUTOINIT configuration and update C tests to account for it.

FossilOrigin-Name: 30b597d797e737a2907b755706a37d63c37c6a06c4e037098a6d9c482bcde887

2 months agoLatest upstream jimsh0.c.
stephan [Mon, 13 Apr 2026 10:56:14 +0000 (10:56 +0000)] 
Latest upstream jimsh0.c.

FossilOrigin-Name: 414ae4dd65182ce571a6abb1a1a2ba2c169b204156f4f8923c42f64805a3ef9f

2 months agoDoc typo fix which broke the docsrc build, reported by BrickViking.
stephan [Sun, 12 Apr 2026 17:47:57 +0000 (17:47 +0000)] 
Doc typo fix which broke the docsrc build, reported by BrickViking.

FossilOrigin-Name: 3c212b5d85338f90a5f1a2d1484e54c0bf699eedef19a16f4c0de76a76dd9d07

2 months agoBug fix in the revised ".prompt" command of the CLI, with test cases.
drh [Sun, 12 Apr 2026 10:46:35 +0000 (10:46 +0000)] 
Bug fix in the revised ".prompt" command of the CLI, with test cases.

FossilOrigin-Name: 7583385593354f90a9818d1820543841109f253dffcec5ca5ed7629336e29fac

2 months agoFix a typo which causes .headers to not show up in the shell's .help.
stephan [Sun, 12 Apr 2026 05:41:28 +0000 (05:41 +0000)] 
Fix a typo which causes .headers to not show up in the shell's .help.

FossilOrigin-Name: d379b14a48d331933240fb99ab43c3cc978638d7ad0a8d5975bb211a72eaef2b

2 months agoChange the prompt escape design yet again, to use / as the escape character,
drh [Sat, 11 Apr 2026 23:58:15 +0000 (23:58 +0000)] 
Change the prompt escape design yet again, to use / as the escape character,
since % and just about every other punctuation character is special to
cmd.exe, batch files, and nmake, on Windows.

FossilOrigin-Name: 79a8d3edf8207d72f0c4650272ee239a1c7783a07f907fbf0cf5a7ad99b27a2a

2 months agoCLI prompt design change: The escape character is changed from \ to
drh [Sat, 11 Apr 2026 22:58:25 +0000 (22:58 +0000)] 
CLI prompt design change:  The escape character is changed from \ to
%#37;.  This avoids lots of quoting problems when trying to specify prompt
strings in various programming languages and shells.

FossilOrigin-Name: e7e6ecc45dfe1a163d259be26877bd7e528ce154e73b3ca8ab7edc5aa94d2d02

2 months agoTwo C-preprocessor macros SQLITE_PS1 and SQLITE_PS2 can be set to override
drh [Sat, 11 Apr 2026 22:18:05 +0000 (22:18 +0000)] 
Two C-preprocessor macros SQLITE_PS1 and SQLITE_PS2 can be set to override
the default prompt strings in the CLI.

FossilOrigin-Name: 6fa0216a19c2f165110121227d3f9b9119369f8cd61f9c6d13eaa1ae42a60d60

2 months agoMake sqlite3_incomplete() available to extensions.
drh [Sat, 11 Apr 2026 20:53:53 +0000 (20:53 +0000)] 
Make sqlite3_incomplete() available to extensions.

FossilOrigin-Name: 50d81300ba0f021f388aab1e86e97d688ed762cee408c610cf70977f7b488803

2 months agoWhen fiddle terminal mode is enabled, add a link to the jquery.terminal project in...
stephan [Sat, 11 Apr 2026 20:43:49 +0000 (20:43 +0000)] 
When fiddle terminal mode is enabled, add a link to the jquery.terminal project in the About box.

FossilOrigin-Name: d64f0c8845104008d6c251f9a1406c6ff717a916c13b64014aa1d154501d5fab

2 months agoFix harmless UB in sqlite3_incomplete().
drh [Sat, 11 Apr 2026 20:41:54 +0000 (20:41 +0000)] 
Fix harmless UB in sqlite3_incomplete().

FossilOrigin-Name: 8dfdff559faefd943b97827dc3c7100fc4469e2f8353a264fb322e23af5cb669

2 months agofiddle: disable jquery.terminal's pre-processing of user input, as discussed in ...
stephan [Sat, 11 Apr 2026 20:31:03 +0000 (20:31 +0000)] 
fiddle: disable jquery.terminal's pre-processing of user input, as discussed in [forum:c6665017c0dbba1f|forum post c6665017c0dbba1f], with many thanks to the jquery.terminal team for this workaround.

FossilOrigin-Name: ea7e121ab2a7b2fee5372ca12a2a53c7e98ffa1b49d85944f7ce4a7251a777c8

2 months agoImprovements to the interactive prompt in the CLI:
drh [Sat, 11 Apr 2026 18:38:54 +0000 (18:38 +0000)] 
Improvements to the interactive prompt in the CLI:
(1) CLI honors SQLITE_PS1 and SQLITE_PS2 envvars as prompt strings,
(2) CLI prompt strings expand various backslash escapes,
(3) No arbitrary length limits on CLI prompt strings,
(4) New default prompt shows the database filename using the \f
escape,
(5) SQLite core adds the sqlite3_incomplate() API, used by
the \H escape in prompt string rendering,
(6) Enhancements to the ".prompt" dot-command.

FossilOrigin-Name: 55af98054e073d6eee3e85fd7564c83eca935ae205da68f5e8f1b561e7f08c00

2 months agoFixes for running C tests on windows.
dan [Sat, 11 Apr 2026 18:05:49 +0000 (18:05 +0000)] 
Fixes for running C tests on windows.

FossilOrigin-Name: 1fcacdc41ab1bb66a628acdac29412e66decdc2578dd9d084baaffb74679f984

2 months agoFix harmless compiler warnings. cli-prompt
drh [Sat, 11 Apr 2026 17:47:31 +0000 (17:47 +0000)] 
Fix harmless compiler warnings.

FossilOrigin-Name: 3b4cc8d3beab8c910dd954bf8093f7ab499e4690b9cf882f981c4415dd7a7540

2 months agoEnhance testrunner.tcl to run individual tests written in C from the test/c/ directory.
dan [Sat, 11 Apr 2026 17:03:27 +0000 (17:03 +0000)] 
Enhance testrunner.tcl to run individual tests written in C from the test/c/ directory.

FossilOrigin-Name: 6f140f76f47aadb10d3f35358503d91adb43e0c1802326f6e599effe1b08e7aa

2 months agoInitial test cases for the CLI prompt enhancements.
drh [Sat, 11 Apr 2026 16:12:12 +0000 (16:12 +0000)] 
Initial test cases for the CLI prompt enhancements.

FossilOrigin-Name: b7ecc84735d41e9cdb498020b86d8219efa18ca5b40aef1031a14809f1ac2d38

2 months agoAdd --reset, --show, and -- options to the ".prompt" command of the CLI.
drh [Sat, 11 Apr 2026 15:45:45 +0000 (15:45 +0000)] 
Add --reset, --show, and -- options to the ".prompt" command of the CLI.

FossilOrigin-Name: 8075576ba2324a458440bae398baecc7872b6528574b7fe6681a3a30b62d58ef

2 months agoEnhancements to shell_prompt_test() for better testing. Enhance the
drh [Sat, 11 Apr 2026 14:11:56 +0000 (14:11 +0000)] 
Enhancements to shell_prompt_test() for better testing.  Enhance the
".open" command so that it does ~/ expansion on filenames.

FossilOrigin-Name: ec6830fe60b73bc606d3c2a5d407a39db53f6dadee760829410abfa1df46389e

2 months agoRemove arbitrary limits on the length of CLI prompts. Use environment
drh [Sat, 11 Apr 2026 12:35:53 +0000 (12:35 +0000)] 
Remove arbitrary limits on the length of CLI prompts.  Use environment
variables SQLITE_PS1 and SQLITE_PS2 (if they exist) as the default
CLI prompts.

FossilOrigin-Name: a46ceaeab968d8f376c5a225c23c0be8619fed4511b7e567baf3a8d7736c19d1

2 months agoFix the \B escape for prompts so that it uses wcwidth() instead of
drh [Sat, 11 Apr 2026 11:24:09 +0000 (11:24 +0000)] 
Fix the \B escape for prompts so that it uses wcwidth() instead of
strlen() to compute spacing.

FossilOrigin-Name: c6ff4f701d9cf963cf2472ed72ad4e201227560dde2ba8d48602af2e49170e89

2 months agoEnsure that sqlite3-opfs-async-proxy.js is copied into the fiddle target dirs.
stephan [Fri, 10 Apr 2026 23:31:29 +0000 (23:31 +0000)] 
Ensure that sqlite3-opfs-async-proxy.js is copied into the fiddle target dirs.

FossilOrigin-Name: 149200861e4690dab5f2e690b62f355b13a8370dccaab5546caa6842b4ff963a

2 months agoEnsure that sqlite3-opfs-async-proxy.js is copied into the fiddle target dirs.
stephan [Fri, 10 Apr 2026 23:25:57 +0000 (23:25 +0000)] 
Ensure that sqlite3-opfs-async-proxy.js is copied into the fiddle target dirs.

FossilOrigin-Name: 7c9998de1b839cfbe12c4328ac5176f5fae981e139c5f8888b100752f5e4756b

2 months agoA protype of .prompt support in fiddle but its utility there is in doubt because...
stephan [Fri, 10 Apr 2026 23:05:41 +0000 (23:05 +0000)] 
A protype of .prompt support in fiddle but its utility there is in doubt because .open does not work there, so there's very little dynamic info worth showing in a prompt. Also, ANSI colorization can't work there, nor can we colorize the prompts using HTML because of limitations in jquery.terminal.

FossilOrigin-Name: 3b17500dc6338df23d1ed0572cd71593da5a9b048731f73242e27b9a76553a27

2 months agoExpose the main /fiddle object to the browser dev console as globalThis.fiddle for...
stephan [Fri, 10 Apr 2026 21:58:13 +0000 (21:58 +0000)] 
Expose the main /fiddle object to the browser dev console as globalThis.fiddle for experimenting with a dynamic prompt.

FossilOrigin-Name: 8574e5c9da3b167384faafb8ec0d01953578676cc42536bb6f7d0e73408ced36

2 months agoFix minor issues on Windows.
drh [Fri, 10 Apr 2026 20:44:38 +0000 (20:44 +0000)] 
Fix minor issues on Windows.

FossilOrigin-Name: 48e40d3f6a193d6c4d1b8deda36415a690602dbe33d49984a9d92c6d40d8da5c

2 months agoFix prompt for in-memory databases. Fix the continuation mechanism so that
drh [Fri, 10 Apr 2026 20:29:35 +0000 (20:29 +0000)] 
Fix prompt for in-memory databases.  Fix the continuation mechanism so that
it looks at all accumulated lines, not just the most recent line.

FossilOrigin-Name: 166894725569cafa96c434aa14db0428db6791a8296fcc2990bec4ec819fd876

2 months agoReplace the former dynamic-continuation prompt logic with backslash-escape
drh [Fri, 10 Apr 2026 20:14:16 +0000 (20:14 +0000)] 
Replace the former dynamic-continuation prompt logic with backslash-escape
prompt expansion, include some expansions that serve the same role as the
old dynamic-continuation prompts.  This allows greater user
configurability.

FossilOrigin-Name: 052631202e4dd930d93434b7003e73b23557934421ace5d2f382f041638d5518

2 months agoAdd the \B escape for CLI prompts. Change the default prompts to cli-prompt-redo
drh [Fri, 10 Apr 2026 20:06:34 +0000 (20:06 +0000)] 
Add the \B escape for CLI prompts.  Change the default prompts to
use \f, \H, and \B.

FossilOrigin-Name: 354325b6f396bda38bbb82e7d38aa50d3d6441e1ebb9b578aed8e0bcf62f9911

2 months agoThe \H escape on a prompt string fills in with the characters needed
drh [Fri, 10 Apr 2026 19:33:15 +0000 (19:33 +0000)] 
The \H escape on a prompt string fills in with the characters needed
to make the input "complete".  Add the shell_expand_prompt() SQL function
for testing purposes.

FossilOrigin-Name: 6aafb76c74b73aafef74250dae9c8cbe73226c0efb606e8f80ea761b3293cf9d

2 months agoMerge trunk fixes and enhancements into the cli-prompt-redo branch
drh [Fri, 10 Apr 2026 18:53:13 +0000 (18:53 +0000)] 
Merge trunk fixes and enhancements into the cli-prompt-redo branch

FossilOrigin-Name: f3354ebf51e684ef680986bef9b606f63786c254f1c8774bcaf7a7f3d0d37056

2 months agoImprove defenses in QRF against trying to run the same prepared statement
drh [Fri, 10 Apr 2026 18:14:33 +0000 (18:14 +0000)] 
Improve defenses in QRF against trying to run the same prepared statement
twice, concurrently.

FossilOrigin-Name: 6ab6f622be3e1ad93166d139b5fccf9628c86d1c14c6dfb4464cb8cf52c94785

2 months agoAPI doc correction for sqlite3_js_retry_busy(). No code changes.
stephan [Fri, 10 Apr 2026 17:55:31 +0000 (17:55 +0000)] 
API doc correction for sqlite3_js_retry_busy(). No code changes.

FossilOrigin-Name: 749c537812b907164b7e7ad1fddc1aee8106c59875d2686fe83d602cd0e07611

2 months agoUse sqlite3_malloc() for memory allocation inside of sqlite3_str_vappendf(),
drh [Fri, 10 Apr 2026 17:11:16 +0000 (17:11 +0000)] 
Use sqlite3_malloc() for memory allocation inside of sqlite3_str_vappendf(),
since it invokes sqlite3_initialize(), whereas sqlite3DbMallocRaw() does
not.

FossilOrigin-Name: a2f84c56316ea746c134aa6e5a2b46021f67c6642161beae8122f73daeddda92

2 months agoFix the printf() optimization added at [ccb6b6c4ac21742d] so that
drh [Fri, 10 Apr 2026 15:55:08 +0000 (15:55 +0000)] 
Fix the printf() optimization added at [ccb6b6c4ac21742d] so that
sqlite3_snprintf() does not incorrectly truncate floating-point
conversions that are close to filling the buffer, as reported in
[forum:/forumpost/2026-04-10T13:48:12z|forum post 2026-04-10T13:48:12z].

FossilOrigin-Name: a50521a16068e555aa08ee25726b081bb4cd33e3ea388b82dcbaa691c2576284

2 months agoPrototype sqlite3_incomplete() - a variant of sqlite3_complete() that returns
drh [Fri, 10 Apr 2026 13:43:48 +0000 (13:43 +0000)] 
Prototype sqlite3_incomplete() - a variant of sqlite3_complete() that returns
additional information about what is needed to complete the statement.

FossilOrigin-Name: a698fbfb8bb256ee0d9802c01562c11492ca2800a45360b268ac6cf397a7fad7

2 months agoAttempt to work around a bug in legacy Microsoft compilers.
drh [Fri, 10 Apr 2026 10:48:04 +0000 (10:48 +0000)] 
Attempt to work around a bug in legacy Microsoft compilers.
[forum:/forumpost/2026-04-10T06:33:11z|Forum post 2026-04-10T06:33:11z].

FossilOrigin-Name: 661e1413625f55c37e2cd4d785074576d355e125231bbc1dd0a511a2b02c8e3b

2 months agoChange a variable name to try to quash a compiler warning reported
drh [Fri, 10 Apr 2026 10:27:04 +0000 (10:27 +0000)] 
Change a variable name to try to quash a compiler warning reported
by [forum:/forumpost/2026-04-10T09:33:27z|forum post 2026-04-10T09:33:27z].
This is just a guess, as we have no way of reproducing the warning,
and hence no way of knowing if it fixes the problem.

FossilOrigin-Name: e065c019d29d4e82a21a89984b86c1811c2b1bdd4663c792857cf89ea2cd91c3

2 months agoCorrect shell result code propagation regression introduced in [ff084ae341eab5c4...
stephan [Fri, 10 Apr 2026 08:36:55 +0000 (08:36 +0000)] 
Correct shell result code propagation regression introduced in [ff084ae341eab5c4] and reported in [forum:6fa3247e9724844c|forum post 6fa3247e9724844c].

FossilOrigin-Name: a76682a3b1d6c5e8ca16caf8afbe545c9ae39849fe21ba68d4cddae683a409b5

2 months agoImprovements to the way \x works so that it can be used to change
drh [Fri, 10 Apr 2026 00:55:40 +0000 (00:55 +0000)] 
Improvements to the way \x works so that it can be used to change
the prompt color.  This really messes with linenoise, though.

FossilOrigin-Name: bbee56f970ade40734c8a278f46d8a268b305fe349c3739c977fa9141d2c3b6a

2 months agoA prototype of code that shows how to expand backslash escapes in the
drh [Thu, 9 Apr 2026 23:37:48 +0000 (23:37 +0000)] 
A prototype of code that shows how to expand backslash escapes in the
CLI prompt.

FossilOrigin-Name: 9cf28959671920b4909521bb1db6f0cbbc85448fbf3594c43b4000505b4e055b

2 months agoStore the prompts as part of the ShellState object, not as global variables.
drh [Thu, 9 Apr 2026 22:14:58 +0000 (22:14 +0000)] 
Store the prompts as part of the ShellState object, not as global variables.

FossilOrigin-Name: 39f6c5a8a7d91e03f89b13496e333b9500977a2cbcc0c27ba14dfb87dc81e678

2 months agoStrip out the legacy dynamic prompt generation. It will go back in as I
drh [Thu, 9 Apr 2026 20:21:25 +0000 (20:21 +0000)] 
Strip out the legacy dynamic prompt generation.  It will go back in as I
add the user-defined prompt escapes.

FossilOrigin-Name: ab08b7a8ef518f96a549a41fe8ff11776abe5e83153c5f8d5d58694ecc476389

2 months agoClean-ups in prompt generation in the CLI.
drh [Thu, 9 Apr 2026 18:51:09 +0000 (18:51 +0000)] 
Clean-ups in prompt generation in the CLI.

FossilOrigin-Name: e2c9d4c6b731ea9afbb9cb22f86a3db3670ca67968f15891dc46ae1fc9ba34dc

2 months agoUse O_TMPFILE (on systems that support it) to security create a temporary
drh [Thu, 9 Apr 2026 16:16:39 +0000 (16:16 +0000)] 
Use O_TMPFILE (on systems that support it) to security create a temporary
file that is inaccessible to any other process.

FossilOrigin-Name: 4609ba34b8b4a6df4cd28e39d19f96e59580db0e838f1aa605cc00ea003c2a85

2 months agoUpdates to testrunner.tcl: Shorten the prefix on created subdirectories from
drh [Thu, 9 Apr 2026 16:08:29 +0000 (16:08 +0000)] 
Updates to testrunner.tcl:  Shorten the prefix on created subdirectories from
"testrunner_bld_" to just "testrun_".  Do not append ".exe" to the names of
created subdirectories.  Add the "clean" command to recursively remove all
subdirectories and files created by a test run.

FossilOrigin-Name: 450c7edf1247024db4b66f38bf9561c5c6b0c4175c4df8de17019aea6cbde5cf

2 months agoVersion number to 3.54.0 to begin the next development cycle.
drh [Thu, 9 Apr 2026 16:03:56 +0000 (16:03 +0000)] 
Version number to 3.54.0 to begin the next development cycle.

FossilOrigin-Name: 4c2a5c9bb40c63bb9d0f633f78d132bdd69b9d755d4e6d5e3cb534e63b383a4e

2 months agoMake use of O_TMPFILE for more secure temporary file creation, when that o_tmpfile
drh [Thu, 9 Apr 2026 14:12:09 +0000 (14:12 +0000)] 
Make use of O_TMPFILE for more secure temporary file creation, when that
option is available.

FossilOrigin-Name: 094fc6da0768ea0ec4b4d3dc020cd6025aab341550d6cea6be7487ac570f9171

2 months agoMerge the 3.53.0 release changes into the cli-prompt branch
drh [Thu, 9 Apr 2026 13:21:09 +0000 (13:21 +0000)] 
Merge the 3.53.0 release changes into the cli-prompt branch

FossilOrigin-Name: 8fd48b9fe47d47b3eca31d187f1d98174c257daea220ae7be18e4c82764d9d5c

2 months agoVersion 3.53.0 major-release version-3.53.0
drh [Thu, 9 Apr 2026 11:41:38 +0000 (11:41 +0000)] 
Version 3.53.0

FossilOrigin-Name: 4525003a53a7fc63ca75c59b22c79608659ca12f0131f52c18637f829977f20b

2 months agoFix some buffer overreads that might occur in the session module when handling corrup...
dan [Thu, 9 Apr 2026 10:39:32 +0000 (10:39 +0000)] 
Fix some buffer overreads that might occur in the session module when handling corrupt changesets.

FossilOrigin-Name: cda5dd9bcbef2135bb9855139a11d0e22a092f9498d82eb18e7d4401264b6eb8

2 months agoWhen generating make.sh for testrunner, correctly quote the value of any options...
dan [Thu, 9 Apr 2026 06:38:31 +0000 (06:38 +0000)] 
When generating make.sh for testrunner, correctly quote the value of any options passed via environment variable OPTS.

FossilOrigin-Name: 0837933b49f5fc5590f2052808bc305aceccafbf5db65aae250c594ce48d4d32

2 months agoFix some buffer overreads that might occur in the session module when handling corrup... session-fixes
dan [Thu, 9 Apr 2026 05:33:19 +0000 (05:33 +0000)] 
Fix some buffer overreads that might occur in the session module when handling corrupt changesets.

FossilOrigin-Name: 8fcf92e15d87487703afc1129f3a89a8d4d72cb30d30a1a9151a5596473069bd

2 months agoFix a buffer overflow bug in a recent check-in, reported by unsolicted
drh [Wed, 8 Apr 2026 17:00:33 +0000 (17:00 +0000)] 
Fix a buffer overflow bug in a recent check-in, reported by unsolicted
email from OpenAI/Codex.

FossilOrigin-Name: be891a137af15897691250324e4d3d9c96f0c5fb414bca27d0c3bfdd3012a8a2

2 months agoFix a few doc typos and inconsistencies. No code changes.
stephan [Tue, 7 Apr 2026 15:54:35 +0000 (15:54 +0000)] 
Fix a few doc typos and inconsistencies. No code changes.

FossilOrigin-Name: 025abd4cf409fb9938e116289f23dc5bcd6d14feb46066221e691b146ee9b354

2 months agoFix incorrect datatype on the auto_ext_leak_tester() function in the CLI.
drh [Tue, 7 Apr 2026 12:51:52 +0000 (12:51 +0000)] 
Fix incorrect datatype on the auto_ext_leak_tester() function in the CLI.

FossilOrigin-Name: 4a36454904e1c5e7d25406713ab0125f11df66eabe0d378edcb837ef8dedc981

2 months agoFix redundant typedef in qrf.c when that file is amalgamated into
drh [Tue, 7 Apr 2026 11:31:41 +0000 (11:31 +0000)] 
Fix redundant typedef in qrf.c when that file is amalgamated into
tclsqlite3.c.

FossilOrigin-Name: b8f0c71b48953cb6d5a8b3d33d004a31b63c59d59d455f285bf8fa91c3b07129

2 months agoReplace a doc reference to a renamed file, as reported by [forum:5d9d70c618|forum...
stephan [Tue, 7 Apr 2026 09:15:21 +0000 (09:15 +0000)] 
Replace a doc reference to a renamed file, as reported by [forum:5d9d70c618|forum post 5d9d70c618]. No code changes.

FossilOrigin-Name: c8121593fa455cd43b3878f8b65ebac47c07dab4b8ce081aa34b14fc9440afbc

2 months agoAdd a dummy auto-extension to the shell in SQLITE_DEBUG builds to validate that ...
stephan [Mon, 6 Apr 2026 22:00:20 +0000 (22:00 +0000)] 
Add a dummy auto-extension to the shell in SQLITE_DEBUG builds to validate that [9d56df17b4ab49] does the right thing.

FossilOrigin-Name: 164af3703b8fb5d88612edcceeaae0ae5a230c34c7a0f2ac9b650f5a742b2787

2 months agoAdd a call to sqlite3_reset_auto_extension() near the end of shell.c.in:main() to...
stephan [Mon, 6 Apr 2026 20:24:02 +0000 (20:24 +0000)] 
Add a call to sqlite3_reset_auto_extension() near the end of shell.c.in:main() to squelch a leak message when SQLITE_EXTRA_INIT adds auto-extensions, as reported in [forum:310cb231b07c80d1|forum post 310cb231b07c80d1].

FossilOrigin-Name: c4dd7e8b36deced3ee9cc6b5f87d8b3cc9a752cad8d62c9b711c7b58db11834b

2 months agoAppease static analyzers by masking the index to the
drh [Sat, 4 Apr 2026 14:43:37 +0000 (14:43 +0000)] 
Appease static analyzers by masking the index to the
WalHashLoc.aPgno array to make it easy to prove that there
is never OOB read or write.

FossilOrigin-Name: 9d56df17b4ab4940f7bc24488a9df118f6172fcfbf3e5cb95bdcbd2db2a07911

2 months agoAdd some comments to the OPFS async proxy about potential future experimentation...
stephan [Sat, 4 Apr 2026 08:07:25 +0000 (08:07 +0000)] 
Add some comments to the OPFS async proxy about potential future experimentation. No code changes.

FossilOrigin-Name: 9c14ee74305a5db3be95dbd9ae8d1db0abf39b323001be4e2f02b7226e6ca0d3

2 months agoEnhance testrunner.tcl so that a PATTERN argument that begins with "~" is
drh [Fri, 3 Apr 2026 19:48:01 +0000 (19:48 +0000)] 
Enhance testrunner.tcl so that a PATTERN argument that begins with "~" is
an "anti-pattern".  Only run tests that match one or more patterns if there
are any patterns *and* do not match any anti-pattern.

FossilOrigin-Name: c313d91bb67b56be2db46194c3baa5a72b469595de3b2abe249612838dc175e4

2 months agoconfigure script: replace two 'file normalize' calls with file-normalize (a tcl/jimsh...
stephan [Fri, 3 Apr 2026 13:54:48 +0000 (13:54 +0000)] 
configure script: replace two 'file normalize' calls with file-normalize (a tcl/jimsh compatibility issue) to fix --with-linenoise. Problem reported in [forum:ce688d13793bd78f|forum post ce688d13793bd78f].

FossilOrigin-Name: 2be1c5a3e47f1276b9f0a4771f2d5fb0bc1ccb907c855caa04d757b4145533f5

2 months agoFix Tcl9 compatibility issues in test_session.c.
drh [Fri, 3 Apr 2026 11:48:00 +0000 (11:48 +0000)] 
Fix Tcl9 compatibility issues in test_session.c.

FossilOrigin-Name: 1387b5819085146cafb0e8740410faaa48bfb5aefc78ff763aaa8e85744d48b3

2 months agoMinor patch to test/json/json-speed-check.sh. That script is not maintained,
drh [Thu, 2 Apr 2026 16:21:47 +0000 (16:21 +0000)] 
Minor patch to test/json/json-speed-check.sh.  That script is not maintained,
but this fix at least gets it working for now.

FossilOrigin-Name: 9d92e371ca375776d251fe446f17a437823cc96e48a5c45f42cb0768d0a47f65

2 months agoImprovements to the syntax hints in the continuation prompt of the CLI
drh [Thu, 2 Apr 2026 11:43:04 +0000 (11:43 +0000)] 
Improvements to the syntax hints in the continuation prompt of the CLI

FossilOrigin-Name: 5c544f169680804c9652b8f9fc843a4bac052706be6bac205baf13a8c83fc840

2 months agoFix a potential 4-byte overread in the sessions module when processing a corrupt...
dan [Wed, 1 Apr 2026 17:43:22 +0000 (17:43 +0000)] 
Fix a potential 4-byte overread in the sessions module when processing a corrupt changeset.

FossilOrigin-Name: c1c7e024c34da8eb0258ce552f3f81921280ccf0f1fea59374f381c0c7b43b74

2 months agoAlways use sqlite3_malloc64() in extensions, where possible.
drh [Wed, 1 Apr 2026 16:56:48 +0000 (16:56 +0000)] 
Always use sqlite3_malloc64() in extensions, where possible.

FossilOrigin-Name: 6194f3b5314ef98b5d73060450de8e3497272494b47e6f96992453418894ded1

2 months agoFix a problem in the sessions module allowing a NULL pointer to be passed to memcpy().
dan [Wed, 1 Apr 2026 16:11:47 +0000 (16:11 +0000)] 
Fix a problem in the sessions module allowing a NULL pointer to be passed to memcpy().

FossilOrigin-Name: 91ead3c62dd7b1db3fdfd318e3c35a42fb33e8fa2e347b682eecbff2f4e8677b

2 months agoMinor improvements to the documentation on how to compile for Unix.
drh [Wed, 1 Apr 2026 11:54:20 +0000 (11:54 +0000)] 
Minor improvements to the documentation on how to compile for Unix.
No changes to code.

FossilOrigin-Name: 7bc1d0c4572f126cfe68fa51fe992d2bd46b1e57c04721991bd5fad36dd795c5

2 months agoDoc cleanups in opfs-wl. No code changes.
stephan [Wed, 1 Apr 2026 11:39:13 +0000 (11:39 +0000)] 
Doc cleanups in opfs-wl. No code changes.

FossilOrigin-Name: 009b576dcd5fccaaa52459dbfaa1b2a6fcf6d372e4b8d63553dfa88aab9a759c

2 months agoAdd appropriate headers to ext/session/sqlite3session.h so that the
drh [Tue, 31 Mar 2026 18:49:23 +0000 (18:49 +0000)] 
Add appropriate headers to ext/session/sqlite3session.h so that the
documentation generator will pick up the API documentation for the
new one-at-a-time changegroup APIs.

FossilOrigin-Name: da514f10b7804fd0affaf0fd4b8089012288ba99c165ef4ab78ab28edd331211

2 months agoAdd an API to the sessions module to add changes one at a time to an sqlite3_changegr...
dan [Tue, 31 Mar 2026 10:59:13 +0000 (10:59 +0000)] 
Add an API to the sessions module to add changes one at a time to an sqlite3_changegroup object.

FossilOrigin-Name: cf1122ea6409bcbd341b67ae45147abb8d5cd491ae95491c801d0621181da40b

2 months agoUpdate this branch with changes from trunk. changegroup-change-api
dan [Tue, 31 Mar 2026 10:52:00 +0000 (10:52 +0000)] 
Update this branch with changes from trunk.

FossilOrigin-Name: 716e62e3d1d6ff96f6e4906175818439103e9534e89bec4a86776265a04954b9

2 months agoTurn an incorrect assert() into a testcase(). Fix over-length code lines
drh [Tue, 31 Mar 2026 10:32:23 +0000 (10:32 +0000)] 
Turn an incorrect assert() into a testcase().  Fix over-length code lines
in the sqlite.h.in source file.  Fix the documentation on OOM conditions
in the sqlite3_value_text() family of APIs.

FossilOrigin-Name: 934582706109d2ebda26952c7c95f7a5095fa47ec837570a66c991866f7d08cf

2 months agoMove some build docs around for clarity. Move the TARGET_DEBUG flags from the end...
stephan [Mon, 30 Mar 2026 15:44:20 +0000 (15:44 +0000)] 
Move some build docs around for clarity. Move the TARGET_DEBUG flags from the end of T.cc to the beginning so that -Ox flags can be passed to make for specific binaries without having to reconfigure.

FossilOrigin-Name: 240294653ceb202b847699e9691140db4fe623a03d86fa3cf7495f8831576331

2 months agoRemove an unused variable in sqlite3Reindex(). Minor enhancements to the
drh [Mon, 30 Mar 2026 10:00:48 +0000 (10:00 +0000)] 
Remove an unused variable in sqlite3Reindex().  Minor enhancements to the
header comment on sqlite3AtoF().

FossilOrigin-Name: fbba900728d444f6a0b428197ebb41fe039b235e18caa2243c9f8f04fce42595

2 months agoEnhance the printf() formatter to write floating point conversions directly
drh [Sun, 29 Mar 2026 23:37:16 +0000 (23:37 +0000)] 
Enhance the printf() formatter to write floating point conversions directly
into the output buffer, rather than staging into an intermediate buffer.

FossilOrigin-Name: ccb6b6c4ac21742dbfc435cf3a2a0dc887075b3e0877aea7ed8eace08b7b5571

2 months agoFix harmless compiler warnings about unused variable assignments. direct-printf
drh [Sun, 29 Mar 2026 22:41:12 +0000 (22:41 +0000)] 
Fix harmless compiler warnings about unused variable assignments.

FossilOrigin-Name: afe7e9fd1c476c7cdcefab0adf0191a8dc3283811f72a685fff3eb6539b72dcc