]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
7 months agoSimplify the new syntax to be just "COMMIT AND CONTINUE TRANSACTION". commit-and-begin
drh [Sat, 16 Nov 2024 14:40:11 +0000 (14:40 +0000)] 
Simplify the new syntax to be just "COMMIT AND CONTINUE TRANSACTION".

FossilOrigin-Name: 61797109a2f0fee84bc3e0a0c021544c87e4b985e7e7b549e387e396cf1f86ec

7 months agoLoad all the latest trunk enhancements, and especially the enhancements to
drh [Fri, 15 Nov 2024 20:42:12 +0000 (20:42 +0000)] 
Load all the latest trunk enhancements, and especially the enhancements to
vfstrace, into the commit-and-begin branch.

FossilOrigin-Name: 605889b02122d98011e9a8d458ba01010423680dd69446458ffe7230a1d47937

7 months agoEnhance the vfstrace extension such that the output can be controlled using
drh [Fri, 15 Nov 2024 20:39:41 +0000 (20:39 +0000)] 
Enhance the vfstrace extension such that the output can be controlled using
the "PRAGMA vfstrace('...');" statement.  See header comment on the source code
for details.

FossilOrigin-Name: 96105d33597765c23dbd490b3aa0c2273731d1970d7041720e9f043dbe3517b3

7 months agoIn the interest of minimizing downstream disruption, set the soname of libsqlite3...
stephan [Fri, 15 Nov 2024 19:42:49 +0000 (19:42 +0000)] 
In the interest of minimizing downstream disruption, set the soname of libsqlite3.so to (by default) its legacy value of libsqlite3.so.0 and unconditionally create (or replace) a symlink with that name at install-time, in addition to the newer-named symlinks.

FossilOrigin-Name: 0773677b553e032e992266c6c75e10565729238df3ef52b56602a92cf651bea7

7 months agoAnother approach at implementing COMMIT AND BEGIN.
drh [Fri, 15 Nov 2024 17:28:57 +0000 (17:28 +0000)] 
Another approach at implementing COMMIT AND BEGIN.

FossilOrigin-Name: a905bd5dd6ccb6f2e5671a5b691e61c853aa425e6a53e7e6b6dbc12e4020ef14

7 months agoGeneric auto.def cleanups. No functional differences.
stephan [Fri, 15 Nov 2024 16:35:24 +0000 (16:35 +0000)] 
Generic auto.def cleanups. No functional differences.

FossilOrigin-Name: 02aceb8c138b5b8f38c75aa0792efa12f14b002083df6141cf56ea0602d3174b

