1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-30 19:03:16 +03:00

Commit Graph

  • f473310d4c win32longpath makes no sense on Cygwin. All tests pass now (except delete_db-1.3.0) jan.nijtmans 2025-04-04 06:47:36 +00:00
  • 29b496a2d5 Minor configure script internal doc edits. No functional changes. stephan 2025-04-04 03:26:20 +00:00
  • 16aa90bba4 Make the --static-cli-shell flag available in the autoconf build mode. stephan 2025-04-04 03:16:47 +00:00
  • 99ef94e3ac On HaikuOS, if --prefix is not explicitly provided then default it to /boot/home/config/non-packaged, based on an off-list discussion with HaikuOS user BrickViking. stephan 2025-04-04 02:40:08 +00:00
  • 2a5694910a Add the --static-cli-shell configure flag to the canonical build, which works like --static-tclsqlite3 but applies to the CLI shell (statically linking it, which only works if all requisite libs are available in static form). It is not called --static-shell because that flag has a completely different legacy meaning in the autoconf build and this flight might eventually be added to that build, so would collide there. stephan 2025-04-03 13:24:38 +00:00
  • 2636632cae Add the --static-tclsqlite3 configure flag (canonical build only) to build tclsqlite3 as a static binary. This will only work on systems which have static versions of all requisite libraries. stephan 2025-04-03 00:46:34 +00:00
  • 20f534708a Minor cleanups to the --static-tclsqlite3 support. static-tclsqlite3 stephan 2025-04-03 00:40:33 +00:00
  • 0993fc62f2 Add experimental --static-tclsqlite3 configure flag to build tclsqlite3 statically, which only works if static libtcl/etc. are available. Currently intended for docker builds via Alpine Linux. stephan 2025-04-02 23:34:35 +00:00
  • 69da86bf93 Fix harmless compiler warnings in the memstat.c extension. No changes to the core. drh 2025-04-02 12:41:16 +00:00
  • 34a55f872c Remove some stray debug output from proj.tcl. stephan 2025-04-02 11:21:09 +00:00
  • 2b918dbb01 Increase the size of a variable in FTS3 to help static analyzers see that there are no integer overflow problems. drh 2025-04-02 10:42:47 +00:00
  • 2cbc485ea3 The json-blob-overwrite optimization seeks to prevent unnecessary I/O and data movement when making small changes to the middle of a large JSONB. drh 2025-04-01 16:32:31 +00:00
  • 76076d442a Fix a typo accidently added to the prior check-in. json-opt drh 2025-04-01 16:26:51 +00:00
  • 3a7042e0e2 This is an experimental optimization that attempts to keep a JSONB value the same size (same number of bytes) after doing a replace of an elements with a slightly smaller element, by denormalizing the size field. This can perhaps avoid unnecessary page updates and memmove() operations when making small changes in the middle of a large JSONB value. drh 2025-04-01 15:17:01 +00:00
  • 4d9384cba3 Fix a harmless typo in a code comment. drh 2025-03-31 23:18:06 +00:00
  • af21b05dc8 Feature-complete. Not all test-cases pass. Merge trunk. jan.nijtmans 2025-03-31 14:12:44 +00:00
  • 0a0367f387 Ensure that the compilation of extensions get the same CFLAGS as the core lib. Move the feature flags enabled by --dev out of TARGET_DEBUG and into OPT_FEATURE_FLAGS (for consistency). Rename the make-internal gcov-related flags to be more descriptive. At the end of the configure script, if SQLITE_DEBUG is active then emit a note reminding the builder that performance will suffer. stephan 2025-03-31 13:08:29 +00:00
  • 9983442f0d Add the ?ENCODING? parameter to the "db copy" command. If used, it will translate from the given encoding to UTF-8 db-copy-encoding jan.nijtmans 2025-03-31 11:24:10 +00:00
  • 227df626e9 Ensure that extension sources also inherit the debugging-related flags from --debug or --dev. stephan 2025-03-31 10:54:09 +00:00
  • 8620b42245 Correct the ordering of the configure script's handling of the --dev and --debug flags so that --dev's forcing of --debug get picked up early enough. stephan 2025-03-31 10:29:06 +00:00
  • 084e61f5cb The --dev option on ./configure implies --debug and adds -DSQLITE_DEBUG. drh 2025-03-31 09:53:20 +00:00
  • 02f4266038 Update tcl.m4 as well tea-update jan.nijtmans 2025-03-30 09:08:10 +00:00
  • 39d14d4856 Minor shell-internal doc addition. No functional changes. stephan 2025-03-29 11:50:25 +00:00
  • 2d49219b1c Correct two tests in shell1.test which were broken by the addition of new output in [0f11087b8475]. stephan 2025-03-28 16:31:54 +00:00
  • cd1cbd641c CLI shell: make (.output off) an alias for (.output /dev/null) or (.output nul), depending on the platform. Discussed in [forum:633979ce307f1cc6|forum post 633979ce307f1cc6]. stephan 2025-03-28 15:36:49 +00:00
  • 13a9fb0d21 Configure/make doc tweaks. No functional changes. stephan 2025-03-28 14:32:01 +00:00
  • 48dde3c973 Update all TEA files to the latest version. All *.vc files should use Windows CRLF jan.nijtmans 2025-03-28 12:43:15 +00:00
  • 18284c0ca1 Second round of cygwin fixes: this makes the full "unix" vfs usable with Cygwin as well. Not all tests are working yet. WIP! jan.nijtmans 2025-03-28 08:59:40 +00:00
  • 3103a90eaf Merge trunk jan.nijtmans 2025-03-28 07:09:56 +00:00
  • 257e026de9 Merge cygwin and tclsqlite fixes into trunk. drh 2025-03-27 23:29:25 +00:00
  • 5ee946f907 Add an explicit db close to fix a file-is-opened failure in session1.test in cygwin. stephan 2025-03-27 18:42:51 +00:00
  • 460e4cb686 Rearrange #includes in FTS3 to avoid a harmless compiler warning. drh 2025-03-27 18:22:11 +00:00
  • 1f3207a52a Fix for forum-post [/forum/forumpost/b5fde3596c|b5fde3596c]. Also fix encoding issue for non-ASCII characters. Also includes a fix from Stephan Beal, about a missing <stdint.h> include. tclsqlite-db-copy-fix jan.nijtmans 2025-03-27 17:30:49 +00:00
  • d07045119d shell1.test: == => eq jan.nijtmans 2025-03-27 17:25:38 +00:00
  • 1588d3de37 More ==/!= => eq/ne fixes jan.nijtmans 2025-03-27 14:37:07 +00:00
  • 87b90921b6 In Tcl, always use eq/ne for comparing strings, not ==/!= jan.nijtmans 2025-03-27 14:32:57 +00:00
  • eb2644024a Merge trunk. Some additional test-fixes for Cygwin jan.nijtmans 2025-03-27 14:13:12 +00:00
  • 7b3477c776 Fix an off-by-one bug in the ".dbtotxt" command from the shell that results in incorrect output. drh 2025-03-27 10:59:18 +00:00
  • 87ceb6ba9e Reduce the delay caused by anti-virus retries in Windows when attempting to open a database file with insufficient permission. drh 2025-03-26 22:23:22 +00:00
  • a6f6fa8675 On winOpen(), redo the read-only test on every retry attempt. Just don't retry the winAccess() call. winopen-retry drh 2025-03-26 17:05:29 +00:00
  • 4a6de7ff7c Further attempted improvements at fast-fail for an inaccessible database file. drh 2025-03-26 15:51:05 +00:00
  • 517a0e04d1 Attempt to reduce the amount of retry time when trying to open an inaccessible database file on Windows. See [forum:/forumpost/e7991420f54dca50|forum thread e7991420f5] drh 2025-03-26 14:45:15 +00:00
  • 22d502e33a Merge trunk into cygwin-fixes branch. Add .fossil-settings/binary-glob to squelch warnings about *.db files on Cygwin. stephan 2025-03-26 00:02:15 +00:00
  • 6de1c9d559 Configure script internal cleanups. Factor out the superfluous proj-lshift_ and use lassign instead. Add -ro flag to proj-file-write. stephan 2025-03-25 01:32:16 +00:00
  • b0c3118cad Clarify and reduce redundancy in an assert() in walChecksumBytes(). drh 2025-03-24 23:08:40 +00:00
  • e6e453def6 Test that the sqlite3changeset_apply() function is properly appling indirect changes. dan 2025-03-24 19:58:13 +00:00
  • ed1a5e05a5 Replace the general-purpose sqlite3_exec() interface with an optimized version during schema parsing, with the hopes of improving performance. And performance does increase, but by so very little (0.2% or less) that it does not seem worth the extra complication. Changed saved for historical reference. schema-parsing-experiment drh 2025-03-24 15:09:09 +00:00
  • 1b906dd920 Add test cases to session1.test. dan 2025-03-24 11:13:18 +00:00
  • 49a015092e Correct a --force flag which should be -force in a TCL file delete call. Some TCL versions (like the one on my system) accepts either but others don't. Problem reported in [forum:c02224d862|forum post c02224d862]. stephan 2025-03-23 23:04:48 +00:00
  • f58b2c46d0 Remove tool/tclConfigShToAutoDef.sh, as that functionality was moved into autosetup/proj.tcl so that it can be reused in, e.g., autoconf/tea. stephan 2025-03-23 22:49:00 +00:00
  • 8d80ca2d1c Internal configure refactoring to support an ongoing conversion of ./autoconf/tea to autosetup. stephan 2025-03-23 21:38:28 +00:00
  • 40b5126326 Correct file-exists check in sqlite-process-dot-in-files, broken for out-of-tree builds by [38d5acd9e0fa47a4]. configure-tweaks stephan 2025-03-23 21:13:00 +00:00
  • 41c774c649 Configure refactoring to support an ongoing conversion of ./autoconf/tea to autosetup. stephan 2025-03-23 15:37:34 +00:00
  • d705a70eb4 Fixes for two problems with the generate_series() table-valued function. drh 2025-03-22 23:03:58 +00:00
  • 75484481c7 Fix the generate_series() enhancement from check-in [d50b784807333c54] so that it works even if the number that "value" is being compared against is a non-integer floating point number. Bug reported by [forum:/forumpost/0d5d63257e3ff4f6|forum post 0d5d63257]. drh 2025-03-22 22:55:33 +00:00
  • 3f911b12e6 Replace use of autosetup/lib/*.auto for sqlite-custom-... features to avoid the possibility of multiple files being loaded (in an unpredictable order) for that purpose. Instead look for autosetup/sqlite-custom.tcl and source it if it exists. The intent is that sqlite-custom.tcl only ever be added in vendor-specific branches and never in the trunk. stephan 2025-03-22 19:07:54 +00:00
  • bf698fd69d In the post-configure validation, ensure than no more than one autosetup/lib/*.auto file is found, for reasons explained in the validation's error message. stephan 2025-03-22 18:41:48 +00:00
  • 0fce9c935f Slight corrections to the new docs in autosetup/README.md. stephan 2025-03-22 17:56:20 +00:00
  • 77dc2d8fb1 Document the new configuration customization approach and extend it to enable sqlite-custom-flags to return an empty string to denote that it does not require any new flags (it may still customize flag default values in such cases). stephan 2025-03-22 17:28:29 +00:00
  • d9535334c6 Teach mkautoconfamal.sh to avoid copying autosetup/local.tcl and autosetup/*.auto except for autosetup/lib/CURRENT-BRANCH-NAME.auto (if any), the intent being to use lib/CURRENT-BRANCH-NAME.auto for branch-specific configuration customizations. stephan 2025-03-22 17:00:32 +00:00
  • 515b51f635 Add a mechanism to the configure script to allow certain client-specific builds to extend or override the configure options without having to edit sqlite-config.tcl, the goal being to reduce merge conflicts in those builds when updating sqlite-config.tcl from the canonical copy. stephan 2025-03-22 16:14:34 +00:00
  • 375d0f322b Merge the latest trunk changes into the reuse-schema branch. drh 2025-03-22 14:29:56 +00:00
  • ac337ff98b Merge the latest trunk enhancements into the bedrock branch. drh 2025-03-22 14:23:57 +00:00
  • 9f455fe428 Merge the latest trunk enhancements into the wal2 branch. drh 2025-03-22 14:19:11 +00:00
  • b6cd6220da Merge the latest trunk enhancements into the begin-concurrent branch. drh 2025-03-22 14:12:46 +00:00
  • d877b56688 Configure script internal cleanups and re-orgs. No functional changes. stephan 2025-03-22 12:43:22 +00:00
  • 51aef0e4da In the autoconf bundle, do not strip binaries during installation, for parity with the canonical build and the legacy build. Discussed in [forum:9a67df63eda9925c|forum post 9a67df63eda9925c]. A potential TODO here is to add a configure flag which either enables or disables stripping. stephan 2025-03-22 12:15:13 +00:00
  • 28b7bfc30f Slightly simplify proj-current-proc-name. stephan 2025-03-21 22:14:30 +00:00
  • e02fade10b Fix a multi-arg expr call in proj-current-proc-name (must be single-arg for portability). stephan 2025-03-21 21:13:44 +00:00
  • 7f4efdcb65 Teach the CLI that VT100-escape codes that do things like change font colors have zero-width for the purpose of laying out the columns of a table. drh 2025-03-21 18:15:13 +00:00
  • 11d5bea210 Flesh out the new proc-debug and its infrastructure a bit. stephan 2025-03-21 16:49:32 +00:00
  • eb6997fbac Proxy configure's msg-debug with proc-debug, which works the same except that it prepends the name of the calling proc to the debug message. No functional changes. stephan 2025-03-21 16:06:16 +00:00
  • 315de605af Teach the configure script to be able find a default installation of libreadline on Haiku OS. stephan 2025-03-20 13:41:08 +00:00
  • 4c13878ac2 Fix a problem in the sqlite_dbpage() table-valued function when it is trying to truncate a file in locking-mode=EXCLUSIVE and the file was obtained via sqlite3_deserialize(). Problem found by dbsqlfuzz. drh 2025-03-20 11:47:39 +00:00
  • 339f9a33b4 Correct part of [505d9e49f7] and [7126a51ed8] to get sessioninvert tests working on cygwin. stephan 2025-03-19 15:21:21 +00:00
  • 18b250e9c9 Correct part of [04075517] which changed the implicit return value of a test function. stephan 2025-03-19 14:57:32 +00:00
  • f715576a6c Add some explicit db close calls to work around a process-reaping timing problem on cygwin builds. stephan 2025-03-19 14:52:39 +00:00
  • 52e2a79304 Test script patches from Jan Nijtmans: always use -DUSE_TCL_STUBS in buildtclext.tcl and improvements in how TRG is populated in testrunner.tcl. stephan 2025-03-19 13:49:34 +00:00
  • 21aeeb06fe Merge trunk into the cygwin-fixes branch for the shell test improvements on Windows. An MSC build's make test now has zero failures. stephan 2025-03-19 13:13:12 +00:00
  • 178edbaa2f Avoid running test cases involving ANSI control characters or Unicode on Windows in a slave interpreter, as that combination does not work. stephan 2025-03-19 11:53:46 +00:00
  • 6e059d9dac Merge trunk into the cygwin-fixes branch. stephan 2025-03-19 10:14:46 +00:00
  • 5b92ef7440 Fix two obscure logic problems that cause incorrect answers, found by a third-party fuzzer. drh 2025-03-18 20:28:53 +00:00
  • 8db881d055 Change the generate_series() table-valued function so that its rowid is just an alias for its value. This allows it to be used as the RHS operand of a RIGHT JOIN. This fixes the issue raised by [forum:/forumpost/1e17219c88|forum post 1e17219c88]. drh 2025-03-18 20:15:16 +00:00
  • 31fd886576 Fix a problem that could occur when the RHS of an IN operator was a compound SELECT featuring an ORDER BY on a subquery that was flattened into one of the component SELECTs introduced by [baa83b460c677c21]. Forum post [/forumpost/1e17219c88]. dan 2025-03-18 19:21:04 +00:00
  • e435547beb Internal doc touchups in ext/wasm/mkwasmbuilds.c. No functional changes. stephan 2025-03-18 13:52:53 +00:00
  • ccda0f008a Very slight simplification of the run-fuzzcheck rules. stephan 2025-03-18 12:31:09 +00:00
  • a49265b717 General updates to autosetup/README.md. stephan 2025-03-18 11:36:15 +00:00
  • 17df9cd909 Update the docs in tool/mkccode.tcl to reflect that it's more generic than it was when the docs were written. Change the shebang line to use /bin/env tclsh instead of a hard-coded tclsh path. stephan 2025-03-18 10:28:56 +00:00
  • 7b99cd6063 Prevent integer overflow when parsing NEAR queries in FTS5. drh 2025-03-17 15:13:47 +00:00
  • 1774ec3ad0 Add support for the --with-wasi-sdk configure flag to the autoconf build. stephan 2025-03-17 14:59:55 +00:00
  • d176ef5881 Fix a long-standing filename digest computation bug in the OPFS SAHPool VFS which caused all VFS-stored filenames to have a digest value of 0. See [/forumpost/042d53c928382021] and for full details. stephan 2025-03-16 14:05:42 +00:00
  • ab68965794 Add --asan-fsanitize=... configure flag to the canonical build to optionally set -fsantize flags for the fuzzcheck-asan tool. Teach proj-check-fsanitiz to fail for flags which the compiler emits any warning for, for reasons described in its comments. stephan 2025-03-16 13:09:21 +00:00
  • 539442300c Configure-internal doc cleanups. No functional changes. stephan 2025-03-16 12:27:21 +00:00
  • bafddb17d7 Consolidate some much-duplicated run-fuzzcheck recipe code in main.mk. stephan 2025-03-16 11:24:32 +00:00
  • fc293f7c0e Rework the run-fuzzcheck makefile target so that it better exploit parallelism. Test case "<tt>make -j16 run-fuzzcheck FUZZDB=20250222.db</tt>" went from 596 seconds down to 107 seconds. drh 2025-03-16 00:13:29 +00:00
  • 42db4d043e Enhance the fuzzcheck testing tool with new command-line options: --brief, and --slice M N. drh 2025-03-15 23:42:32 +00:00
  • 79102ef4e8 Merge the latest trunk enhancements into the reuse-schema branch. drh 2025-03-15 20:35:24 +00:00
  • a29e5d6c9f Merge the latest trunk enhancements into the bedrock branch via the wal2 intermediary. drh 2025-03-15 20:32:24 +00:00
  • 55c98cfe95 Merge the latest trunk enhancements into the wal2 branch. drh 2025-03-15 20:28:42 +00:00
  • 77d9bf1c26 Merge the latest trunk enhancements into the begin-concurrent branch. drh 2025-03-15 20:25:24 +00:00