]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
8 months agoAfter discussing [4d4423df8d14] with Steve Bennett, do not prepend $prefix/bin to...
stephan [Tue, 22 Oct 2024 03:56:21 +0000 (03:56 +0000)] 
After discussing [4d4423df8d14] with Steve Bennett, do not prepend $prefix/bin to the search path for binaries, as that path is commonly used for cross-compiled targets and we want binaries which will run on the build host.

FossilOrigin-Name: f2008a7d797263de25eaed60d4b6bd5c87cdb917bb92cfc8700f91e6416d744c

8 months agoTouch configure-generated files at configure-time even if autosetup does not update...
stephan [Tue, 22 Oct 2024 03:33:11 +0000 (03:33 +0000)] 
Touch configure-generated files at configure-time even if autosetup does not update them because their contents would not be changed. Works around wonky deps causing too-frequent rebuilds.

FossilOrigin-Name: 339b48af1728f6acb4c3a02f84bd432466dcc728d3d01f9728e82f3c6aedb002

8 months agoRename hwaci-error to the more descriptive hwaci-fatal. Use autosetup's file-isexec...
stephan [Tue, 22 Oct 2024 03:12:11 +0000 (03:12 +0000)] 
Rename hwaci-error to the more descriptive hwaci-fatal. Use autosetup's file-isexec instead of [file executable] for portability. Remove the binary file lookup cache - unnecessary complexity. When searching for tools like tclsh, check under $prefix/bin before checking the $PATH. This seems like the right thing to do, but the fact that autosetup's file-search API's do not do that by default leaves some room for doubt about the wisdom of this change.

FossilOrigin-Name: 4d4423df8d14fb683bb89bebeac4b108a40847259a116fcb634b9e6594907026

8 months agoBring checksymbols target up to date and add a TODO based on a feature request from...
stephan [Mon, 21 Oct 2024 22:15:04 +0000 (22:15 +0000)] 
Bring checksymbols target up to date and add a TODO based on a feature request from the forum.

FossilOrigin-Name: c00a03256b3f06411f93e690f875e9bc59a750aeea3ecf84bf8c8bec7c08b8ae

8 months agoResolve two build FIXMEs.
stephan [Mon, 21 Oct 2024 21:32:58 +0000 (21:32 +0000)] 
Resolve two build FIXMEs.

FossilOrigin-Name: 4de51c165ca4d0ad66f5dd7aa16fc82c673c6791b65990339134fb26b858ec33

8 months agoGet most of the numerous misc tool binaries building.
stephan [Mon, 21 Oct 2024 21:22:18 +0000 (21:22 +0000)] 
Get most of the numerous misc tool binaries building.

FossilOrigin-Name: fa74cbb40c0f2e0135ac97fc4fa899b2ab7973f925f154e8e18c85661d60e17f

8 months agoSimplify how the targets which may or may not be enabled, depending on config flags...
stephan [Mon, 21 Oct 2024 20:12:03 +0000 (20:12 +0000)] 
Simplify how the targets which may or may not be enabled, depending on config flags, are formulated in main.mk.

FossilOrigin-Name: 7bea793ce46ab5c41b242c5e69b4f9bd8536a9b106e8c39f7ac002451d5db6ea

8 months agoMore build doc tweaks and get ./startup building.
stephan [Mon, 21 Oct 2024 19:51:32 +0000 (19:51 +0000)] 
More build doc tweaks and get ./startup building.

FossilOrigin-Name: cee285029c7225a2457062eb2b4ea7c6a17a3a5ba5fb776ebbb4ea8be62b9fff

8 months agoStart moving most Makefile.in docs over to main.mk. Fix compilation of tclsqlite.c.
stephan [Mon, 21 Oct 2024 17:50:55 +0000 (17:50 +0000)] 
Start moving most Makefile.in docs over to main.mk. Fix compilation of tclsqlite.c.

FossilOrigin-Name: 5b154e08ab5e8a8fd1ac1b28debd46824ef55b533a60ca5711c55b5a59a871cd

8 months agoAdd docs introducing how to define and use autosetup configure flags. Use -DJIM_COMPA...
stephan [Mon, 21 Oct 2024 16:06:49 +0000 (16:06 +0000)] 
Add docs introducing how to define and use autosetup configure flags. Use -DJIM_COMPAT when building jimsh to force its expr command to be syntax-compatible with canonical TCL.

FossilOrigin-Name: a6a275de3d975fdf7432d71a915b40426a976725ebd81a178b5e80d14cf3a2df

8 months agoMerge trunk into autosetup branch.
stephan [Mon, 21 Oct 2024 13:11:43 +0000 (13:11 +0000)] 
Merge trunk into autosetup branch.

FossilOrigin-Name: 347a50e66fa17bba997f6cbaa5bd693d029df488e54c24f7e4db47b65e84ce81

8 months agoAvoid using LIKE in sqlite3expert.c, in case "PRAGMA case_sensitive_like" has been...
dan [Mon, 21 Oct 2024 10:47:24 +0000 (10:47 +0000)] 
Avoid using LIKE in sqlite3expert.c, in case "PRAGMA case_sensitive_like" has been used or the "like" UDF replaced by something unexpected.