7 months agobuildtclext.tcl: work around a case, reported in [forum:0683a49cb02f31a1|forum post...
stephan [Fri, 15 Nov 2024 15:31:13 +0000 (15:31 +0000)] 
buildtclext.tcl: work around a case, reported in [forum:0683a49cb02f31a1|forum post 0683a49cb0], in which package maintainers edit their copy of tclConfig.sh to change the TCL_SHLIB_LD command.

FossilOrigin-Name: e24a3efec8c168b69d665ab20e8d715210208e6cf291ac93549fdd175a9009d6

7 months agoconfigure: add optional pkg-config support for detecting ICU.
stephan [Fri, 15 Nov 2024 10:53:57 +0000 (10:53 +0000)] 
configure: add optional pkg-config support for detecting ICU.

FossilOrigin-Name: 3e5b8077c6c6ce72ecab3110eb45943b9765372df789088982dbd6046a7c2523

7 months agoWhen checking pkg-config for ICU support use icu-io instead of icu-uc, as that contai... autosetup-icu-pkg-config
stephan [Fri, 15 Nov 2024 10:47:11 +0000 (10:47 +0000)] 
When checking pkg-config for ICU support use icu-io instead of icu-uc, as that contains all requires libs on Linux and BSD.

FossilOrigin-Name: 6ca457542e1dceac2d68fe3d29ff1f0beb31a77ca3073bd7d8a6c62faabcdc1d

7 months agoconfigure script doc additions for the ICU feature check.
stephan [Fri, 15 Nov 2024 10:12:03 +0000 (10:12 +0000)] 
configure script doc additions for the ICU feature check.

FossilOrigin-Name: 1925a68fc2323f0788aac9c3c2bb3005182eb3286037bc383181b6aa150d4270

7 months agoAn experiment in optionally using pkg-config to determine the libs to link in for...
stephan [Fri, 15 Nov 2024 10:07:57 +0000 (10:07 +0000)] 
An experiment in optionally using pkg-config to determine the libs to link in for ICU support, but its ldflags is missing one required lib on both Linux and OpenBSD. Keeping this for later reference, as it demonstrates how to use pkg-config from autosetup.

FossilOrigin-Name: 09caa94c9e846f9b3669b3f1acbb26b24b8bfcc9e512f17ea074dd92745c2597

7 months agoAttempt to hold a lock across the COMMIT AND BEGIN boundary so that no other
drh [Thu, 14 Nov 2024 22:59:16 +0000 (22:59 +0000)] 
Attempt to hold a lock across the COMMIT AND BEGIN boundary so that no other
process can start a new transaction in between the COMMIT and the BEGIN.

FossilOrigin-Name: bc8bcc53ff7a0cbe1c2e3a96e1bded055622b667c27284798433cc6d58c7f9fe

7 months agoFix assertion faults in the COMMIT AND BEGIN path.
drh [Thu, 14 Nov 2024 19:59:02 +0000 (19:59 +0000)] 
Fix assertion faults in the COMMIT AND BEGIN path.

FossilOrigin-Name: a9a4ac17c2169fa7f97434177dfb01eaf4fae7f99b9203677d985d048eea4559

7 months agoMerge more makefile enhancements from trunk into the commit-and-begin branch.
drh [Thu, 14 Nov 2024 19:36:41 +0000 (19:36 +0000)] 
Merge more makefile enhancements from trunk into the commit-and-begin branch.

FossilOrigin-Name: 098400d36140b90e1d6dab5f54b080568c633875916a1130b6627599b4f99469

7 months agoFix typo in the handling of the new --dev flag which caused it to set the --debug...
stephan [Thu, 14 Nov 2024 19:34:28 +0000 (19:34 +0000)] 
Fix typo in the handling of the new --dev flag which caused it to set the --debug flag instead of the --with-debug flag (the former is for autosetup's internal use).

FossilOrigin-Name: 81202d2ab5963fdcf20555b6d0b31cc955ac27f1cd87656faea5c0611c9a2ee8

7 months agoRemove $prefix/include from the default -I path because it can cause the build to...
stephan [Thu, 14 Nov 2024 19:25:23 +0000 (19:25 +0000)] 
Remove $prefix/include from the default -I path because it can cause the build to pick up an unintended copy of sqlite3.h. Extend the ICU configure support (the origin of -I$prefix/include) to enable fetching the -I path from icu-config and apply it only to those objects which need it.

FossilOrigin-Name: f778dfdd6d6a4975c903d8ca0ebfb4fa917d543289136ea0ab740cb47d2510c1

7 months agoMerge makefile enhancements from trunk into the commit-and-begin branch.
drh [Thu, 14 Nov 2024 19:08:15 +0000 (19:08 +0000)] 
Merge makefile enhancements from trunk into the commit-and-begin branch.

FossilOrigin-Name: b5dd11e0ac059573c2cc14640f0cd127a9f4c3d629023b21745f5442cb2de28a

7 months agoAdd new makefile target "sqlite3d" (where the "d" means either "development" or
drh [Thu, 14 Nov 2024 19:06:00 +0000 (19:06 +0000)] 
Add new makefile target "sqlite3d" (where the "d" means either "development" or
"debug") that always uses separate source files, regardless of the
--disable-amalgmation setting.

FossilOrigin-Name: 91da205beb7e5cab7a76be98e4cfddc4fb4c07022825ea645bc97f331c6bcdaa

7 months agoAdd --enable-dev configure flag which sets various other flags.
stephan [Thu, 14 Nov 2024 17:52:59 +0000 (17:52 +0000)] 
Add --enable-dev configure flag which sets various other flags.

FossilOrigin-Name: ea79c363a42484357ac4ac3422f3466e5bc5cb56e5b2a06a3dc4ec90fea1c190

7 months agoMerge the latest trunk enhancements and fixes into the commit-and-begin branch.
drh [Thu, 14 Nov 2024 17:25:28 +0000 (17:25 +0000)] 
Merge the latest trunk enhancements and fixes into the commit-and-begin branch.

FossilOrigin-Name: 05fb5d30750d20db86bbee1c27bd5965f999116a05de6414ab2aef060b407ad2

7 months agoRemove unused sqlite_cfg.h.in from the build.
stephan [Thu, 14 Nov 2024 16:06:36 +0000 (16:06 +0000)] 
Remove unused sqlite_cfg.h.in from the build.

FossilOrigin-Name: bba54e26de56ddf804990f5cd9a1978a14580f06c5771a79803907013df8491e

7 months agoFix a state makefile dependency which refered to the now-removed sqlite_cfg.h.in. makefile-simplification
stephan [Thu, 14 Nov 2024 16:00:45 +0000 (16:00 +0000)] 
Fix a state makefile dependency which refered to the now-removed sqlite_cfg.h.in.

FossilOrigin-Name: 9a726b4be8ddd4b388478024a0952cfd4f0b9f665ab69119a6de0b996ac72216

7 months agoRemove some obsolete macros from the CLI.
drh [Thu, 14 Nov 2024 15:55:19 +0000 (15:55 +0000)] 
Remove some obsolete macros from the CLI.

FossilOrigin-Name: 5c4eb625709eda24b11a0437b150a60fc1497c136a4a2ab2b9d559d893dd397a

7 months agoRemove unused sqlite_cfg.h.in (sqlite_cfg.h gets generated without an input template).
stephan [Thu, 14 Nov 2024 15:25:05 +0000 (15:25 +0000)] 
Remove unused sqlite_cfg.h.in (sqlite_cfg.h gets generated without an input template).

FossilOrigin-Name: 6148f2d39237a85edb399e5c2beb305dccd99ca8c0cf143e8c2ddc0fc1d9e916

7 months agoFix a problem with window functions min() and max() when used with a FILTER clause...
dan [Thu, 14 Nov 2024 14:38:16 +0000 (14:38 +0000)] 
Fix a problem with window functions min() and max() when used with a FILTER clause. Forum post [forum:/forumpost/e9126d554a | e9126d554a].

FossilOrigin-Name: d15fb0f75e64bbfdb8df0c0d0358aafbbd7d5e2048df676dafe1abd5e9917f2a

7 months agoDocument the if block at the end of sqlite-check-tcl.
stephan [Thu, 14 Nov 2024 12:23:05 +0000 (12:23 +0000)] 
Document the if block at the end of sqlite-check-tcl.

FossilOrigin-Name: 6bfd09408b9a51c0cbdb28f901a79c9774da755294d7eb67d88e4c42c5652830

7 months agoconfigure: avoid performing multiple checks for -lm on behalf of --enable-fts4 and...
stephan [Thu, 14 Nov 2024 12:09:09 +0000 (12:09 +0000)] 
configure: avoid performing multiple checks for -lm on behalf of --enable-fts4 and --enable-fts5.

FossilOrigin-Name: 6940caa192fa0cc84dbd24191a940aec96c304c68e60ead8f239e85d093e01e0

7 months agoEarly prototype code for COMMIT AND BEGIN. Does not currently work.
drh [Thu, 14 Nov 2024 12:03:13 +0000 (12:03 +0000)] 
Early prototype code for COMMIT AND BEGIN.  Does not currently work.

FossilOrigin-Name: ddac5973215478d0cacdd99c697345019018916453ec0657868a4e2c21601779

7 months agoEnhance the vfstrace.c extension to show symbolic names for the various
drh [Wed, 13 Nov 2024 18:23:18 +0000 (18:23 +0000)] 
Enhance the vfstrace.c extension to show symbolic names for the various
SHM locks.

FossilOrigin-Name: c0dd7de8f1e8eb745a8beff086d8b40b289c2dd75fe099a86ccc2bd0581f5e9a

7 months agoFix a memory leak in the ".dump" command of the CLI that can occur if an
drh [Wed, 13 Nov 2024 18:04:49 +0000 (18:04 +0000)] 
Fix a memory leak in the ".dump" command of the CLI that can occur if an
error other than database corruption is seen while trying to query the
database.

FossilOrigin-Name: 2560cc7072c923f534a5de1e15d2b0dd4ac5faf0a8876d9e3bf9804345585444

7 months agoAdd the test/fork-test.c test program.
drh [Wed, 13 Nov 2024 16:08:02 +0000 (16:08 +0000)] 
Add the test/fork-test.c test program.

FossilOrigin-Name: 0611e2b0cf3f33c28cc9ff6c5da7ebba2033bcbda5b1072a30021a3e1fb4e738

7 months agoAdd the SQLITE_FCNTL_NULL_IO file-control.
drh [Wed, 13 Nov 2024 14:58:35 +0000 (14:58 +0000)] 
Add the SQLITE_FCNTL_NULL_IO file-control.

FossilOrigin-Name: f0e917fcf51b59f8ccfe5b9341937341d0e6016eb275d6c33dcb10b0b301a9da

7 months agoEnsure that the sqlite3_index_info.idxStr string coming back from FTS5
drh [Tue, 12 Nov 2024 13:37:00 +0000 (13:37 +0000)] 
Ensure that the sqlite3_index_info.idxStr string coming back from FTS5
is always zero-terminated, even if the xBestIndex call fails with an
SQLITE_CONSTRAINT error.

FossilOrigin-Name: a4e976a030851357049e672bbc0ff66d9cc152b3d5f8e03fff36a7c6f060a755

7 months agoClarify the documentation to make it clear that rows inserted by a
drh [Mon, 11 Nov 2024 21:11:02 +0000 (21:11 +0000)] 
Clarify the documentation to make it clear that rows inserted by a
CREATE TABLE AS SELECT statement are not counted by sqlite3_count64().
[forum:/forumpost/1e6cde5648|Forum post 1e6cde5648].

FossilOrigin-Name: 5c5982e3937acdcda43d6c5b46a95b82bc1839c3558a4b9ae9022384e0f13f04

7 months agoFix the fts5 trigram tokenizer so that it handles non-nul-terminated strings.
dan [Mon, 11 Nov 2024 19:49:26 +0000 (19:49 +0000)] 
Fix the fts5 trigram tokenizer so that it handles non-nul-terminated strings.

FossilOrigin-Name: 84f4e37178a65e3128ac0240d37ac40df08b4050ab070d10707e35d11dcbeb10

7 months agoAdd the ".dbtotxt" command to the CLI.
drh [Mon, 11 Nov 2024 19:07:58 +0000 (19:07 +0000)] 
Add the ".dbtotxt" command to the CLI.

FossilOrigin-Name: b43acf5a8cd4a5efbb90b71af7710084f49bb90ffe4f56de168e8c3a6b679124

7 months agoWrap some exceptionally long lines in main.mk. Add option to override LDFLAGS on...
stephan [Mon, 11 Nov 2024 18:15:50 +0000 (18:15 +0000)] 
Wrap some exceptionally long lines in main.mk. Add option to override LDFLAGS on the sqlite3.dll target. Audit: all targets for which it is hypothetically relevant can now inherit user-supplied LDFLAGS, but only those provided to the configure script, not at make-time, in order to mimic the historical build's restriction in that regard.

FossilOrigin-Name: 073080cae3ea0d12b133d9c9ae98413bb32870a9738c98b89bc345181be81f23

7 months agoUse Win32 APIs to read/write the console in Windows unless the
drh [Mon, 11 Nov 2024 17:02:29 +0000 (17:02 +0000)] 
Use Win32 APIs to read/write the console in Windows unless the
SQLITE_USE_STDIO_FOR_CONSOLE option is defined.  This is an attempt to get
the build working on MinGW.

FossilOrigin-Name: abfe488ed67e2e3510c230e656ecf203afa549ebd1d1872442f1fadc97d0817e

7 months agoDoc update to account for [05073350087b].
stephan [Mon, 11 Nov 2024 09:53:40 +0000 (09:53 +0000)] 
Doc update to account for [05073350087b].

FossilOrigin-Name: b81976c520fbad0bbdbbb877fe85691bcda25c12cf5597cfe224fb6306cd65b3

7 months agoRename proj-define-if-opt-truthy to the more accurate, and less verbose, proj-define...
stephan [Mon, 11 Nov 2024 09:37:19 +0000 (09:37 +0000)] 
Rename proj-define-if-opt-truthy to the more accurate, and less verbose, proj-define-for-opt.

FossilOrigin-Name: 05073350087b368312515134bdf9a266eb8289a065f208421fe08aa38b562d4b

7 months agoFix a case in fts3 where a corrupt database record was not being handled correctly.
dan [Sat, 9 Nov 2024 17:54:51 +0000 (17:54 +0000)] 
Fix a case in fts3 where a corrupt database record was not being handled correctly.

FossilOrigin-Name: cbcb53759b9510379e2159d14b73c9746e611df550b0bd05887bd4a480b519a8

7 months agoFix a deps problem, introduced in [1bd9de719], which breaks the build on systems...
stephan [Sat, 9 Nov 2024 14:34:20 +0000 (14:34 +0000)] 
Fix a deps problem, introduced in [1bd9de719], which breaks the build on systems where HAVE_TCL=0.

FossilOrigin-Name: 7953a8bdcba7242c98f786283270d7b3f8830058a29f2d810457eef697855325

7 months agoSimplify usage of proj-assert by making the expr prefix implicit. Add an optional...
stephan [Sat, 9 Nov 2024 10:23:04 +0000 (10:23 +0000)] 
Simplify usage of proj-assert by making the expr prefix implicit. Add an optional description arg to proj-assert, defaulting to the body of the assertion script.

FossilOrigin-Name: ada7b36c37c59ea02e54462b0eb8b93ff6ab45863edfd67b19f1e1a7bb2f97de

7 months agoRemove three unused files from autosetup/.
stephan [Sat, 9 Nov 2024 09:19:29 +0000 (09:19 +0000)] 
Remove three unused files from autosetup/.

FossilOrigin-Name: 906563a7e07fca81effb31a77ee5d7cdacd4cc6157e16e1139da70c92716869a

7 months agoRemove an unused lib import from auto.def.
stephan [Sat, 9 Nov 2024 06:35:09 +0000 (06:35 +0000)] 
Remove an unused lib import from auto.def.

FossilOrigin-Name: 53a71981abf5aaca01e86ff87c3779d7dcc6661c80e1f2bf74515f49993b6a0d

7 months agoIncrease the minimum SQLITE_LENGTH_LIMIT from 1 to 30 to avoid problems doing
drh [Fri, 8 Nov 2024 20:57:45 +0000 (20:57 +0000)] 
Increase the minimum SQLITE_LENGTH_LIMIT from 1 to 30 to avoid problems doing
simple things like converting strings into integers.  See also
[8fd5b8ec4ab9b555].

FossilOrigin-Name: 6aa01707af4bd96f0f173f9e87f2398be7e6f246f59baa117092849a626b2d61

7 months agoFix an assert() failure in sqlite3recover.c.
dan [Fri, 8 Nov 2024 20:44:16 +0000 (20:44 +0000)] 
Fix an assert() failure in sqlite3recover.c.

FossilOrigin-Name: f52bb19281b189508f5c31305cbd4a5651f3e036a4ee753c64488b0c7e5d2e4d

7 months agoRemove one dep from .tclenv.sh which is only valid for configure-driven builds, not...
stephan [Fri, 8 Nov 2024 14:34:33 +0000 (14:34 +0000)] 
Remove one dep from .tclenv.sh which is only valid for configure-driven builds, not static makefiles.

FossilOrigin-Name: 22986767da8f086daaa6dc760c15e6aedcc5d2d6033937ac2f112ee5750d7fdb

7 months agoAdd 'tcl' makefile target which builds all but tclextension (which does not have...
stephan [Fri, 8 Nov 2024 13:37:00 +0000 (13:37 +0000)] 
Add 'tcl' makefile target which builds all but tclextension (which does not have a well-defined name and dependencies). Improve the deps for .tclenv.sh to avoid getting a stale tclsh when re-configuring with a different --with-tcl(sh).

FossilOrigin-Name: 1bd9de719b0944fdceec32103da3131a7d387820850ab03f652f813d840355b8

7 months agoAdd missing CFLAGS.intree_includes to T.compile.tcl to fix build of tclsqlite3.
stephan [Fri, 8 Nov 2024 08:01:56 +0000 (08:01 +0000)] 
Add missing CFLAGS.intree_includes to T.compile.tcl to fix build of tclsqlite3.

FossilOrigin-Name: bb3c6dc126896528328bb9f51a28a1d46d4549e687c93c16f2d164230c6b1684

7 months agoMore closely emulate the legacy build's handling of LDFLAGS, permitting them to be...
stephan [Fri, 8 Nov 2024 07:37:12 +0000 (07:37 +0000)] 
More closely emulate the legacy build's handling of LDFLAGS, permitting them to be passed to configure but not to make. We cannot 100% enforce that because main.mk is not filtered by the configure script, so we instead add a level of indirection to make passing of LDFLAGS=... to make a no-op.

FossilOrigin-Name: d1af9f31831dc99a808b916df4d414943f5d56796c8342411ee4a57abfde85e2

7 months agoSupport clients passing in LDFLAGS to configure/make, but in a more limited form...
stephan [Fri, 8 Nov 2024 06:22:15 +0000 (06:22 +0000)] 
Support clients passing in LDFLAGS to configure/make, but in a more limited form than the legacy build it (i.e. only to select targets rather than all targets). Rename make-side internal uses of CFLAGS to CFLAGS.env for consistency with the new LDFLAGS.env. See discussion in [forum:5fcbea40f3|forum thread 5fcbea40f3].

FossilOrigin-Name: a5e07e8063ad50f2cf46b6be568717adc9604bd6dbf926a526de43bda2996ad0

7 months agoDisable setting of the SONAME (enabled by [2a2419ef742]), as it's not clear whether...
stephan [Fri, 8 Nov 2024 05:26:26 +0000 (05:26 +0000)] 
Disable setting of the SONAME (enabled by [2a2419ef742]), as it's not clear whether blindly setting the SONAME, which now differs from its historical value, will cause more grief than it solves. Add a (disabled) experiment which permits setting (or not) the SONAME to the legacy or current values. This change is up for further change as experimentation proves whether we truly need/want the SONAME. See discussion in/around [forum:0c6fc6f46b2cb3|forum post 0c6fc6f46b2cb3].

FossilOrigin-Name: d931456805e7d5c3379ca68b97a0a1d4ab1eb80c5e90c169cf43fc8239247d25

7 months agoFix an OOB write that could occur in fts3 when dealing with corrupt database records.
dan [Thu, 7 Nov 2024 17:34:53 +0000 (17:34 +0000)] 
Fix an OOB write that could occur in fts3 when dealing with corrupt database records.

FossilOrigin-Name: 108863ec7998e0a35569e3c6534b538f00d4ef87fdb316bd6a4a9a7a272bba47

7 months agoExtend the set of --flags which get cleared/unset when using --with-wasi-sdk.
stephan [Thu, 7 Nov 2024 16:59:15 +0000 (16:59 +0000)] 
Extend the set of --flags which get cleared/unset when using --with-wasi-sdk.

FossilOrigin-Name: 2a2419ef742c9f37c32be04d417337c1fa22503305d2df154fa38b2b69eae943

7 months agoDoc touchups in the line-editing feature check code.
stephan [Thu, 7 Nov 2024 15:23:54 +0000 (15:23 +0000)] 
Doc touchups in the line-editing feature check code.

FossilOrigin-Name: bb5656bdc905947df205432e108ca6724393061a27028e23bf35b4bf48505d4f

7 months agotcl configuration: --with-tcl=prefix is equivalent to passing the --prefix dir to...
stephan [Thu, 7 Nov 2024 15:04:15 +0000 (15:04 +0000)] 
tcl configuration: --with-tcl=prefix is equivalent to passing the --prefix dir to it. If --with-tcl or --enable-tcl are explicitly passed in and tclConfig.sh is not found, fail fatally. When TCL is either explicitly disabled or default search for it fails non-fatally, be more explicit about which components are not available.

FossilOrigin-Name: c5389d39a90047683e80ae9081d5d10aaa95da00dfc8a133b4a1a6949a11620d

7 months agoFurther improvements to the ".mode json" output in the CLI.
drh [Thu, 7 Nov 2024 12:03:53 +0000 (12:03 +0000)] 
Further improvements to the ".mode json" output in the CLI.

FossilOrigin-Name: 6201b5707f8c895028f9c08cb4f83d33a16a91bf04ed3830ac51aa763d6b7205

7 months agoAutosetup doc touchups.
stephan [Thu, 7 Nov 2024 10:07:20 +0000 (10:07 +0000)] 
Autosetup doc touchups.

FossilOrigin-Name: 574515290058ddfaf39a4221fa0f7a99222c4b040dd455348550816b18492c20

7 months agoExtend the list of "truthy" config values to include "true". Related doc updates.
stephan [Thu, 7 Nov 2024 09:36:01 +0000 (09:36 +0000)] 
Extend the list of "truthy" config values to include "true". Related doc updates.

FossilOrigin-Name: 4455718e485a31100ce3eb4ac5aeb7437c667d7994c6d2abfb38ad8bd1976d6e

7 months agoAdd some internal docs to auto.def explaining certain passages.
stephan [Thu, 7 Nov 2024 08:57:38 +0000 (08:57 +0000)] 
Add some internal docs to auto.def explaining certain passages.

FossilOrigin-Name: 4749967e1b85675580eda2e92f4463c022e3ff929390a8f5b59f614f3975e158

7 months agoDocument the purpose of a global auto.def var added in [0d558318172d].
stephan [Thu, 7 Nov 2024 08:29:58 +0000 (08:29 +0000)] 
Document the purpose of a global auto.def var added in [0d558318172d].

FossilOrigin-Name: f5b6604716826b2057e969a8c0d099325b22eac42f1da65ec367671fc6625639

7 months agoWhen --with-linenoise refers to the msteveb flavor and jimsh is the TCL used for...
stephan [Thu, 7 Nov 2024 07:31:25 +0000 (07:31 +0000)] 
When --with-linenoise refers to the msteveb flavor and jimsh is the TCL used for code generation, enable linenoise in jimsh. Remove some dead auto.def code.

FossilOrigin-Name: 0d558318172dddc8d5c5842625ddf09866ae09cac9cf28731be44db86b5e0fb1

7 months agoAdd mention of file-isexec in autosetup/README.md.
stephan [Thu, 7 Nov 2024 06:02:05 +0000 (06:02 +0000)] 
Add mention of file-isexec in autosetup/README.md.

FossilOrigin-Name: f469356749b62b3ce4161b40ed105d60867a366a389efa583fe9607a13426803

7 months agoChange several 'file exists' checks for tclsh to file-isexec because that checks...
stephan [Thu, 7 Nov 2024 06:00:14 +0000 (06:00 +0000)] 
Change several 'file exists' checks for tclsh to file-isexec because that checks for .exe extensions on Windows.

FossilOrigin-Name: 052a1b4d7cb43b7f65028c41e9a7a17b533c834d8f620fbc7bc0adddb1fdb843

7 months agoFor platforms where tclsh is found but tclConfig.sh is not, set HAVE_TCL to 0. We...
stephan [Thu, 7 Nov 2024 05:26:09 +0000 (05:26 +0000)] 
For platforms where tclsh is found but tclConfig.sh is not, set HAVE_TCL to 0. We can't build the TCL components on those. Problem reported in [forum:5106aee3a8|forum post 5106aee3a8].

FossilOrigin-Name: 04d2576b2e516fc5f5ba719d6bb01d25fd3b06b1c2d26acbec32bcdd65e9a01c

7 months agoFix an FTS3 corruption test case that depends on the specific pseudo-random
drh [Wed, 6 Nov 2024 19:19:49 +0000 (19:19 +0000)] 
Fix an FTS3 corruption test case that depends on the specific pseudo-random
byte sequence generated by sqlite3_randomness(), which is different on
big-endian platforms than it is on little-endian platforms.

FossilOrigin-Name: 6216bfcb74273b7893735e265d3f04d1362fa625cd60cebccb866ce7d6c50e01

7 months agoRe-phrase some (#if !SQLITE_CORE) to (#ifndef SQLITE_CORE), as discussed in forum...
stephan [Wed, 6 Nov 2024 12:58:31 +0000 (12:58 +0000)] 
Re-phrase some (#if !SQLITE_CORE) to (#ifndef SQLITE_CORE), as discussed in forum:cea40371c5e34b09 | for post cea40371c5e34b09].

FossilOrigin-Name: 5495b12569c318d5020b4b5a625a392ef8e777b81c0200624fbbc2a6b5eddef9

7 months agoElaborate on how autosetup selects a tclsh to use.
stephan [Wed, 6 Nov 2024 12:13:04 +0000 (12:13 +0000)] 
Elaborate on how autosetup selects a tclsh to use.

FossilOrigin-Name: d3887895a33742fb1fc97235cf897d295b237a9fb5a84031826f9c1018106f18

7 months agoFix typo in the LICENSE.md file.
drh [Wed, 6 Nov 2024 10:09:21 +0000 (10:09 +0000)] 
Fix typo in the LICENSE.md file.

FossilOrigin-Name: 0588cc5c2fad980aa67402f4fe959a499d711ff23903a521af1b1abc4586c802

7 months agoMinor doc tweaks.
stephan [Wed, 6 Nov 2024 08:29:47 +0000 (08:29 +0000)] 
Minor doc tweaks.

FossilOrigin-Name: 2919a61bd4f8cb4f53462d4807cbc04ac5f71dd437cd693538754cf3f17d00cc

7 months agoWhen constructing the auto-reconfigure commands, only quote args which look like...
stephan [Wed, 6 Nov 2024 07:20:20 +0000 (07:20 +0000)] 
When constructing the auto-reconfigure commands, only quote args which look like they need it. Minor doc updates.

FossilOrigin-Name: d4fbd34f7a4b0e6179cb06114d148fbc5d30b8dc8db0b764f4347dd50ff591ba

7 months agoMinor doc tweaks and typo fixes.
stephan [Wed, 6 Nov 2024 06:44:35 +0000 (06:44 +0000)] 
Minor doc tweaks and typo fixes.

FossilOrigin-Name: 406d9122b75990722ab79fdf42d4528d670645d8f778ca0b5a2a35fa1dc106c4

7 months agoSplit the motivation of the makefile var naming convention into its doc own section.
stephan [Wed, 6 Nov 2024 06:06:43 +0000 (06:06 +0000)] 
Split the motivation of the makefile var naming convention into its doc own section.

FossilOrigin-Name: bf42b93cc7a4f8de2308fa4e5a798a62797bc95d95e4b0bd06035c74413fa828

7 months agoAdd a section to autosetup/README.md describing the motivations for the more glaring...
stephan [Wed, 6 Nov 2024 05:54:27 +0000 (05:54 +0000)] 
Add a section to autosetup/README.md describing the motivations for the more glaring design decisions.

FossilOrigin-Name: c0940a822a63bff74585bd37401eca92f74ddf9fe95748d2474039ee9b2bd9b6

7 months agoAdd autosetup/README.md - maintenance-related docs for SQLite developers (e.g. how...
stephan [Wed, 6 Nov 2024 04:38:05 +0000 (04:38 +0000)] 
Add autosetup/README.md - maintenance-related docs for SQLite developers (e.g. how to update autosetup). Start marking up the proj.tcl APIs with autosetup's doc markup so that they appear in the ./configure --reference output.

FossilOrigin-Name: aa6213767f0d7e63c753e33aadb95cbeb8e522c22f2fe1bbfa4df66bea6e3380

7 months agoEnhance the --with-emsdk flag to use a default value of 'auto', meaning to search...
stephan [Wed, 6 Nov 2024 02:59:59 +0000 (02:59 +0000)] 
Enhance the --with-emsdk flag to use a default value of 'auto', meaning to search the environment for it, and to fail fatally if --with-emsdk is explicitly provided but the SDK is not found.

FossilOrigin-Name: 9724b747caa926bca09653ea6ac3c0f7869824c9a476eb81f03e1a6763552da1

7 months agoImprove the ".mode json" output of the CLI so that it encodes U+007f using
drh [Tue, 5 Nov 2024 23:26:31 +0000 (23:26 +0000)] 
Improve the ".mode json" output of the CLI so that it encodes U+007f using
an escape sequence.

FossilOrigin-Name: 8b58cf9bbd3090c60f1ee7468cdeeb0b0fa4560d1e51a5fd0bef43692d10fe04

7 months agoHave the xBestIndex method of the generate_series virtual table ignore contraints...
dan [Tue, 5 Nov 2024 18:25:32 +0000 (18:25 +0000)] 
Have the xBestIndex method of the generate_series virtual table ignore contraints on the "value" column with usable=0.

FossilOrigin-Name: f5113a2ef84831ad2da723fa7e29e0d575e74e10585741ff51db8c2e37332cd2

7 months agoWork around a TCL {list-quoting} quirk when escaped/deferred var derefs are passed...
stephan [Tue, 5 Nov 2024 13:34:30 +0000 (13:34 +0000)] 
Work around a TCL {list-quoting} quirk when escaped/deferred var derefs are passed in as values to the autotools-conventional --XYZdir flags (as seen in a downstream package build script).

FossilOrigin-Name: 6adfca7e85648584740c8a127b95bd46aaad45fa2d162bd44622bb47debbcbcb

7 months agoRemove the --enable-rbu flag from the configure script, per /chat discussion, because...
stephan [Tue, 5 Nov 2024 13:03:58 +0000 (13:03 +0000)] 
Remove the --enable-rbu flag from the configure script, per /chat discussion, because it's a highly niche feature not in active use.

FossilOrigin-Name: 77db0cd736746873d4ed3dbf0e9a43a3e15ab49961fccee20417e01f88de8664

7 months agoEnsure that the one-line running status output from testrunner.tcl does not
drh [Tue, 5 Nov 2024 11:59:45 +0000 (11:59 +0000)] 
Ensure that the one-line running status output from testrunner.tcl does not
exceed the 80-char line width of a standard terminal.

FossilOrigin-Name: 1eae0f9ed3c4530d117a8efc4adaf0b2cc422083f0407830a1a6d2a5b970fa1a

7 months agoauto.def: remove an extraneous global var, some dead tcl/makefile code/comments,...
stephan [Tue, 5 Nov 2024 09:49:53 +0000 (09:49 +0000)] 
auto.def: remove an extraneous global var, some dead tcl/makefile code/comments, and some extraneous output. Rename an internal-use proc. Disable the ext/wasm cleanup in the top-level (dist)clean because the noise from gmake is irritating.

FossilOrigin-Name: ee9eb8b157c93b33a8ac201c31169cdd1d2cf2f21da92f7a6a418a41e5a50b7b

7 months agoEnhance the rpath configure check to honor --exec-prefix=... Remove some debugging...
stephan [Tue, 5 Nov 2024 08:21:47 +0000 (08:21 +0000)] 
Enhance the rpath configure check to honor --exec-prefix=... Remove some debugging code and move other debugging code around.

FossilOrigin-Name: a8c1a82b56412a4277a3c9bf2b256d3bd22bd8aca9096b8d08fcc0bf7d9364cb

7 months agoRoll back [47e50fa84dacf83c] for consistency with the legacy build. sqlite3.pc is...
stephan [Tue, 5 Nov 2024 08:14:27 +0000 (08:14 +0000)] 
Roll back [47e50fa84dacf83c] for consistency with the legacy build. sqlite3.pc is now generated equivalently to prior versions.

FossilOrigin-Name: af79d11e389b4772a401f6c2cbde42de95287addf7077ad4db55d39cc504f9fe

7 months agoAdd the --enable-rbu configure flag and building of the commented-out rbu binary.
stephan [Tue, 5 Nov 2024 07:55:33 +0000 (07:55 +0000)] 
Add the --enable-rbu configure flag and building of the commented-out rbu binary.

FossilOrigin-Name: 6c6fa3adfee6ec2c57dc76461e7c97416b4fad45772ce367d223cc67e66049f6

7 months agoRemove some dead makefile code.
stephan [Tue, 5 Nov 2024 07:29:25 +0000 (07:29 +0000)] 
Remove some dead makefile code.

FossilOrigin-Name: b69ce89d22c4f3a2ba176f2b4b39fd430da4e253a484a1e61ec7beff3c7522a1

7 months agoChange a (#define HAVE_FCHMOD) to (#define HAVE_FCHMOD 1) per user request in [forum...
stephan [Tue, 5 Nov 2024 02:38:32 +0000 (02:38 +0000)] 
Change a (#define HAVE_FCHMOD) to (#define HAVE_FCHMOD 1) per user request in [forum:24cf6020c6|forum post 24cf6020c6]. There's no semantic change for this tree, but this is consistent with how auto-config tools would define it and the empty #define interferes with some downstream code.

FossilOrigin-Name: 9c46d84f3bf2f5876211b498104067d32a4000979fad1345deb1000c23716d75

7 months agosqlite3_stdio.c now uses sqlite3_malloc()/sqlite3_free() instead of malloc()/free...
stephan [Tue, 5 Nov 2024 02:14:23 +0000 (02:14 +0000)] 
sqlite3_stdio.c now uses sqlite3_malloc()/sqlite3_free() instead of malloc()/free(). Reported in [forum:6b6cb3ddc8a89b55|forum post 6b6cb3dd].

FossilOrigin-Name: 1982471da14648594d616233be947e343611e7e3d6be7ae6b20d739e544675ea

7 months agoFix the percentile extension so that works as an independent extension.
drh [Mon, 4 Nov 2024 20:16:30 +0000 (20:16 +0000)] 
Fix the percentile extension so that works as an independent extension.
[forum:/forumpost/ab25469a350e0488|Forum post ab25469a350e0488]

FossilOrigin-Name: 27b829c34463d141125d31b59dd65275b88200e3edb1f8238979e02d0fc3614e

7 months agoFix harmless compiler warnings.
drh [Mon, 4 Nov 2024 19:18:19 +0000 (19:18 +0000)] 
Fix harmless compiler warnings.

FossilOrigin-Name: bc93e17924f732468282c5e7a483811d27af573a47aec8ba806f4fe3c5919893

7 months agoEnsure that the database encoding is detected before the code generator gets
drh [Mon, 4 Nov 2024 19:08:53 +0000 (19:08 +0000)] 
Ensure that the database encoding is detected before the code generator gets
too far down into byte-code generation and execution, but not so early that
it interferes with initialization.
[forum:/forumpost/bc75a4d20b756044|Forum thread bc75a4d20b756044].

FossilOrigin-Name: af7173a10ec6a4ab465207c1ee20393e8b5f06604c0f3b2fdc19e52c2fc013d5

8 months agoAvoid loading the entire record into memory for an sqlite3_preupdate_old() call that...
dan [Mon, 4 Nov 2024 16:59:02 +0000 (16:59 +0000)] 
Avoid loading the entire record into memory for an sqlite3_preupdate_old() call that retrieves an IPK value.

FossilOrigin-Name: 7f4de43733200beeb3ff0a70d51bbc68f5331895698ea95a82741cfd7bb66834

8 months agoFix two mismatched uses of malloc() and sqlite3_free() in sqlite3_stdio.c, as reporte...
stephan [Mon, 4 Nov 2024 13:57:20 +0000 (13:57 +0000)] 
Fix two mismatched uses of malloc() and sqlite3_free() in sqlite3_stdio.c, as reported in [forum:7dd7c70038 | forum post 7dd7c70038].

FossilOrigin-Name: af0a345b3b287f82b54249cfa574ef3ce52305a6452058aac98cd473c361919e

8 months agoFix typo of --libexec ==> --libexecdir, discovered via audit of a downstream build...
stephan [Mon, 4 Nov 2024 12:11:20 +0000 (12:11 +0000)] 
Fix typo of --libexec ==> --libexecdir, discovered via audit of a downstream build script. Unrelated doc touchups.

FossilOrigin-Name: a60e5d76d06ae0568fbc6e068a7012c77778607cd60da92a1b84ff8f33049a93

8 months agoEnsure that the ext/wasm fiddle build undefines certain shell feature flags which...
stephan [Mon, 4 Nov 2024 10:16:15 +0000 (10:16 +0000)] 
Ensure that the ext/wasm fiddle build undefines certain shell feature flags which it cannot use but might be inherited from the top-level makefile.

FossilOrigin-Name: 99bb5d9b68edc3c5439f0776bce74532dd0131894c31dc8227d084e926c4638c

8 months agoWhen installing the shared lib, re-activate the accommodation of legacy-style .so...
stephan [Mon, 4 Nov 2024 08:29:02 +0000 (08:29 +0000)] 
When installing the shared lib, re-activate the accommodation of legacy-style .so links (removed in [80584e165e4]) based on two reports that not having those will cause all clients linked against the legacy naming convention to fail to dynamically link (which would preclude an update of a system-level libsqlite3 package). Set up the infrastructure needed for adding an SONAME to the library but do not yet activate it. See discussion in/around [forum:046133a7da|forum post 046133a7da].

FossilOrigin-Name: 1586eaceb1716fbeafc4af691d0f80206cd5390388b099d4939e6be5d3eb975b

8 months agoMinor internal doc additions.
stephan [Mon, 4 Nov 2024 06:38:44 +0000 (06:38 +0000)] 
Minor internal doc additions.

FossilOrigin-Name: 9edc8582c97f40f546699e6d1fb075773d5476df81b6c3f8900d1f2716549295

8 months agoLatest upstream autosetup to get handling of (==ignoring) autotools' x-includes and...
stephan [Mon, 4 Nov 2024 05:27:21 +0000 (05:27 +0000)] 
Latest upstream autosetup to get handling of (==ignoring) autotools' x-includes and x-libraries flags and stop leakage of some autosetup-init-level vars into auto.def's global scope.

FossilOrigin-Name: 307349bf91df2935efeaeb5617f43c2223aa7523e55034fb532cc4386a29d74c

8 months agoLatest upstream jimsh0.c, which accounts for the problem patched locally by [29b94495...
stephan [Mon, 4 Nov 2024 04:12:02 +0000 (04:12 +0000)] 
Latest upstream jimsh0.c, which accounts for the problem patched locally by [29b944959568].

FossilOrigin-Name: c7a5b7d2dbfd5c44980f7e9d7efc1e8c7882f192b14f534537745d0a0125909f