1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-04-18 21:24:05 +03:00

Commit Graph

  • f857482ed1 Add an appropriate _declspec to the declaration of the sqlite3_dbdata_init() function in the recovery extension. master drh 2025-04-18 14:47:56 +00:00
  • 31e08190ab Upstream teaish, which simplifies how extension metadata are initialized and shrinks proj.tcl by 4k. stephan 2025-04-17 19:41:37 +00:00
  • 10744c61ad When logging errors using sqlite3_log() and the error text includes the text of an SQL statement, but the SQL statement text at the end so that if the error message buffer overflows it is the SQL statement text that gets truncated, not the statement of the problem. drh 2025-04-17 19:01:54 +00:00
  • 56747d1840 Increase the size of the output buffer for sqlite3_log(). drh 2025-04-17 17:46:28 +00:00
  • 680a9584c6 Add docs explaining how to test the teaish build. stephan 2025-04-16 22:25:02 +00:00
  • c264a0fd95 Latest upstream teaish. Most notably it adds the ability for the extension to specify a minimum Tcl version, and this build now enforces a minimum Tcl of 8.6. stephan 2025-04-16 21:53:01 +00:00
  • 259532c0ad Update doc/tcl-extension-testing.md for Unix systems, consolidating the Tcl 8.x and 9.x sections. stephan 2025-04-16 17:47:16 +00:00
  • 6fe2a9a8f1 Attempt to provide EBCDIC translations to the tables in the JSON implementation. The SQLite developers do not have access to any computers using EBCDIC and so have no way to test this patch, and cannot vouch for its accuracy. drh 2025-04-16 17:36:26 +00:00
  • cd83a85e05 Change the target libdir name in the teaish build to match historical tea builds. stephan 2025-04-16 15:40:40 +00:00
  • b70d450426 A portability fix for proj.tcl: some Tcl builds do not like (array set x $someArray). Also better --mandir handling on Haiku (where the former problem was found).7 stephan 2025-04-16 14:21:48 +00:00
  • b1cc4aeb61 Latest upstream teaish for fixes and improvements. stephan 2025-04-16 12:48:27 +00:00
  • 42182f1c1c Correctly handle the case of a multi-column UNIQUE constraint that contains the ROWID as one of it columns, and then the columns of that UNIQUE are used in a row-value IN operator as a WHERE clause constraint. branch-3.49 drh 2025-04-16 10:53:20 +00:00
  • 0243ca8245 Correctly handle the case of a multi-column UNIQUE constraint that contains the ROWID as one of it columns, and then the columns of that UNIQUE are used in a row-value IN operator as a WHERE clause constraint. Reported by [forum:/forumpost/b9647a113b465950|forum post b9647a113b]. Problem introduced by [723f1be3d4a905a6], part of ticket [da78413751863]. drh 2025-04-15 21:59:38 +00:00
  • 8488789d74 Fix a minor typo in a code comment. drh 2025-04-15 19:53:36 +00:00
  • 850289bf1e Cleanups and refactoring in proj.tcl and teaish. stephan 2025-04-15 15:20:30 +00:00
  • 136afcfcc1 Avoid a potential integer overflow in non-default builds of the fts3 matchinfo() function. dan 2025-04-15 11:06:37 +00:00
  • 56da8772bd Further cleanups and code consolidation between teaish.tcl and sqlite-config.tcl parts. stephan 2025-04-15 02:02:36 +00:00
  • dc2d79f80f Slight simplifications in the teaish build. stephan 2025-04-15 00:47:31 +00:00
  • 5950eb8aa7 Update teaish to the latest upstream copy. Move some of its utility code into proj.tcl for reuse in the top-level configure bits. stephan 2025-04-14 23:52:11 +00:00
  • 483e1181c5 Improved estimate on the number of output rows in a recursive common table expression that uses the UNION operator. Follow-up to [f911f1c4977fbcae] and it's output row estimate changes associated with DISTINCT queries. drh 2025-04-14 19:43:30 +00:00
  • c801f8954e JNI: part 3 (of 3) of typos and Java style tweaks suggested in [forum:99ac7961d82f57f3|forum post 99ac7961d82f57f3]. Tested with jdk v8 and v21. stephan 2025-04-14 13:31:18 +00:00
  • d01239f379 JNI: part 2 of typos and Java style tweaks suggested in [forum:99ac7961d82f57f3|forum post 99ac7961d82f57f3]. stephan 2025-04-14 12:09:24 +00:00
  • 6cabff0c22 JNI: part 1 of typos and Java style tweaks suggested in [forum:99ac7961d82f57f3|forum post 99ac7961d82f57f3]. stephan 2025-04-14 11:31:10 +00:00
  • 6964b2f737 Doc/help text tweaks in autoconf/tea. stephan 2025-04-14 10:20:41 +00:00
  • a572bbfc7c Minor cleanups and fixes in the autoconf/tea pieces. stephan 2025-04-14 10:18:40 +00:00
  • a5198b2e13 Latest upstream teaish, which restructures the teaish files a bit. stephan 2025-04-13 16:22:58 +00:00
  • 6b4dcad514 tea build: use autosetup's file-normalize instead of Tcl's (file normalize) because the latter throws on cygwin for names like '.' and './'. Update a doc URL. stephan 2025-04-12 21:47:18 +00:00
  • 337f703c54 Port autoconf/tea from the autotools to autosetup. stephan 2025-04-12 21:24:10 +00:00
  • 837dc09bce Move the post-configure dot-in-file validation from sqlite-config.tcl to proj.tcl for reuse in the tea port and other downstream trees. stephan 2025-04-12 19:26:18 +00:00
  • 6b0429676e Doc typo fix. teaish stephan 2025-04-12 18:37:53 +00:00
  • 807186f1d3 Eliminate a duplicate -lz flag in the teaish build. stephan 2025-04-12 10:33:12 +00:00
  • a69b2b2973 Add missing teaish.test.tcl. stephan 2025-04-12 03:20:42 +00:00
  • 22a85a418e Add missing exports of various LDFLAGS and CFLAGS for the teaish build. stephan 2025-04-12 03:08:13 +00:00
  • 71b7e44869 Correct out-of-tree build for autoconf/tea. stephan 2025-04-12 02:44:02 +00:00
  • 19b0701087 Initial port of the TEA build (autoconf/tea) from autotools to autosetup. stephan 2025-04-12 02:30:04 +00:00
  • 0aa95099f5 Fix a memory leak in sqlite3session_diff(). dan 2025-04-10 20:52:47 +00:00
  • a863bafba7 Improved detection of run-time errors (ex: OOM errors) in speedtest1. drh 2025-04-10 19:54:56 +00:00
  • f95e964b6b Provide new command-line options --hard-heap-limit and --soft-heap-limit for speedtest1. drh 2025-04-10 19:39:34 +00:00
  • e4856e86cd Be sure that speedtest1 reports any errors that it encounters while running the speed tests. drh 2025-04-10 19:03:42 +00:00
  • 7b1afecf53 Fix a comment in sessionD.test. dan 2025-04-10 17:25:57 +00:00
  • da00cc101c Improve the error messages returned by sqlite3session_diff(). dan 2025-04-10 16:48:04 +00:00
  • 08122e96fe Fix an obscure problem allowing the propagate-constants optimization to improperly substitute a column of a sub-query with NONE affinity. [forum:/forumpost/0109bca824|Forum post 2025-04-08T14:18:45Z]. dan 2025-04-10 15:01:58 +00:00
  • 2d1c71abeb Fix an obscure problem allowing the propagate-constants optimization to improperly substitute a column of a sub-query with NONE affinity. forum-0109bca824 dan 2025-04-10 14:53:32 +00:00
  • 8a6f89c845 Remove unnecessary "www." prefixes on domain names in URLs. drh 2025-04-10 10:18:07 +00:00
  • 509d899a2d Doc updates in proj.tcl. Improve configure check for whether fdatasync or nanosleep require -lrt. Remove references to 'tcl-config' build mode from sqlite-config.tcl, as that build is now implemented without a depency on sqlite-config.tcl because the TEA build's needs are considerably more modest. stephan 2025-04-09 13:32:15 +00:00
  • fda6e50ac8 Remove an incorrect ALWAYS() macro. [forum:/forumpost/23875495059357a2|Forum post 2025-04-08T19:16:42Z]. drh 2025-04-08 20:00:33 +00:00
  • de93449908 Have sqlite3session_diff() automatically attach tables to session objects, as it has always been documented to do. dan 2025-04-08 17:18:01 +00:00
  • 6864f78fdf Have sqlite3session_diff() automatically attach tables to session objects, as it has always been documented to do. dan 2025-04-08 15:58:19 +00:00
  • f72c2fd19e During the post-configure validation of @VAR@ references, ignore commented-out references in files which seem (based on their name) to be makefiles, as it's sometimes handy to comment-out such vars during development of a configure script and its corresponding makefile(s). stephan 2025-04-07 18:29:57 +00:00
  • d2b9cc099d Rename proj-current-proc-name to proj-current-scope and have it distinguish between global scope and an invalid scope level. stephan 2025-04-07 02:16:26 +00:00
  • 7d83ed04b1 Make it legal to call proj-fatal from the global scope. stephan 2025-04-07 02:08:55 +00:00
  • 29c7c8b913 Fix a harmless code typo introduced by [b57e3c3db00a6bc6] and reported by [forum:/forumpost/09957d8b2a|forum post 09957d8b2a]. drh 2025-04-06 10:22:26 +00:00
  • 342a95c406 Add default --manpath for Haiku but that path is read-only on my Haiku system, so shelve this. haiku-configure-tweaks stephan 2025-04-05 11:23:14 +00:00
  • 8aaf23a15e Extend proj-dot-ins-append to provide a way to use it for the special-case emcc.sh.in handling. stephan 2025-04-05 09:17:13 +00:00
  • bc969569a2 Add a note that SQLite's copy of proj.tcl can be considered the "canonical copy" for practical purposes. We now have at least 3 copies of it floating around in other trees. stephan 2025-04-05 08:48:19 +00:00
  • 4d411659c4 Move the automatic reconfigure tcl code from sqlite-config.tcl to proj.tcl so that the TEA bits can reuse it. stephan 2025-04-05 07:12:41 +00:00
  • 7cf1b29065 Refactor proj-make-from-dot-in and friends to be more useful and remove some annoying limitations. stephan 2025-04-05 02:59:37 +00:00
  • 86527e84e6 Rename makefile var libtclsqlite3.SO to libtclsqlite3.DLL for consistency. stephan 2025-04-04 23:12:32 +00:00
  • d09fc81939 Correct a makefile var name type in the configure script, introduced in [4947c1c782]. stephan 2025-04-04 22:59:32 +00:00
  • 0b3ba763c5 Correct a makefile var name type in the configure script, introduced in [8830f86335]. stephan 2025-04-04 22:58:49 +00:00
  • 205d9960cb Add more vars to the tclConfig.sh-to-tcl exporter, for use in the TEA build. stephan 2025-04-04 22:14:18 +00:00
  • 966933f276 Improve --all flag handling so that combinations of (--all --disable-FEATURE) and (--disable-all --FEATURE) work more intuitively. Add missing handling of the --fts3 flag (it was accepted but ignored before). Partial merge of [26ef0ff4bfbb], minus proj.tcl changes. stephan 2025-04-04 21:11:32 +00:00
  • 31eb27ef83 Account for the Mac-specific -install_name linker flag. See [forum:5651662b8875ec0a|forum post 5651662b8875ec0a]. stephan 2025-04-04 20:58:11 +00:00
  • 31076c5f26 Account for the Mac-specific -instal_name linker flag, which is apparently needed for linking some third-party code. See [forum:5651662b8875ec0a|forum post 5651662b8875ec0a]. stephan 2025-04-04 20:50:00 +00:00
  • 24fe85b99a Adapt the --all flag to apply to a different set of features, and default to enabled, for the tcl-extension build. stephan 2025-04-04 16:17:02 +00:00
  • 91db54f07a Improve --all flag handling so that combinations of (--all --disable-FEATURE) and (--disable-all --FEATURE) work more intuitively. Add missing handling of the --fts3 flag (it was accepted but ignored before). Add TCL_LIBS to the set of vars exported via tclConfig.sh for use in the tea build. stephan 2025-04-04 15:41:19 +00:00
  • f90cc8a1a3 Merge trunk cygwin-fixes jan.nijtmans 2025-04-04 13:25:04 +00:00
  • 82d05b7b54 The win32lock and win32longpath tests don't work on Cygwin jan.nijtmans 2025-04-04 13:23:03 +00:00
  • 283d0ee4c6 Minor configure-internal cleanups to support the autosetup port of the TEA build. stephan 2025-04-04 13:08:43 +00:00
  • 74a60fcc0d Merge trunk jan.nijtmans 2025-04-04 06:49:24 +00:00
  • 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