1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-01 06:27:03 +03:00

Commit Graph

  • b5f74ee637 Disable some misuse tests that sometimes cause segfaults during "make releasetest". drh 2025-02-25 21:16:13 +00:00
  • 5d60f47001 Approximately 50 typo fixes, spanning the whole tree, contributed via [forum:006c8fa165083ac3|forum post 006c8fa165083ac3] and individually checked for correctness. Affects only code comments, docs, and a single line of debug output in a test app. stephan 2025-02-25 20:55:14 +00:00
  • b8ec04ee02 Fix a test case that was broken when the default --escape type was changed by the previous check-in. drh 2025-02-25 20:36:46 +00:00
  • 846643ebad Change the default control-character escape algorithm from "symbol" to "ascii", since the "ascii" algorithm works even on terminals that do not support unicode. drh 2025-02-25 20:10:46 +00:00
  • 1c03a34400 Fix harmless "unused parameter" compiler warnings. drh 2025-02-25 20:02:58 +00:00
  • 82769e7d04 Improved help messages for the --escape option in the CLI. drh 2025-02-25 18:10:47 +00:00
  • 6fc161ff9c Configure script cosmetics: emit the host/build system info before the directory info. stephan 2025-02-25 16:48:34 +00:00
  • 90454d8924 Configure script cosmetics: emit the host/build system info before the directory info. stephan 2025-02-25 16:39:51 +00:00
  • 335c54bdf1 Diverse configure tweaks to better support package maintainers on the unix-on-windows environments like msys2, cygwin, and mingw, based largely on feedback in forum posts [forum:e6cf2bbb70da2922|e6cf2bbb70da2922] and [forum:828fdfe9041fd725|828fdfe9041fd725]. stephan 2025-02-25 16:17:57 +00:00
  • c3d2ec2289 Restructure [826bad10e9ccd6f71e] as that structure mysteriously breaks the --prefix=... configure flag. stephan 2025-02-25 16:11:25 +00:00
  • 87ad172c50 Enhancements to help avoid problems in the CLI when trying display content that contains ANSI escape codes: (1) Add the --escape MODE option to the CLI where MODE is one of "symbol", "ascii", "off" where the default is "symbol". (2) Add the unistr() SQL function. (3) Add the unistr_quote() SQL function. (4) Add the %#Q and %#q conversions in the built-in printf. drh 2025-02-25 15:57:49 +00:00
  • 228e51d8cd Diverse configure tweaks to better support package maintainers on the unix-on-windows environments like msys2, cygwin, and mingw, based largely on feedback in forum posts [forum:e6cf2bbb70da2922|e6cf2bbb70da2922] and [forum:828fdfe9041fd725|828fdfe9041fd725]. stephan 2025-02-25 15:54:07 +00:00
  • 58bc525e32 Reinstate the assert() removed by [0f6223b8]. Avoid holding a wal-mode write lock after the transaction has been rolled back if an IO error occurs while restarting the wal file. dan 2025-02-25 15:27:55 +00:00
  • 18d9b12e90 Fix a test script problem causing errors with Tcl 9. dan 2025-02-25 13:33:43 +00:00
  • d4c686ed8f Small performance improvement for the new %#Q conversion in printf. unistr drh 2025-02-25 12:18:27 +00:00
  • 17b620eb60 Update the autoconf Makefile for nmake to support SETLK_TIMEOUT. drh 2025-02-25 12:11:57 +00:00
  • fb8c46510e Avoid running certain tests in walsetlk2.test if SQLITE_ENABLE_SETLK_TIMEOUT is set to 2, not 1. dan 2025-02-25 11:48:57 +00:00
  • a357a90f12 Consolidate two different UTF8 encoders into a single subroutine. drh 2025-02-25 11:47:34 +00:00
  • a4cf066d64 Remove an assert() added by [e88212b1] that is sometimes false. dan 2025-02-25 11:29:04 +00:00
  • c46fbec350 Fix the new shellA.test test script so that it works with Valgrind. drh 2025-02-24 23:34:50 +00:00
  • f037440bfe Support SQLITE_ENABLE_SETLK_TIMEOUT on windows. dan 2025-02-24 21:27:16 +00:00
  • 51770439ff Slightly simplify auto.def and autoconf/auto.def. configure-dll-support stephan 2025-02-24 20:53:50 +00:00
  • 81d44c7e3e Use an assert() to fix a harmless (false-positive) scan-build warning in the CLI. drh 2025-02-24 20:13:29 +00:00
  • 31d54ad041 autoconf/auto.def: remove a define which made superfluous by [b8bf966628c0]. Add a check/status message for whether to statically link the library into the CLI shell. stephan 2025-02-24 18:45:30 +00:00
  • b16c76408a configure: in autoconf build if both --disable-shared and --disable-static-shell are used together, ignore the former and emit a notice to that effect. stephan 2025-02-24 18:14:27 +00:00
  • e4f7af1908 Only use unistr() in columnar formats when strictly needed. Do not use unistr() in insert mode when --escape is off. More test cases. drh 2025-02-24 17:50:49 +00:00
  • b6205d4bc3 Add the unistr_quote() function that works like quote(), but also escape control characters using unistr() if necessary. drh 2025-02-24 13:51:24 +00:00
  • 7db5e50b8d Bug fix and initial test-case infrastructure for control-character escaping in the CLI. drh 2025-02-24 13:27:16 +00:00
  • 21b431e685 Ongoing work to get all the quoting and escaping variations in the CLI working correctly. drh 2025-02-24 12:41:30 +00:00
  • d2060072f3 Configure doc tweaks. Move the package version/build dir output so that it does not appear at the start of --help text, but otherwise still appears before the first output from low-level config initialization. stephan 2025-02-24 12:19:06 +00:00
  • ffe65da569 Further consolidation of auto.def and autoconf/auto.def. Note in configure --help that --disable-largefile is a legacy option which has no effect on the library but may influence the generated sqlite_cfg.h. stephan 2025-02-24 11:21:32 +00:00
  • b081a391ce Merge latest changes from trunk into this branch. win32-enable-setlk dan 2025-02-24 10:52:34 +00:00
  • ed36fb77e9 Move the configure output about the SQLite version and build dirs up, so that they appear before any tests for the C compiler and such. stephan 2025-02-24 10:30:59 +00:00
  • 3111c4687f Further consolidation of the main auto.def and the autoconf auto.def content into sqlite-config.tcl. stephan 2025-02-24 08:42:40 +00:00
  • 644b99641f Configure-internal doc tweaks. Fix the distclean rules for libsqlite3.dll.a on msys/cygwin/mingw, broken when the DLL basename was changed for those platforms. stephan 2025-02-24 07:06:36 +00:00
  • a63dee09a6 Add some internal notes about potential changes for the rpath flag handling. stephan 2025-02-24 05:10:09 +00:00
  • 09591b78ae Update jimsh0.c from upstream autosetup to address [https://github.com/msteveb/autosetup/issues/75|autosetup ticket #75], triggered by this build in the Gentoo project. stephan 2025-02-24 04:47:34 +00:00
  • 6a9c3b407e Make column output modes in the CLI responsive to the --escape setting. drh 2025-02-24 00:40:36 +00:00
  • 96a65cc474 Three different --escape modes: symbol, ascii, off. drh 2025-02-24 00:18:12 +00:00
  • 9ba963f035 Further improvements to control-character escapes in the CLI. drh 2025-02-23 20:50:37 +00:00
  • 8d15d7ed68 Work toward VT100-safe output from the CLI by default. drh 2025-02-23 20:20:56 +00:00
  • 8f2e95fa6c Add (disabled) infrastructure for disabling use of the rpath linker flag. This is a proactive precautionary measure because how the rpath is used does not match up with what the unix-on-windows environments do with their DLLs. stephan 2025-02-23 17:55:41 +00:00
  • 7b90beebd5 Internal cleanups to how certain linker flags are tested. stephan 2025-02-23 17:24:55 +00:00
  • 43aeed3fec Internal configure doc cleanups. Apply the [5ecbe7ddc4] unix-on-windows DLL install dir fix to the canonical build. stephan 2025-02-23 15:34:05 +00:00
  • a3283ec135 The %#Q conversion now adds unistr('...') around the converted string if escape characters were inserted. %#w now works just like %w as escape sequences inside of identifiers are not recognized. drh 2025-02-23 11:48:07 +00:00
  • 07ce1820a0 Enhance the %Q, %q, and %w printf conversions so that if the alternate-form flag # is present, they transform backslash and control characters into unistr()-style backslash escape codes. drh 2025-02-23 00:09:24 +00:00
  • 4d70dbad57 Prototype implementation of the unistr() SQL function. drh 2025-02-22 23:18:38 +00:00
  • fdb2bdc2a3 Update the help text to account for [35b1c32f80b9]. stephan 2025-02-22 17:33:18 +00:00
  • cbdbf534a3 Replace --dll-basename=none with --dll-basename=default. stephan 2025-02-22 17:30:08 +00:00
  • c071c47b51 Tamp down various harmless compiler warnings. Use "int" in places instead of "u16" or "i16" since the compiler complains less and generates faster code. drh 2025-02-22 16:44:14 +00:00
  • 524b8a6df2 On unix-on-windows platforms, if either of --out-implib or --dll-basename are not provided, auto-enable them. Add the 'none' special value to those flags to specifically disable the environment-specific handling of those flags. stephan 2025-02-22 16:31:16 +00:00
  • 1ad8df3c6b Ensure that [08c9e56f60] uses an absolute path when appending .exe to mksourceid. stephan 2025-02-22 14:58:20 +00:00
  • df5d5faebe Random non-functional configure script cleanups. stephan 2025-02-22 14:53:31 +00:00
  • 8b0240ea72 tool/mksqlite3h.tcl: when invoking the mksourceid binary, add a .exe to it, if needed, to appease msys2. stephan 2025-02-22 14:53:00 +00:00
  • 447f1c2312 Fix an incorrect assert added by [d7729dbbf231d57c]. drh 2025-02-22 11:40:29 +00:00
  • c3d72a5587 Fix installation rules for import lib in the autoconf bundle, broken by recent refactoring in this branch. stephan 2025-02-22 00:01:30 +00:00
  • 449c552b7c Rename configure-defined ENABLE_SHARED/STATIC makefile vars to ENABLE_LIB_... so that they're consistent between the canonical and autoconf builds (baby steps towards further configure code consolidation). stephan 2025-02-21 23:43:10 +00:00
  • a8d6fcf40d Configure docs/help text tweaks. No functional changes. stephan 2025-02-21 23:27:03 +00:00
  • f8c2382d70 Only use the platform-specific --dll-basename if that option is explicitly provided, else use libsqlite3. stephan 2025-02-21 22:46:18 +00:00
  • 2a9812ce49 Fix another deps problem for msys installs. stephan 2025-02-21 22:39:48 +00:00
  • c580663329 Ensure that the prefix/bin dir exists on msys/cygwin installations before installing the DLL there. stephan 2025-02-21 22:35:10 +00:00
  • 4d58d3938a Add --dll-basename flag to give clients control over the DLL's base name. Split the DLL installation makefile rules into digestible, platform-specific chunks. On Windows-side Unix-like environments, install the DLL into the bin dir. Requires testing and feedback from those platforms' package maintainers to confirm it follows the expectated conventions. stephan 2025-02-21 21:58:32 +00:00
  • cc803b209f The number of declared columns in an index is limited to SQLITE_LIMIT_COLUMN. But the actual number of columns in the implementation might need to be twice as much to account for the primary key at the end. Ensure that the code is able to deal with this. This is a correction to check-in [d7729dbbf231d57c]. drh 2025-02-21 20:35:37 +00:00
  • 72b119d5e4 Extend --out-implib to optionally specify the import lib's name. Add as-yet-unused internals for specifying the DLL's base name (which differs across the Windows-side Unix-esque environments). stephan 2025-02-21 20:28:44 +00:00
  • d9959bf48b Makefile-internal var renaming in prep for pending portability-related changes in the handling of DLLs. No functional/build interface changes. stephan 2025-02-21 20:22:56 +00:00
  • ce25007db8 Detect when a UNIQUE or PRIMARY KEY on a WITHOUT ROWID table would need to use more than SQLITE_LIMIT_COLUMN columns and raise an error. Also include some unrelated compiler warning fixes. drh 2025-02-21 17:03:22 +00:00
  • 07acc6b7b6 configure: in several places where support for -Wl,... linker flags are checked, ensure that the check invokes the linker (not just the compiler) to avoid false positives. This allows us to remove the AIX-specific handling and --disable-rpath bits added in [a15e0f680], as well as make several similar checks more robust. stephan 2025-02-21 03:22:57 +00:00
  • 220260b896 configure: in several places where support for -Wl,... linker flags are checked, ensure that the check invokes the linker (not just the compiler) to avoid false positives. This allows us to remove the AIX-specific handling and --disable-rpath bits added in [a15e0f680], as well as make several similar checks more robust. stephan 2025-02-21 03:19:21 +00:00
  • f16f93c3f2 Bump VERSION to 3.49.2. stephan 2025-02-20 17:16:16 +00:00
  • f9f6410c31 configure: automatically fail the check for rpath on AIX systems and provide a --disable-rpath flag as a fallback for use on platforms which pass the configure-time rpath check but then fail at link-time. Based on discussion in [forum:ae5bd8a84b|forum thread ae5bd8a84b]. stephan 2025-02-20 17:15:37 +00:00
  • a80089c516 configure: automatically fail the check for rpath on AIX systems and provide a --disable-rpath flag as a fallback for use on platforms which pass the configure-time rpath check but then fail at link-time. Based on discussion in [forum:ae5bd8a84b|forum thread ae5bd8a84b]. stephan 2025-02-20 17:14:40 +00:00
  • b484242dba Fix autoconf bundle to honor the --disable-static and --disable-shared flags, as reported in [forum:ae5bd8a84b|forum post ae5bd8a84b]. Problem introduced in 3.49.0. stephan 2025-02-20 16:47:12 +00:00
  • 2a300a2853 Fix autoconf bundle to honor the --disable-static and --disable-shared flags, as reported in [forum:ae5bd8a84b|forum post ae5bd8a84b]. Problem introduced in 3.49.0. stephan 2025-02-20 16:45:45 +00:00
  • 163026cfd9 Experimental prototype for "PRAGMA loadall(TABLE_OR_INDEX)". pragma-loadall drh 2025-02-20 12:34:24 +00:00
  • 9e632f5512 wasm: do not build the (untested/unsupported) node-for-node build by default, to cut build time by about 15%. Adjacent cleanups in mkwasmbuilds.c. stephan 2025-02-20 05:39:18 +00:00
  • b42310a6b9 wasm makefile docs: make explicit that the node.js-for-node.js builds (as opposed to the node.js-for-browser builds) are both untested and unsupported. stephan 2025-02-20 04:45:02 +00:00
  • a32ea731a0 Add the pause/unpause capability to the opfs-sahpool VFS, as discussed in [forum:fe8cdb8431c|forum thread fe8cdb8431c]. Summary: this gives clients a way to eke some degree of multi-page/tab/Worker concurrency out of this VFS but requires that coordination to be implemented client-side, e.g. via a SharedWorker or WebLocks. stephan 2025-02-20 04:14:26 +00:00
  • f8a9f45595 configure: when running proj-check-function-in-lib, strip -Werror from CFLAGS for the duration of the test. This enables CFLAGS='-Wall -Werror' and the like to be passed to configure without breaking these configure-time checks. stephan 2025-02-20 03:27:47 +00:00
  • eb0d2e7bc6 Increase default CLI shell .prompt buffer length to 128 bytes, based on discussion in [forum:362f185a6aa|forum post 362f185a6aa]. stephan 2025-02-19 13:05:33 +00:00
  • 2e132a4c04 Slight tweak to the CLI shell help output to help convey that it can accept multiple SQL arguments, as suggested in [forum:20e617feee|forum post 20e617feee]. stephan 2025-02-19 13:02:23 +00:00
  • cb6105badd Version 3.44.4 version-3.44.4 patch-release drh 2025-02-19 00:18:53 +00:00
  • 0e9332fb63 Add the SQLITE_MEM5_FAILOVER compile-time option, which if enabled allows MEMSYS5 to go out to the system heap if it is unable to fulfill an allocation request. mem5-failover drh 2025-02-18 20:27:04 +00:00
  • 090e39c7db Cherry pick recent fixes into branch-3.44. drh 2025-02-18 18:05:16 +00:00
  • eb3a069fc8 Have SQLITE_FTS5_ENABLE_TEST_MI builds avoid reading the database schema from within sqlite3_open(). dan 2025-02-18 15:11:30 +00:00
  • 50bd28f6b3 Merge the latest trunk enhancements into the reuse-schema branch. drh 2025-02-18 14:56:13 +00:00
  • cc42fddfd9 Merge the latest trunk enhancements into the bedrock branch. drh 2025-02-18 14:48:14 +00:00
  • 6f918c6b7c Merge all the latest trunk enhancements into the wal2 branch. drh 2025-02-18 14:38:00 +00:00
  • 1c4962d745 Merge all the latest trunk enhancements into the begin-concurrent branch. drh 2025-02-18 14:37:29 +00:00
  • 3cd92ce875 Version 3.49.1 version-3.49.1 drh 2025-02-18 13:38:58 +00:00
  • 9ef8399055 Update path on the web server for test/snapshot instances of fiddle. stephan 2025-02-18 01:16:26 +00:00
  • 21212923f2 Add an ORDER BY to a test case for skip-scan to make the output consistent. drh 2025-02-17 20:13:20 +00:00
  • c274e6dda4 Fix problems in test script fkey6.test. dan 2025-02-17 19:44:45 +00:00
  • ac729222a1 Fix a typo in a comment in wal.c. dan 2025-02-17 19:06:01 +00:00
  • 7bfa4452a3 Additional changes making it easier to prove that integer overflow does not occur. No problems found. drh 2025-02-17 18:09:24 +00:00
  • ef86b942b9 Code changes that make it easier to prove that no 32-bit integer overflows happen during memory allocation. No problems fixed; this change is just to make future maintenance easier. drh 2025-02-17 17:33:14 +00:00
  • 963aa5bdbf Add two generated files to the distclean rules of the autoconf bundle. stephan 2025-02-17 16:15:54 +00:00
  • ad5dcff53b Add two generated files to the distclean rules of the autoconf bundle. stephan 2025-02-17 16:14:15 +00:00
  • d3e44d4fa0 Pull build fix [edb8a78c023] and cleanup [0c085a5ab5] into branch-3.49. stephan 2025-02-17 16:07:39 +00:00
  • f6757b305a Replace TEXE (legacy name) with T.exe (3.48+ name) in two places in makefiles. This fixes distclean of jimsh.exe in the canonical build in non-native Windows environments. stephan 2025-02-17 16:04:21 +00:00
  • 03e2f9da23 Harden the SQLITE_DBCONFIG_LOOKASIDE interface against misuse. This is a simplification of [1ec4c308c76c69fb] appropriate for use in a patch release. drh 2025-02-17 14:27:33 +00:00