FossilOrigin-Name: 9f642b3dbc8febfacad97076030f44e9b40067e27222f2bcb84813c5765d3d2a

8 months agoFix another problem with ".expert" and virtual tables. [forum:/forumpost/49d6a19ec...
dan [Sun, 20 Oct 2024 07:19:38 +0000 (07:19 +0000)] 
Fix another problem with ".expert" and virtual tables. [forum:/forumpost/49d6a19ec|Forum post 49d6a19ec].

FossilOrigin-Name: 7a7162293c8fdb0078fe56948d697703539dd23273b2072990d4391c761e6ae2

8 months agoBuild doc touchups.
stephan [Sun, 20 Oct 2024 02:47:56 +0000 (02:47 +0000)] 
Build doc touchups.

FossilOrigin-Name: 109d441bf1bcdbc01d1f3f2aa145039539fc5aad02f91fc987a0c3702e21809d

8 months agoA possible fix for some as-yet-unused configure code which looks for a module loader.
stephan [Sun, 20 Oct 2024 02:35:25 +0000 (02:35 +0000)] 
A possible fix for some as-yet-unused configure code which looks for a module loader.

FossilOrigin-Name: c6c799a54b3fad2f8c2b73b0a88f64dda38736a283bbf4dd286ac9dd6d6bf153

8 months agoCosmetic tweaks to auto.def.
stephan [Sun, 20 Oct 2024 01:41:36 +0000 (01:41 +0000)] 
Cosmetic tweaks to auto.def.

FossilOrigin-Name: 476d2407e52ebf66e18f4f5f70c7c2a37bb4d253969c23e1e75d4cb0460a93e0

8 months agoMinor doc updates.
stephan [Sun, 20 Oct 2024 01:34:13 +0000 (01:34 +0000)] 
Minor doc updates.

FossilOrigin-Name: 6578a8d59e351182ee16a1f4e4b2c88a042a92dd8b32049947aa0436464b8588

8 months agoDo not check for Emscripten when doing a --with-wasi-sdk build.
stephan [Sun, 20 Oct 2024 01:14:54 +0000 (01:14 +0000)] 
Do not check for Emscripten when doing a --with-wasi-sdk build.

FossilOrigin-Name: 111cff2cf38886ccec11b45db8b891ec84e24d0b61d413b35fd474b51003e8f2

8 months agoGeneric build cleanups and reorgs.
stephan [Sun, 20 Oct 2024 01:09:51 +0000 (01:09 +0000)] 
Generic build cleanups and reorgs.

FossilOrigin-Name: 365a3d71cf9e0be11e7b3e90b6500142619102d8321c1d6f8111f37117a57929

8 months agoAdd sqlite3_rsync to the docs at the top of mktoolzip.tcl. No code changes.
stephan [Sat, 19 Oct 2024 22:45:50 +0000 (22:45 +0000)] 
Add sqlite3_rsync to the docs at the top of mktoolzip.tcl. No code changes.

FossilOrigin-Name: 10f5c4a2fce8a9ea9b1533cabbaf4ca8549e72950d5c460c0f4501a9fc50e3e8

8 months agoMore build cleanups and get it working with BSD make (which apparently does not suppo...
stephan [Sat, 19 Oct 2024 20:53:46 +0000 (20:53 +0000)] 
More build cleanups and get it working with BSD make (which apparently does not support $< and behaves slightly differently than gmake with X?=Y).

FossilOrigin-Name: dcf4fc78fb2813d37eb56c358009f1e5225f28a0c85c710c8127db330efaf319

8 months agoMove most of the makefile code into the static main.mk.
stephan [Sat, 19 Oct 2024 20:26:17 +0000 (20:26 +0000)] 
Move most of the makefile code into the static main.mk.

FossilOrigin-Name: 09905ed094f7102dbb4fc81b059452c50b48b0f3a2bd9736bed364b0639d89d7

8 months agoFactor out all autosetup-processed @if/@else blocks from Makefile.in in prep for...
stephan [Sat, 19 Oct 2024 18:31:47 +0000 (18:31 +0000)] 
Factor out all autosetup-processed @if/@else blocks from Makefile.in in prep for moving most of the makefile code into main.mk (which has, so far, been completely overlooked in this port but will now become the main basis for the static parts of the build). The idea is that all build configuration goes into a platform-dependent makefile which then includes main.mk.

FossilOrigin-Name: 707e0f5857d58ec8b457270f988126b1dd0f01b5a3445a43ff7b5429324b1b3d

8 months agoGeneric build cleanups.
stephan [Sat, 19 Oct 2024 16:58:17 +0000 (16:58 +0000)] 
Generic build cleanups.

FossilOrigin-Name: 510afccf02dc9c3e3b928c64c34d10bee66a2343ecec6e24c4770cb0f139cd65

8 months agoMerge trunk into autosetup branch.
stephan [Sat, 19 Oct 2024 13:51:23 +0000 (13:51 +0000)] 
Merge trunk into autosetup branch.

FossilOrigin-Name: 2923a8924c92f62d07cb130462a8e6f4662837bad1a02bda53e630b64c692f60

8 months agoGet tool-zip target, and its prerequisites, building.
stephan [Sat, 19 Oct 2024 13:44:16 +0000 (13:44 +0000)] 
Get tool-zip target, and its prerequisites, building.

FossilOrigin-Name: 38cc5db3a8f3079c9be18a9939dae9ba8f4411d4c2361369d697d32f536fc3a4

8 months agoAdd missing $(TEXE) suffixes in the tool-zip makefile target.
stephan [Sat, 19 Oct 2024 13:38:51 +0000 (13:38 +0000)] 
Add missing $(TEXE) suffixes in the tool-zip makefile target.

FossilOrigin-Name: 5a594dbcd533aa1e37acea1702db993672c3c0e621add9ea26a497c52037617f

8 months agoMove the #include of hwtime.h from the bottom of util.c to the top of
drh [Sat, 19 Oct 2024 13:20:34 +0000 (13:20 +0000)] 
Move the #include of hwtime.h from the bottom of util.c to the top of
vdbe.c so that it will be available when needed, even for non-amalgamation
builds.

FossilOrigin-Name: 5f23036a87f443c82fa7fd48fdac16a31128bb9288b71f97228c29bcfeb632fb

8 months agoGet more of the test/utility targets building.
stephan [Sat, 19 Oct 2024 13:19:05 +0000 (13:19 +0000)] 
Get more of the test/utility targets building.

FossilOrigin-Name: 24c81c6c52603c217134c233190499086240211763736aa10cb6d0be074e68a5

8 months agoWork around a JimTCL regsub incompatibility in mkccode.tcl.
stephan [Sat, 19 Oct 2024 13:18:56 +0000 (13:18 +0000)] 
Work around a JimTCL regsub incompatibility in mkccode.tcl.

FossilOrigin-Name: c2e5dd791cce3ec4f1f009e945b8c66e8c5e01ae25077f345389f04e3c004ecf

8 months agoGet the spell-checking targets working. Rename some symbols.
stephan [Sat, 19 Oct 2024 12:47:06 +0000 (12:47 +0000)] 
Get the spell-checking targets working. Rename some symbols.

FossilOrigin-Name: e389ef9c14f2421fe8cad09a8539e6a3215c96da61af790b144fccbd8bf1ca12

8 months agoAn assortment of comment typo fixes discovered by aspell. Add several new words to...
stephan [Sat, 19 Oct 2024 12:39:06 +0000 (12:39 +0000)] 
An assortment of comment typo fixes discovered by aspell. Add several new words to tool/custom.txt. No code changes.

FossilOrigin-Name: 59b76a99e4a28f4cc8c4f9f39ff6e039c4d29cb7b44183f1902b5792638656d2

8 months agoRemove unnecessary VACUUMs from the previous check-in to sqlite3_rsync.
drh [Sat, 19 Oct 2024 11:02:24 +0000 (11:02 +0000)] 
Remove unnecessary VACUUMs from the previous check-in to sqlite3_rsync.

FossilOrigin-Name: ad8d4812420e6a5f1cd5c26d2ed07b76e0e3e94596bae4ca59b667a4099bd1cc

8 months agoGet mptest(er) building.
stephan [Sat, 19 Oct 2024 00:49:01 +0000 (00:49 +0000)] 
Get mptest(er) building.

FossilOrigin-Name: f740f6a4447543751800465ddfa11c9e3c89fb7054a9dfb5450938885b8f9633

8 months agoFix the sqlite3_rsync utility so that it is able to synchronize a database
drh [Sat, 19 Oct 2024 00:16:23 +0000 (00:16 +0000)] 
Fix the sqlite3_rsync utility so that it is able to synchronize a database
using a UTF16 text encoding.
[forum:/forumpost/e055d50821|Forum post e055d50821].

FossilOrigin-Name: 981347009c4baa9f16d60091d37e11b05a7fc1c62ae262c4de596b584d6a491a

8 months agoMinor doc cleanups in SQLTester.mjs and confirm that the tests pass with both OPFS...
stephan [Fri, 18 Oct 2024 23:54:23 +0000 (23:54 +0000)] 
Minor doc cleanups in SQLTester.mjs and confirm that the tests pass with both OPFS VFSes.

FossilOrigin-Name: ac747d57c2a26b47644bca2a9b191b09f5180f6872dce9c3261c370a18c848a2

8 months agoFix three bugs in SQLTester.mjs which caused --tableresult tests, escaping of SQL...
stephan [Fri, 18 Oct 2024 23:36:08 +0000 (23:36 +0000)] 
Fix three bugs in SQLTester.mjs which caused --tableresult tests, escaping of SQL values to incorrectly fail, and the --column-names setting to not be reset between tests.

FossilOrigin-Name: 779368dd9b8bb20890b06229c4c3c3b5d153ee88d1af472799515cdc599c870a

8 months agoFix a var reference typo in SQLTester.mjs.
stephan [Fri, 18 Oct 2024 23:10:41 +0000 (23:10 +0000)] 
Fix a var reference typo in SQLTester.mjs.

FossilOrigin-Name: 31179fa78e47cafae49df35f28e5c4b01654665d54ee60d059545ce2d97a39a2

8 months agoRemove the unused dbfuzz2-asan/msan makefile targets. Fix a comment typo in a makefile.
stephan [Fri, 18 Oct 2024 16:50:29 +0000 (16:50 +0000)] 
Remove the unused dbfuzz2-asan/msan makefile targets. Fix a comment typo in a makefile.

FossilOrigin-Name: 07843ac245661e8b8e086ad9d36c60bacf11784e9c56482593691fb97732f04f

8 months agoRemove the problematic dbfuzz2-asan/msan targets, which Richard says are not used...
stephan [Fri, 18 Oct 2024 16:47:54 +0000 (16:47 +0000)] 
Remove the problematic dbfuzz2-asan/msan targets, which Richard says are not used anymore.

FossilOrigin-Name: 503ce205a1efe0d52b184b1b6a23b4b6b5adb7acf6f4617249a5fa1d81e523ef

8 months agoGet most of the fuzzing-related apps building, sans dbuzz2-asan/msan, both of which...
stephan [Fri, 18 Oct 2024 16:39:17 +0000 (16:39 +0000)] 
Get most of the fuzzing-related apps building, sans dbuzz2-asan/msan, both of which refuse to link with clang v18 because it's trying to use -lstdc++ despite the app being only C.

FossilOrigin-Name: 3e843452927aaea152eab60213337912c34966e2c77d3cfd50d2ee9eb77c6796

8 months agoRemove a not-strictly-necessary 'undefine' invocation from ext/wasm/GNUmakefile,...
stephan [Fri, 18 Oct 2024 12:31:21 +0000 (12:31 +0000)] 
Remove a not-strictly-necessary 'undefine' invocation from ext/wasm/GNUmakefile, as it is not compatible with too-old versions of gmake. Resolves the problem reported in [forum:e57932e3ccdc2c9c | forum post e57932e3ccdc2c9c].

FossilOrigin-Name: a31a94644113c226a06316a3f95fb38b605821f1c123e2cda06ba90bfcacf59f

8 months agoMinor enhancements to the compile-for-windows.md document.
drh [Fri, 18 Oct 2024 10:51:43 +0000 (10:51 +0000)] 
Minor enhancements to the compile-for-windows.md document.

FossilOrigin-Name: 5f0cc7f26453faaea20a7bb0a1bcbab381a9bae7a81e099bb27f4b05fac1cd6c

8 months agoFix typo in the README.txt for the amalgamation autoconf tarball.
drh [Fri, 18 Oct 2024 10:42:24 +0000 (10:42 +0000)] 
Fix typo in the README.txt for the amalgamation autoconf tarball.

FossilOrigin-Name: 62d24a69fe9cf6c07aa7e554f54aa7874b90e64c7c5597a78a824c6c9dc8847e

8 months agoNew assert() statements to validate OP_OpenEphemeral logic.
drh [Fri, 18 Oct 2024 01:14:14 +0000 (01:14 +0000)] 
New assert() statements to validate OP_OpenEphemeral logic.

FossilOrigin-Name: 6d55c3e238e06c6727f3e816a9268b6222ebfc90ec745bbbd48430bf7b16664c

8 months agoFix obsolete M4 macro in the configure script for the TEA extension within
drh [Thu, 17 Oct 2024 23:14:27 +0000 (23:14 +0000)] 
Fix obsolete M4 macro in the configure script for the TEA extension within
the autoconf tarball.

FossilOrigin-Name: 360613a2246ae193d9a1d4bc7a91a0f63f159146709dac8a2de3e0ca8eb62752

8 months agoMerge current trunk into the autosetup branch.
stephan [Thu, 17 Oct 2024 22:20:27 +0000 (22:20 +0000)] 
Merge current trunk into the autosetup branch.

FossilOrigin-Name: 352da23b46f13fbb2c38fcdd0b6092bf39a391a0bfed587004c85f7f5b99a58d

8 months agoGeneral cleanups. Rename BTCL to BTCLSH for some clarity.
stephan [Thu, 17 Oct 2024 22:19:37 +0000 (22:19 +0000)] 
General cleanups. Rename BTCL to BTCLSH for some clarity.

FossilOrigin-Name: 83eaef7d62677a85a2c42f98d52ff2e8e5356724ad6d12b2907409d96d4757f1

8 months agoFixes from code inspection:
drh [Thu, 17 Oct 2024 18:12:03 +0000 (18:12 +0000)] 
Fixes from code inspection:
(1) Extra paranoid defense against integer overflow.
(2) Remove a stray blank line in an FTS5 comment.

FossilOrigin-Name: 8563728deeb1d3ead9ff99a3ad2c7819b2223ead44e7374ecc7bbeda2d955ade

8 months agoFix a typo in compile-for-unix.md. Simplify hyperlinks in the compile-for-*
drh [Thu, 17 Oct 2024 16:22:47 +0000 (16:22 +0000)] 
Fix a typo in compile-for-unix.md.  Simplify hyperlinks in the compile-for-*
documents.

FossilOrigin-Name: 8cd7d157741f207c3a38744f2d85a5bb808824b5e83b9e033a8ce3954fe38f43

8 months agoImproved README.txt file in the amalgamation-autoconf tarball.
drh [Thu, 17 Oct 2024 13:29:49 +0000 (13:29 +0000)] 
Improved README.txt file in the amalgamation-autoconf tarball.

FossilOrigin-Name: b7814350381a2929e9fa6444867a80437291b8bbe59479d4525350b2719bc72c

8 months agoAttempt to get the TEA builder in the amalgamation-autoconf tarball working
drh [Thu, 17 Oct 2024 13:00:56 +0000 (13:00 +0000)] 
Attempt to get the TEA builder in the amalgamation-autoconf tarball working
using hints from Jan Nijtmans.

FossilOrigin-Name: ad9d7bdef95a8da76da0f6db358b6ffb0a0aa9097df2ff52f042e16e62afa8f5

8 months agoEnsure that the OPFS VFS's xOpen() writes back the read-only flag to the output flags...
stephan [Thu, 17 Oct 2024 12:14:34 +0000 (12:14 +0000)] 
Ensure that the OPFS VFS's xOpen() writes back the read-only flag to the output flags. Resolves the problem reported in [forum:cf37d5ff1182c31081 | forum post cf37d5ff1182c31081].

FossilOrigin-Name: 0a32624015f16fd881a4ecbb56b7833391028d327a95f4c899eee864ed7fe00d

8 months agoWhen calling OpfsSAHPoolUtil.removeVfs(), ensure that the cached result the VFS init...
stephan [Thu, 17 Oct 2024 11:12:57 +0000 (11:12 +0000)] 
When calling OpfsSAHPoolUtil.removeVfs(), ensure that the cached result the VFS init is also removed so that the VFS may later be registered again with the same name. Set up test code for the regression reported in [forum:cf37d5ff11 | forum post cf37d5ff11] (which uncovered the removeVfs() shortcoming) but that test is currently only known to fail with the "opfs" VFS and is not currently set up to fail.

FossilOrigin-Name: b7f7a5deeae61920dbfec7606cf9014de711f959a285b29e12673abfd2f88646

8 months agoAdd has_tclconfig to the tidy makefile target.
stephan [Wed, 16 Oct 2024 14:05:39 +0000 (14:05 +0000)] 
Add has_tclconfig to the tidy makefile target.

FossilOrigin-Name: 309e6d6f07d4169fbd6ea1d8b3d4809186ad9b7a2e69bbd33eedb9a55e831d68

8 months agoGet testfixture building.
stephan [Wed, 16 Oct 2024 14:04:00 +0000 (14:04 +0000)] 
Get testfixture building.

FossilOrigin-Name: 9a7e56a01703fdcb4c83481d33d48bd4c8e6a5586c1315bae36fdff34a1b3bd1

8 months agoMerge trunk into this branch.
stephan [Wed, 16 Oct 2024 13:02:07 +0000 (13:02 +0000)] 
Merge trunk into this branch.

FossilOrigin-Name: 9c3bb3dc4f5b5cd7db6cd50d22dbe8f933cccf5f2fd253467bb50f36b3207a93

8 months agoChange the name of the new utility program from sqlite3-rsync to
drh [Wed, 16 Oct 2024 11:05:11 +0000 (11:05 +0000)] 
Change the name of the new utility program from sqlite3-rsync to
sqlite3_rsync - dash changed to underscore - for consistency with the
preexisting sqlite3_analyzer.

FossilOrigin-Name: 86e794cbaa5ae600635c933b46298a39f2465daf4c5cd1570f2a03e19ac08d9d

8 months agoIn the unix Makefile, strip compiled binaries prior to adding them to the
drh [Wed, 16 Oct 2024 10:20:30 +0000 (10:20 +0000)] 
In the unix Makefile, strip compiled binaries prior to adding them to the
tool ZIP archive.

FossilOrigin-Name: cd8ae6fd7166680a6d121d710ff9d722e3e14d1d3538fc8ea1ea2690035ba80e

8 months agoFix harmless compiler warning in flockCheckReservedLock().
drh [Tue, 15 Oct 2024 22:22:53 +0000 (22:22 +0000)] 
Fix harmless compiler warning in flockCheckReservedLock().

FossilOrigin-Name: f369de3d8fa34a403b5c9f6269f7e3fdb16a13784a70460c5032ad4e66615d64

8 months agoFix the "tool-zip" makefile target so that it includes sqlite3-rsync.
drh [Tue, 15 Oct 2024 18:45:21 +0000 (18:45 +0000)] 
Fix the "tool-zip" makefile target so that it includes sqlite3-rsync.

FossilOrigin-Name: ecdbedb16bbc467b0bc56badae2a4d407b4ea2085312b50af56af8cd110f055c

8 months agoFix a typo in a comment used to generate document. No code changes.
drh [Tue, 15 Oct 2024 14:28:23 +0000 (14:28 +0000)] 
Fix a typo in a comment used to generate document.  No code changes.

FossilOrigin-Name: 9b4bc5c4c1dc7c4ba359babc71c07ac3a6719971766951a8d2cb1df9e2396a83

8 months agoCross-reference the sqlite3_backup_init() function to the documentation for
drh [Tue, 15 Oct 2024 14:00:29 +0000 (14:00 +0000)] 
Cross-reference the sqlite3_backup_init() function to the documentation for
VACUUM INTO and sqlite3-rsync.  Comment changes only.  No changes to code.

FossilOrigin-Name: 405c23ce02cc7f970e732afc26e01d0267b8fa89d8edc3d53fae2b3bc8405cbb

8 months agoAvoid the possibility of buffer overrun in the READ_UTF8 macro by using
drh [Mon, 14 Oct 2024 18:43:04 +0000 (18:43 +0000)] 
Avoid the possibility of buffer overrun in the READ_UTF8 macro by using
an less-than operator rather than not-equal-to.

FossilOrigin-Name: 20e60bf058c54bc818ea1b8ce54ace8bcd50699734713cef622bf79e49a9a279

8 months agoThere is no need to DELETE the content of sqlite_sequence in the output of
drh [Mon, 14 Oct 2024 11:48:19 +0000 (11:48 +0000)] 
There is no need to DELETE the content of sqlite_sequence in the output of
the CLI ".dump" command because that table will initially be empty if it
exists at all.  [forum:/forumpost/2e31f49d00472cec|Forum post 2e31f49d004]

FossilOrigin-Name: 8d7fe903d09a2a7961f506b2c8e93765e4feb7cd48aac436d75c7ec7838e856a

8 months agoThe CLI now default to ".crlf ON" in Windows. CSV output always uses CRLF on
drh [Mon, 14 Oct 2024 10:45:02 +0000 (10:45 +0000)] 
The CLI now default to ".crlf ON" in Windows.  CSV output always uses CRLF on
all platforms.

FossilOrigin-Name: 84d19f03b1989d665547745defcd95fc927f8389ed65c76195a39206435791ba

8 months agoBe consistent about using "CRLF" instead of "CRNL".
drh [Mon, 14 Oct 2024 09:19:02 +0000 (09:19 +0000)] 
Be consistent about using "CRLF" instead of "CRNL".

FossilOrigin-Name: ec4f4cfd5f8ca83fad4f08cf6566251d9c63e50a3a4284baca299bd94b047951

8 months agoFix a harmless compiler warning in the CLI.
drh [Mon, 14 Oct 2024 09:08:02 +0000 (09:08 +0000)] 
Fix a harmless compiler warning in the CLI.

FossilOrigin-Name: 31c46e84fffe29c45fc63ae8cd1f96f42196f0ab56e72cd07b4eedbd9058e85b

8 months agoFix a problem with the ".expert" command and queries that use virtual tables.
dan [Sat, 12 Oct 2024 19:33:47 +0000 (19:33 +0000)] 
Fix a problem with the ".expert" command and queries that use virtual tables.

FossilOrigin-Name: 43787b8ec5348207ae84e6f16acf2605c1ca024fc02b022ce2f36b8495e88384

8 months agoEnsure that test file ext/expert/expert1.test works with non-fts5 builds. expert-vtab-fix
dan [Sat, 12 Oct 2024 18:33:40 +0000 (18:33 +0000)] 
Ensure that test file ext/expert/expert1.test works with non-fts5 builds.

FossilOrigin-Name: 933dfd06188b487f14e522453a83b06e491aea97b4248c17f87727b56694acb5

8 months agoAllow the ".expert" command to analyze statements that use built-in virtual tables.
dan [Sat, 12 Oct 2024 18:00:22 +0000 (18:00 +0000)] 
Allow the ".expert" command to analyze statements that use built-in virtual tables.

FossilOrigin-Name: a201906cd3c85080f9b739c2d347c51348ebebd3dc9b647d33d8dcae4b6e5850

8 months agoAdditional clarification in the comments to sqlite3_stdio.c. No changes
drh [Fri, 11 Oct 2024 23:31:37 +0000 (23:31 +0000)] 
Additional clarification in the comments to sqlite3_stdio.c.  No changes
to code.

FossilOrigin-Name: 2db24c5364808008fa503f37ca8ccf5d135e8f6bfac2efb29e509e26f7190470

8 months agoUpdate comments in ext/misc/sqlite3_stdio.c to reflect the latest enhancements.
drh [Fri, 11 Oct 2024 19:57:41 +0000 (19:57 +0000)] 
Update comments in ext/misc/sqlite3_stdio.c to reflect the latest enhancements.
No changes to code.

FossilOrigin-Name: 9621c3b527702b47799538e028f96945b5697752dbb56078aa7f114c72fd4e1a

8 months agoAdd the doc/compile-for-unix.md document.
drh [Fri, 11 Oct 2024 19:33:22 +0000 (19:33 +0000)] 
Add the doc/compile-for-unix.md document.

FossilOrigin-Name: a3e16e478b03ccc12888eb5700c2e480a446957368f4b37ed322af2f4c9cd7c4

8 months agoAvoid a segfault when calling src-verify without any arguments.
stephan [Fri, 11 Oct 2024 19:22:32 +0000 (19:22 +0000)] 
Avoid a segfault when calling src-verify without any arguments.

FossilOrigin-Name: c0c4e6f111b9b16538aad33e83f02f8d7835e952649f5cee610c068722bea4a4

8 months agoAdd two missing $(BEXE) suffixes, as reported in [forum:9ad28680d394afda | forum...
stephan [Fri, 11 Oct 2024 19:18:44 +0000 (19:18 +0000)] 
Add two missing $(BEXE) suffixes, as reported in [forum:9ad28680d394afda | forum post 9ad28680d3]. Problem introduced by [1218a203483cecdc] being incomplete in where it added that suffix.

FossilOrigin-Name: de9663c0aae92e457ddda48b751b32f205bfab29f60b055571e5f69b41ffd584

8 months agoImproved instructions in the TEA readme for building the TCL extension.
drh [Fri, 11 Oct 2024 19:13:02 +0000 (19:13 +0000)] 
Improved instructions in the TEA readme for building the TCL extension.

FossilOrigin-Name: bf996f710212fbc0c0c67789e3f6f1a805e7b81e0265b312265ca7286e76d6f3

8 months agoUpdate the README for the TEA extension in the amalgamation tarball.
drh [Fri, 11 Oct 2024 19:08:45 +0000 (19:08 +0000)] 
Update the README for the TEA extension in the amalgamation tarball.

FossilOrigin-Name: acc866c8f1b73fd57f434c5cb2576c2a7b9475a127febbcc27e8c714bbe29a8a

8 months agoAvoid running some new tests in lock5.test with the inmemory_journal permutation.
dan [Fri, 11 Oct 2024 18:59:29 +0000 (18:59 +0000)] 
Avoid running some new tests in lock5.test with the inmemory_journal permutation.

FossilOrigin-Name: 0b12e2e55c6d4b329f0a7629965f313f48b6d3918d36d3371953c56e0c688a28

8 months agoUpdate the autoconf Makefile.msc
drh [Fri, 11 Oct 2024 17:43:47 +0000 (17:43 +0000)] 
Update the autoconf Makefile.msc

FossilOrigin-Name: 911ab3299771a607a135f0bcde3057b0ed337870362396bf72506210fdff729e

8 months agoAn improved method for statically linking sqlite3_analyzer.exe using Tcl9.
drh [Fri, 11 Oct 2024 17:02:37 +0000 (17:02 +0000)] 
An improved method for statically linking sqlite3_analyzer.exe using Tcl9.
Enable wildcard expansion of arguments to testfiture on Windows.

FossilOrigin-Name: 9b87ea219bce5689a69efac31063b9b11928e59124c0d36194715ff7faa5129d

8 months agoFix the CSV output mode in the CLI such that the line ending is NL by default
drh [Fri, 11 Oct 2024 14:30:58 +0000 (14:30 +0000)] 
Fix the CSV output mode in the CLI such that the line ending is NL by default
but goes to CRLF if ".crnl on" is set.  Make the .crnl command available on
non-Windows builds.  Update the .crnl command such that if it has no arguments
it shows the current setting.

FossilOrigin-Name: da750e39df7bf42330d8c8b266300da07247c9619895861b4cff4be7c94db7cf

8 months agoAvoid undesirable NL to CRLF translation when doing binary output to the
drh [Fri, 11 Oct 2024 14:02:48 +0000 (14:02 +0000)] 
Avoid undesirable NL to CRLF translation when doing binary output to the
Windows console.

FossilOrigin-Name: d25bdce36abed95524ad058a277aba7bb17270e7ff1476474713dbc29742c762

8 months agoImprovements to TCL9 support. Fixes to the Makefiles so that the "install"
drh [Thu, 10 Oct 2024 10:47:37 +0000 (10:47 +0000)] 
Improvements to TCL9 support.  Fixes to the Makefiles so that the "install"
targets are consistent and so that they work better with TCL9.

FossilOrigin-Name: bcfae7183e92ce37717852bae5b1dd526903fa8429fb6f738c2147d4e5231642

8 months agoFor compatibility, allow the TCL interfact to continue working with TCL 8.5. make-install-fixes
drh [Thu, 10 Oct 2024 10:33:31 +0000 (10:33 +0000)] 
For compatibility, allow the TCL interfact to continue working with TCL 8.5.

FossilOrigin-Name: 69346e9d4704e8fd82cbb3359913191e05cb38ee591baf97dcfe321db0ea085e

8 months agoAdjustments to the Makefile.msc to get static builds of sqlite3_analyzer.exe
drh [Thu, 10 Oct 2024 09:59:06 +0000 (09:59 +0000)] 
Adjustments to the Makefile.msc to get static builds of sqlite3_analyzer.exe
working with TCL9.  Update the compile-for-windows.md document for TCL9.

FossilOrigin-Name: df16d07d8db042cdb1dc6bb9a00a0265ba791a615d74f9152d0b3344e618fe93

8 months agoImprovements to Makefile.msc: (1) Attempt to find sane values for key
drh [Wed, 9 Oct 2024 20:05:26 +0000 (20:05 +0000)] 
Improvements to Makefile.msc: (1) Attempt to find sane values for key
variables based on the value of TCLDIR.  (2) Default to TCLVERSION 90 instead
of 86.  (3) Add the "tcl-env" target that shows the values of key variables
associated with TCL.

FossilOrigin-Name: 6b7a789a416fb62a532882d10e41c7048a6805f5fbbc008f36f9802be45d9ebb

8 months agoAdd quotes around $(CC) in tclextension-related targets so that a CC of "ccache cc...
stephan [Wed, 9 Oct 2024 17:47:43 +0000 (17:47 +0000)] 
Add quotes around $(CC) in tclextension-related targets so that a CC of "ccache cc" works.

FossilOrigin-Name: e8f719d13fbcbaf1b52b421d7af59759b1b4692d4010a68d5865dfeaf3cf8cb0

8 months agoFix a problem in the generate_series() extension introduced by
drh [Wed, 9 Oct 2024 16:32:19 +0000 (16:32 +0000)] 
Fix a problem in the generate_series() extension introduced by
[d50b784807333c54].

FossilOrigin-Name: 41d58a014ce89356932d717843a1fa6e0735f15a7b7265c41ac85a9722a5d826

8 months agoFix the xCheckReservedLock() method of the flock VFS to avoid dropping the file lock.
dan [Wed, 9 Oct 2024 16:28:26 +0000 (16:28 +0000)] 
Fix the xCheckReservedLock() method of the flock VFS to avoid dropping the file lock.

FossilOrigin-Name: f7acb189d8eadf2de2fa992b3ff7293838fd0f8fd3c61e9f0238226a36ea6bcf

8 months agoFix the xCheckReservedLock() method of the flock VFS to avoid dropping the file-lock. flock-vfs-fix
dan [Wed, 9 Oct 2024 15:40:07 +0000 (15:40 +0000)] 
Fix the xCheckReservedLock() method of the flock VFS to avoid dropping the file-lock.

FossilOrigin-Name: 8ffaf85249ff38ceea037a6e96b3484c912f1c1aa55b8642297d592768661344

8 months agoChange the makefile to prefer the use of tclsh9.0 if it is available.
drh [Wed, 9 Oct 2024 13:54:24 +0000 (13:54 +0000)] 
Change the makefile to prefer the use of tclsh9.0 if it is available.

FossilOrigin-Name: 28e2b9a23f61530bc5eea364a74817fca03fa31f70d4eefb0942a89c1d79f765

8 months agoMake it so that the TCL extension installed using "make install" has the
drh [Wed, 9 Oct 2024 13:40:49 +0000 (13:40 +0000)] 
Make it so that the TCL extension installed using "make install" has the
same name as the one installed by "make tclextension-install".

FossilOrigin-Name: e21fc1ba44dc88547fd2cdfaed90717566153880e79d862e2b3e54ba7f8f0a2e

8 months agoAdd sqlite3rc.h build.
stephan [Wed, 9 Oct 2024 13:26:01 +0000 (13:26 +0000)] 
Add sqlite3rc.h build.

FossilOrigin-Name: 8d5f99f7e3f0ff9eaea1cb550369864e49a0fe0b00a53b1eba6ed099b61d8d24

8 months agoMore work on the tcl build parts.
stephan [Wed, 9 Oct 2024 13:20:25 +0000 (13:20 +0000)] 
More work on the tcl build parts.

FossilOrigin-Name: 292ad7d519d39f16f130d082d3f134deadd5409d56ffb5340064a1996f4b4d57

8 months agoChanges to the TCL extension and how it is built, suggested by Jan Nijtmans.
drh [Wed, 9 Oct 2024 13:19:21 +0000 (13:19 +0000)] 
Changes to the TCL extension and how it is built, suggested by Jan Nijtmans.

FossilOrigin-Name: 9c0690193200551a3218c576b19eaf40e330dc252d67b430204ff44495e4793e

8 months agoImproved handling of unicode characters in the LIKE optimization.
drh [Wed, 9 Oct 2024 11:52:29 +0000 (11:52 +0000)] 
Improved handling of unicode characters in the LIKE optimization.
Follow-up to [bce52ce2a6e7f3d3].

FossilOrigin-Name: 9d0eb3980409115f2f6fd1720a03f34e3968c93be55feafdfef20bf5f711c17f

8 months agoRemove extra layer of quotes around install target dirs.
stephan [Wed, 9 Oct 2024 08:05:21 +0000 (08:05 +0000)] 
Remove extra layer of quotes around install target dirs.

FossilOrigin-Name: f2e3cf219e28c369ad6de240f0780eb3b638c47e1bab56ab80713a9bf63e2aa7

8 months agoMore work on the tcl build bits.
stephan [Wed, 9 Oct 2024 07:12:32 +0000 (07:12 +0000)] 
More work on the tcl build bits.

FossilOrigin-Name: f00988a909dd4338083a6e09231932c6fa57a40e35968c51483615121d20d25f

8 months agoGeneric build cleanups.
stephan [Wed, 9 Oct 2024 05:28:29 +0000 (05:28 +0000)] 
Generic build cleanups.

FossilOrigin-Name: 2cd213b38748d93134dc88b25aada4741838eaed683e44d5cc7837a6586fa4cf