Commit Graph

  • 57781916ad 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. drh 2025-11-10 15:56:18 +00:00
  • e029b4a44e Rewrite the ".schema" and ".fullschema" commands in the CLI so as to eliminate the need for MODE_Pretty and MODE_Semi. drh 2025-11-10 15:01:57 +00:00
  • 09f16c5ab6 Add the bTextNull field to sqlite3_qrf_spec. Use QRF to implement "tcl" mode in the CLI. drh 2025-11-10 12:32:04 +00:00
  • a79f685533 Fix a missing va_end() call in the intckMprintf() function of the incremental integrity-check extension. drh 2025-11-10 11:05:36 +00:00
  • 240397bb03 A more compact fix for the problem first fixed by [5f5a736f88]. dan 2025-11-10 11:00:41 +00:00
  • 4ac766cc05 Have sqlite3_set_errmsg() return SQLITE_MISUSE if a NULL db handle is passed to it, as documented. dan 2025-11-10 10:47:29 +00:00
  • f863c0187c Merge all the latest trunk fixes, and especially the fix for the ".www" command in the CLI, into the qrf branch. drh 2025-11-10 10:46:55 +00:00
  • 73caea1764 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. stephan 2025-11-10 07:41:54 +00:00
  • 998ebf1de7 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. drh 2025-11-10 01:46:06 +00:00
  • e2201e40ce Fixes to autoExplain drh 2025-11-10 00:18:36 +00:00
  • 7f28c6d64e Enforce mxRowHeight in columnar layouts. Code clean-up. Minimum column with is 2 if there is wrapping, in case there are double-wide characters. drh 2025-11-09 17:25:23 +00:00
  • 051e942f5d Minor doc typo fix reported in [forum:939d5864df|forum post 939d5864df]. stephan 2025-11-09 07:11:15 +00:00
  • 4182294987 CLI shell: ensure that .dump propagates its error code on error. Problem reported in [forum:a4f3873b0a8503cc|forum post a4f3873b0a]. stephan 2025-11-09 06:51:32 +00:00
  • ea0cda00d6 Kick off branch-3.51: bump version to 3.51.1 and cherrypick [0f712b6b0516dc151d]. stephan 2025-11-09 06:38:48 +00:00
  • c55d8262cf 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]. stephan 2025-11-09 06:32:10 +00:00
  • c1aac60386 Fixes for harmless static analyzer warnings. drh 2025-11-09 00:37:29 +00:00
  • 639d8b407b Remove several more hundred lines of dead code from shell.c.in. drh 2025-11-09 00:01:48 +00:00
  • 3e98ff6b1d Remove about a thousand lines of dead code from shell.c.in. drh 2025-11-08 23:35:57 +00:00
  • edc34bf866 Name changes. QRF_TEXT_Off becomes QRF_TEXT_Plain. mxTotalWidth becomes nScreenWidth. drh 2025-11-08 22:46:29 +00:00
  • bfa8c7d370 Improvements to QRF_STYLE_Line. Make it responsive to mxTotalWidth and mxRowHeight. Indent subsequent lines appropriately. Add corresponding test cases. drh 2025-11-08 18:31:57 +00:00
  • 44aea46a07 Fix minor issues with alignment and quoting. All legacy tests are now passing. drh 2025-11-08 17:08:19 +00:00
  • 96e47e16e7 Miscellaneous fixes to the new alignment configurations. drh 2025-11-08 15:25:07 +00:00
  • 22d6a48ba7 Separate column width specification from cell alignment. drh 2025-11-08 14:04:29 +00:00
  • ca111b06f3 Minor changes to fix a few legacy test cases. Snapshot prior to yet another refactor. drh 2025-11-08 10:48:55 +00:00
  • e8cd0ee61f Make sure columnar outputs always invoke qrfWrite(). drh 2025-11-08 03:44:05 +00:00
  • 6eb5f5d9a7 Rewrite the table layout in QRF. Easier to maintain now. Still a few shell test failures, but much better after this rewrite. drh 2025-11-08 03:20:47 +00:00
  • 1b599c8286 Update this branch with latest trunk changes. dan 2025-11-07 19:29:10 +00:00
  • 39d132db5b Merge latest trunk changes with this branch. dan 2025-11-07 19:23:06 +00:00
  • ec27a2e7e5 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. drh 2025-11-07 19:20:49 +00:00
  • d2424338b0 Incremental check-in. QRF is working, but there are many test failures in the shell test modules. drh 2025-11-07 17:48:14 +00:00
  • a6b4039050 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. drh 2025-11-07 14:31:17 +00:00
  • eedf226700 Update documentation to clarify that mxTotalWidth and mxLength are not yet implemented. drh 2025-11-07 13:23:29 +00:00
  • 84c03d6c36 Rename "mxWidth" to "mxColWidth". Add "mxTotalWidth" and "mxLength" settings and hook them up to the TCL interface, but those settings are not yet implemented. drh 2025-11-07 13:11:16 +00:00
  • b6dcd0ae00 Fix an error-message test case broken by the previous check-in. drh 2025-11-07 12:15:25 +00:00
  • 10747754d4 Add the JsonLine output style. drh 2025-11-07 12:12:02 +00:00
  • 66b37e991b Add some UNUSED_PARAMATER()s for the sake of -pedantic -DSQLITE_OMIT_WAL. stephan 2025-11-07 11:46:56 +00:00
  • 0aca0ccf2c Fix a harmless static-analyzer warning. drh 2025-11-07 11:22:47 +00:00
  • 78e831d31f Fix the size of an integer in the TCL interface. drh 2025-11-07 00:05:44 +00:00
  • 04586681af Put the style constants in alphabetic order. Improvements to documentation. drh 2025-11-06 23:34:30 +00:00
  • 099f7f052b 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. drh 2025-11-06 19:22:34 +00:00
  • 1f3efba202 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. drh 2025-11-06 17:28:34 +00:00
  • cb69edd23d Merge the latest trunk enhancements into the qrf branch. drh 2025-11-06 13:25:40 +00:00
  • 748c0adb62 Get the sqlite3Hwtime() function working on ARM. Enable scanstatus by default on Windows CLI builds. drh 2025-11-06 13:19:50 +00:00
  • e77530050e Improvements to documentation for stmt_scanstatus interfaces. drh 2025-11-06 12:25:26 +00:00
  • bac6b5eaef More test cases and a bug fix. drh 2025-11-05 22:48:33 +00:00
  • 2e660d30f5 Further testing and bug fixing. drh 2025-11-05 22:33:47 +00:00
  • 1301bc1f6e 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. drh 2025-11-05 18:35:54 +00:00
  • 33cc175e51 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. drh 2025-11-05 18:27:18 +00:00
  • b230147671 A few simple test cases added. drh 2025-11-05 16:29:06 +00:00
  • a354a15717 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. drh 2025-11-05 15:44:11 +00:00
  • 0296bab9fd The new "format" method in the TCL interface is now partially functional. drh 2025-11-05 14:07:16 +00:00
  • 9ff8a73ba4 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. drh 2025-11-05 12:37:42 +00:00
  • 366e0ed80c JNI: doc tweaks. Add missing SQLITE_DBSTATUS_TEMPBUF_SPILL export. stephan 2025-11-05 10:07:57 +00:00
  • 201066302e 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]. stephan 2025-11-05 05:59:53 +00:00
  • 29bdac3ee5 Remove stale code from the fileio.c extension. drh 2025-11-04 23:47:49 +00:00
  • 35cc5176e0 Merge the latest trunk enhancements into the qrf branch drh 2025-11-04 22:19:21 +00:00
  • 53ba0b80f2 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. stephan 2025-11-04 22:01:55 +00:00
  • bd7868befd Merge all the version 3.51.0 enhancements into the reuse-schema branch drh 2025-11-04 20:35:05 +00:00
  • 0b9939274d Merge all the version 3.51.0 enhancements up into the bedrock branch drh 2025-11-04 20:26:01 +00:00
  • 78d1a8447c Merge the version 3.51.0 enhancements into the wal2 branch drh 2025-11-04 20:18:40 +00:00
  • 52f2c4f3fc Merge all version 3.51.0 enhancements into the begin-concurrent branch drh 2025-11-04 20:12:36 +00:00
  • c2aa8e3875 Version 3.51.0 version-3.51.0 drh 2025-11-04 19:38:17 +00:00
  • b799156a31 Consolidate the three VFS-specific SEE tests into a shared routine. wasm-post-3.51 stephan 2025-11-04 01:03:58 +00:00
  • 23e4ae2121 Move the hard-coded SHELL_OPT makefile values from the two main makefiles into their shared configure script. stephan 2025-11-04 00:15:51 +00:00
  • abc23b5404 Merge trunk into wasm-post-3.51 to for some minor config script work. stephan 2025-11-04 00:10:10 +00:00
  • e977440d79 Add tests demonstrating [d0e803b90344]. stephan 2025-11-03 21:38:34 +00:00
  • bb3b269ba9 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. stephan 2025-11-03 21:26:27 +00:00
  • 1bf7eb3d49 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]. drh 2025-11-03 15:34:25 +00:00
  • f1c37a357e Add new column "cwd" to the jobs table in testrunner.db. For recording the directory in which the test ran or is running. dan 2025-11-03 15:29:51 +00:00
  • d95fffc9af Adjust the dbstatus2.test module so that it works on 32-bit builds in addition to 64-bit builds. drh 2025-11-03 12:36:52 +00:00
  • 4733884eae 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. drh 2025-11-03 11:35:13 +00:00
  • 0dfa31d279 Fix the test/speedtest.tcl script so that the CC= command-line option works. drh 2025-11-03 10:40:06 +00:00
  • 15c6d88381 Fix a harmless memory leak in the CLI caused by the --cmd option generating an error message. drh 2025-11-03 10:14:20 +00:00
  • eaacb4ac37 Add pedantic OOM detection logic to some disused diagnostic and test code. No changes to any deliverables. drh 2025-11-02 22:57:26 +00:00
  • d168865347 Merge trunk into the reuse-schema branch. devtest passes. stephan 2025-11-01 21:23:44 +00:00
  • 903e9cdda5 Merge wal2 into the bedrock branch. devtest passes. stephan 2025-11-01 21:01:52 +00:00
  • e1b49b635a Merge trunk into the wal2 branch. devtest passes. stephan 2025-11-01 20:47:32 +00:00
  • 83d1192759 Merge trunk into the begin-concurrent branch. devtest passes. stephan 2025-11-01 20:27:52 +00:00
  • 0c747e1653 Update the test/walthread.test testing script so that it uses a random database name. drh 2025-11-01 20:14:43 +00:00
  • e5c8467a8e 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). stephan 2025-11-01 14:49:05 +00:00
  • b2b8ab6bc8 Updates to the compile-for-windows.md document. No changes to code. drh 2025-10-31 17:45:59 +00:00
  • 7f70085071 Detect some cases of ambiguous column references in USING clauses that can come up with nested joins. dan 2025-10-31 16:07:31 +00:00
  • a183595edd 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. drh 2025-10-31 15:18:29 +00:00
  • 63ab7c625c Update the main README.md file to use the robot-safe /rchvdwnld page on the server for downloads. drh 2025-10-31 13:44:51 +00:00
  • 1c19c06246 Fix the output of ".dump" in the CLI so that the sqlite_sequence table is created using correct syntax. drh 2025-10-31 11:23:44 +00:00
  • da17de532f New assert() statements to help out static analyzers. drh 2025-10-30 22:10:41 +00:00
  • 1ed6441bb1 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. stephan 2025-10-30 21:11:01 +00:00
  • c129de05bb 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. stephan 2025-10-30 20:18:20 +00:00
  • 6acd8d28fd Merge trunk into the wasm-post-3.51 branch. stephan 2025-10-30 19:32:46 +00:00
  • 139ec38ac8 Further improvements the ".dump" command to handle corner cases. drh 2025-10-30 18:52:48 +00:00
  • 41fda52f3c Another (void), as per [dd6edfc09434]. stephan 2025-10-30 18:48:19 +00:00
  • 7fb2545905 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. stephan 2025-10-30 18:46:03 +00:00
  • 3a61466a2f wasm: re-add SQLITE_OMIT_WAL to the c-pp-lite build flags. stephan 2025-10-30 18:39:28 +00:00
  • 916fc1129c Macro tweaks to get SQLITE_OMIT_WAL building. Remove some nearby stray EOL whitespace. stephan 2025-10-30 18:38:14 +00:00
  • a8a99becb5 Fix a typo and improve wording in README.md drh 2025-10-30 18:33:58 +00:00
  • f3b396494f Updates to the tool/warnings.sh script for better compiler warnings. drh 2025-10-30 18:32:32 +00:00
  • 4ebf49168a Fix a harmless compiler warning associated with flexarrays. drh 2025-10-30 17:23:17 +00:00
  • c6b86ba2ab Updates to the main README.md file. drh 2025-10-30 15:43:57 +00:00
  • c5ff2aa7cf 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]. drh 2025-10-30 11:39:49 +00:00
  • cb36dc3f3e Prevent a harmless signed integer overflow in the CLI if the argument to the --skip option of the ".inport" command is -9223372036854775808. drh 2025-10-30 10:36:10 +00:00