Commit Graph

  • 6abc21cfb8 Latest upstream jimsh0.c. stephan 2026-04-13 10:56:14 +00:00
  • 20079bb358 Doc typo fix which broke the docsrc build, reported by BrickViking. stephan 2026-04-12 17:47:57 +00:00
  • 3d6fa49c54 Bug fix in the revised ".prompt" command of the CLI, with test cases. drh 2026-04-12 10:46:35 +00:00
  • ef152ec09f Fix a typo which caused .headers to not show up in the shell's .help. stephan 2026-04-12 05:43:12 +00:00
  • 4df365e5a7 Fix a typo which causes .headers to not show up in the shell's .help. stephan 2026-04-12 05:41:28 +00:00
  • 9d8bf6f04a 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. drh 2026-04-11 23:58:15 +00:00
  • c0026ff7a6 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. drh 2026-04-11 22:58:25 +00:00
  • 1e3f888acf Two C-preprocessor macros SQLITE_PS1 and SQLITE_PS2 can be set to override the default prompt strings in the CLI. drh 2026-04-11 22:18:05 +00:00
  • 2d4dfbccdc Make sqlite3_incomplete() available to extensions. drh 2026-04-11 20:53:53 +00:00
  • 6142310e08 When fiddle terminal mode is enabled, add a link to the jquery.terminal project in the About box. stephan 2026-04-11 20:43:49 +00:00
  • 42ae7e7f34 Fix harmless UB in sqlite3_incomplete(). drh 2026-04-11 20:41:54 +00:00
  • 57cf5c2dfc 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. stephan 2026-04-11 20:31:03 +00:00
  • a212476ad2 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. drh 2026-04-11 18:38:54 +00:00
  • 0523cfda5a Fixes for running C tests on windows. dan 2026-04-11 18:05:49 +00:00
  • d08caad3a5 Fix harmless compiler warnings. cli-prompt drh 2026-04-11 17:47:31 +00:00
  • bc68ec78de Enhance testrunner.tcl to run individual tests written in C from the test/c/ directory. dan 2026-04-11 17:03:27 +00:00
  • 28456958ca Initial test cases for the CLI prompt enhancements. drh 2026-04-11 16:12:12 +00:00
  • 3b27ffa534 Add --reset, --show, and -- options to the ".prompt" command of the CLI. drh 2026-04-11 15:45:45 +00:00
  • fc2c730c87 Enhancements to shell_prompt_test() for better testing. Enhance the ".open" command so that it does ~/ expansion on filenames. drh 2026-04-11 14:11:56 +00:00
  • cd28797117 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. drh 2026-04-11 12:35:53 +00:00
  • c8b130f255 Fix the \B escape for prompts so that it uses wcwidth() instead of strlen() to compute spacing. drh 2026-04-11 11:24:09 +00:00
  • 2c01c19968 Ensure that sqlite3-opfs-async-proxy.js is copied into the fiddle target dirs. stephan 2026-04-10 23:33:31 +00:00
  • 7a0a0a22e7 Ensure that sqlite3-opfs-async-proxy.js is copied into the fiddle target dirs. stephan 2026-04-10 23:31:29 +00:00
  • 504cfd5ec7 Ensure that sqlite3-opfs-async-proxy.js is copied into the fiddle target dirs. stephan 2026-04-10 23:25:57 +00:00
  • 9d950aa13b 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. stephan 2026-04-10 23:05:41 +00:00
  • b709ba8108 Expose the main /fiddle object to the browser dev console as globalThis.fiddle for experimenting with a dynamic prompt. stephan 2026-04-10 21:58:13 +00:00
  • 01e1be854b Fix minor issues on Windows. drh 2026-04-10 20:44:38 +00:00
  • 70868a5ae3 Fix prompt for in-memory databases. Fix the continuation mechanism so that it looks at all accumulated lines, not just the most recent line. drh 2026-04-10 20:29:35 +00:00
  • d0065c8118 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. drh 2026-04-10 20:14:16 +00:00
  • bd574dbaee Add the \B escape for CLI prompts. Change the default prompts to use \f, \H, and \B. cli-prompt-redo drh 2026-04-10 20:06:34 +00:00
  • 7632922625 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. drh 2026-04-10 19:33:15 +00:00
  • 49998a6d25 Merge trunk fixes and enhancements into the cli-prompt-redo branch drh 2026-04-10 18:53:13 +00:00
  • 92c435cda7 Improve defenses in QRF against trying to run the same prepared statement twice, concurrently. drh 2026-04-10 18:14:33 +00:00
  • 81fa34e507 API doc correction for sqlite3_js_retry_busy(). No code changes. stephan 2026-04-10 17:56:54 +00:00
  • 35f8abcfd0 API doc correction for sqlite3_js_retry_busy(). No code changes. stephan 2026-04-10 17:55:31 +00:00
  • b6117c2077 Merge trunk into the compile-commands branch. compile-commands stephan 2026-04-10 17:37:42 +00:00
  • 1bb371e6d3 Use sqlite3_malloc() for memory allocation inside of sqlite3_str_vappendf(), since it invokes sqlite3_initialize(), whereas sqlite3DbMallocRaw() does not. drh 2026-04-10 17:16:46 +00:00
  • 1a315c0d51 Use sqlite3_malloc() for memory allocation inside of sqlite3_str_vappendf(), since it invokes sqlite3_initialize(), whereas sqlite3DbMallocRaw() does not. drh 2026-04-10 17:11:16 +00:00
  • 916f74e485 Fix the printf() optimization added on 2026-03-29 so that sqlite3_snprintf() does not incorrectly truncate floating-point conversions. drh 2026-04-10 16:06:09 +00:00
  • 3a8d38ffc0 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]. drh 2026-04-10 15:55:08 +00:00
  • 693b15ac83 Prototype sqlite3_incomplete() - a variant of sqlite3_complete() that returns additional information about what is needed to complete the statement. drh 2026-04-10 13:43:48 +00:00
  • 8cdc2abf07 Attempt to work around a bug in legacy Microsoft compilers. [forum:/forumpost/2026-04-10T06:33:11z|Forum post 2026-04-10T06:33:11z]. drh 2026-04-10 10:48:04 +00:00
  • 931fa90d74 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. drh 2026-04-10 10:27:04 +00:00
  • 282e2cea0a Correct shell result code propagation regression introduced in [ff084ae341eab5c4] and reported in [forum:6fa3247e9724844c|forum post 6fa3247e9724844c]. stephan 2026-04-10 08:39:51 +00:00
  • eb9a6a95ca Correct shell result code propagation regression introduced in [ff084ae341eab5c4] and reported in [forum:6fa3247e9724844c|forum post 6fa3247e9724844c]. stephan 2026-04-10 08:36:55 +00:00
  • b37bf0b8b4 Improvements to the way \x works so that it can be used to change the prompt color. This really messes with linenoise, though. drh 2026-04-10 00:55:40 +00:00
  • 850104bbad A prototype of code that shows how to expand backslash escapes in the CLI prompt. drh 2026-04-09 23:37:48 +00:00
  • 6a6ebb0d06 Store the prompts as part of the ShellState object, not as global variables. drh 2026-04-09 22:14:58 +00:00
  • 30b824e432 Strip out the legacy dynamic prompt generation. It will go back in as I add the user-defined prompt escapes. drh 2026-04-09 20:21:25 +00:00
  • 3944e70677 Clean-ups in prompt generation in the CLI. drh 2026-04-09 18:51:09 +00:00
  • df0e915ad2 Use O_TMPFILE (on systems that support it) to security create a temporary file that is inaccessible to any other process. drh 2026-04-09 16:16:39 +00:00
  • b0d9039c8c 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. drh 2026-04-09 16:08:29 +00:00
  • f1cc3c4be5 Version number to 3.54.0 to begin the next development cycle. drh 2026-04-09 16:03:56 +00:00
  • 3aed7dc446 Make use of O_TMPFILE for more secure temporary file creation, when that option is available. o_tmpfile drh 2026-04-09 14:12:09 +00:00
  • 9a8732e44b Merge the 3.53.0 release changes into the cli-prompt branch drh 2026-04-09 13:21:09 +00:00
  • bd6c099c70 Version 3.53.0 for the reuse-schema branch drh 2026-04-09 12:48:24 +00:00
  • 4ebc7fdcf4 Version 3.53.0 version-3.53.0 release major-release drh 2026-04-09 11:41:38 +00:00
  • a5495355c4 Fix some buffer overreads that might occur in the session module when handling corrupt changesets. dan 2026-04-09 10:39:32 +00:00
  • df3e207501 When generating make.sh for testrunner, correctly quote the value of any options passed via environment variable OPTS. dan 2026-04-09 06:38:31 +00:00
  • 535b1f2875 Fix some buffer overreads that might occur in the session module when handling corrupt changesets. session-fixes dan 2026-04-09 05:33:19 +00:00
  • bcf501a91d Merge the latest trunk fixes into the bedrock branch via wal2. drh 2026-04-08 19:37:42 +00:00
  • 852e308f34 Merge the latest trunk into the wal2 branch. drh 2026-04-08 19:28:10 +00:00
  • 0eb678758b Merge all the latest trunk fixes into the begin-concurrent branch. drh 2026-04-08 19:08:48 +00:00
  • a7200804eb Fix a buffer overflow bug in a recent check-in, reported by unsolicted email from OpenAI/Codex. drh 2026-04-08 17:00:33 +00:00
  • 0fcd7bba72 Merge the latest fixes and enhancements into the reuse-schema branch. drh 2026-04-08 10:06:13 +00:00
  • 0d979c217f Fix a few doc typos and inconsistencies. No code changes. stephan 2026-04-07 15:54:35 +00:00
  • e9af8caac0 Fix incorrect datatype on the auto_ext_leak_tester() function in the CLI. drh 2026-04-07 12:51:52 +00:00
  • 606c64a543 Fix redundant typedef in qrf.c when that file is amalgamated into tclsqlite3.c. drh 2026-04-07 11:31:41 +00:00
  • eefe3aa9ad Replace a doc reference to a renamed file, as reported by [forum:5d9d70c618|forum post 5d9d70c618]. No code changes. stephan 2026-04-07 09:15:21 +00:00
  • fcef193a82 Add a dummy auto-extension to the shell in SQLITE_DEBUG builds to validate that [9d56df17b4ab49] does the right thing. stephan 2026-04-06 22:00:20 +00:00
  • 8e7ffc09f5 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]. stephan 2026-04-06 20:24:02 +00:00
  • 9ad63c0f4e 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. drh 2026-04-04 14:43:37 +00:00
  • d4b74b9fac Add some comments to the OPFS async proxy about potential future experimentation. No code changes. stephan 2026-04-04 08:07:25 +00:00
  • 7ff8b558e8 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. drh 2026-04-03 19:48:01 +00:00
  • bb6d2a5f07 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]. stephan 2026-04-03 13:54:48 +00:00
  • 217c590688 Fix Tcl9 compatibility issues in test_session.c. drh 2026-04-03 11:48:00 +00:00
  • fc19b2ca8a Minor patch to test/json/json-speed-check.sh. That script is not maintained, but this fix at least gets it working for now. drh 2026-04-02 16:21:47 +00:00
  • 6bfeb12b1f Merge trunk enhancements into reuse-schema drh 2026-04-02 12:12:55 +00:00
  • b39d49e529 Merge trunk enhancements into bedrock via wal2 drh 2026-04-02 12:12:33 +00:00
  • b21b427e5f Merge trunk enhancements into the wal2 branch. drh 2026-04-02 11:52:54 +00:00
  • 7693d9d087 Merge all the latest trunk enhancements into the begin-concurrent branch. drh 2026-04-02 11:52:29 +00:00
  • 939930db1e Improvements to the syntax hints in the continuation prompt of the CLI drh 2026-04-02 11:43:04 +00:00
  • 62f3150204 Fix a potential 4-byte overread in the sessions module when processing a corrupt changeset. dan 2026-04-01 17:43:22 +00:00
  • 34e139d3a3 Always use sqlite3_malloc64() in extensions, where possible. drh 2026-04-01 16:56:48 +00:00
  • 6e6598c8ff Fix a problem in the sessions module allowing a NULL pointer to be passed to memcpy(). dan 2026-04-01 16:11:47 +00:00
  • e230de2cbf Minor improvements to the documentation on how to compile for Unix. No changes to code. drh 2026-04-01 11:54:20 +00:00
  • eb8edc0bac Doc cleanups in opfs-wl. No code changes. stephan 2026-04-01 11:39:13 +00:00
  • d6226a9c27 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. drh 2026-03-31 18:49:23 +00:00
  • d9f047bd15 Add an API to the sessions module to add changes one at a time to an sqlite3_changegroup object. dan 2026-03-31 10:59:13 +00:00
  • 5e4fb95edf Update this branch with changes from trunk. changegroup-change-api dan 2026-03-31 10:52:00 +00:00
  • 60b829e0db 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. drh 2026-03-31 10:32:23 +00:00
  • f92d107242 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. stephan 2026-03-30 15:44:20 +00:00
  • b060cecb2e Remove an unused variable in sqlite3Reindex(). Minor enhancements to the header comment on sqlite3AtoF(). drh 2026-03-30 10:00:48 +00:00
  • 9660a4dec0 Enhance the printf() formatter to write floating point conversions directly into the output buffer, rather than staging into an intermediate buffer. drh 2026-03-29 23:37:16 +00:00
  • 0cb576f306 Fix harmless compiler warnings about unused variable assignments. direct-printf drh 2026-03-29 22:41:12 +00:00
  • 6d27844bbe Merge trunk performance enhancements and fixes into the direct-printf branch. drh 2026-03-29 19:23:47 +00:00
  • 03f13d77a5 Avoid using unsigned 64-bit integer division on platforms that do not support it in hardware. drh 2026-03-29 19:06:36 +00:00
  • 445fbc61c8 The _umulh() intrinsic function is not available on 32-bit windows. So don't use it there. drh 2026-03-29 10:32:25 +00:00
  • eb0cb3f53b In sqlite3_str_vappendf(), write floating-point renderings directly into the output buffer, saving a memcpy(). drh 2026-03-28 20:24:47 +00:00
  • 5239e69fb1 Remove a harmless unused variable from the fp-speed-2.c benchmark. drh 2026-03-28 14:21:53 +00:00