]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
7 months agoExperimental: If SQLite is compiled with SQLITE_WAL_BIGHASH defined, use hash bedrock-bighash
dan [Wed, 18 Dec 2024 20:23:05 +0000 (20:23 +0000)] 
Experimental: If SQLite is compiled with SQLITE_WAL_BIGHASH defined, use hash
tables large enough to fit 128K, instead of 4K, entries in the *-shm file.

FossilOrigin-Name: 0cb853ea1dece578ae8f336c7d003e618d94ba003e25e5f5f307d7424f31b53f

7 months agoOptimize deferred allocation of pages on this branch by avoiding BTALLOC_LE.
dan [Mon, 16 Dec 2024 20:30:06 +0000 (20:30 +0000)] 
Optimize deferred allocation of pages on this branch by avoiding BTALLOC_LE.

FossilOrigin-Name: b1e8046859bac7dc050884b33b84390f1e7cf38501ac4dd82eab4d91dafa446a

7 months agoMerge divergence-reduction changes into the bedrock branch.
drh [Mon, 16 Dec 2024 18:29:31 +0000 (18:29 +0000)] 
Merge divergence-reduction changes into the bedrock branch.

FossilOrigin-Name: ec5d7025cba9f4acaea984d5ec29b05b7f4b01f0e36e5287f27a16895ec42bf7

7 months agoSync wal2 with trunk.
drh [Mon, 16 Dec 2024 18:16:09 +0000 (18:16 +0000)] 
Sync wal2 with trunk.

FossilOrigin-Name: caadbe0c0c3dee411140df7d13f6e8275f9c13562bb384be38520ee2305c32bd

7 months agoFurther reduction in divergence from trunk.
drh [Mon, 16 Dec 2024 18:13:47 +0000 (18:13 +0000)] 
Further reduction in divergence from trunk.

FossilOrigin-Name: e4406a6e2660f1f42614d0034d024cc206109ac71e9f8b289aeed2eba20be8e9

7 months agoCode formatting changes to make trunk more like wal2.
drh [Mon, 16 Dec 2024 18:04:39 +0000 (18:04 +0000)] 
Code formatting changes to make trunk more like wal2.

FossilOrigin-Name: 8f725472b0fe62359a4cd3237b43d7b834e042d8ce425abde06e3ed6c62dbafa

7 months agoReduce divergence of wal2 from trunk.
drh [Mon, 16 Dec 2024 17:46:21 +0000 (17:46 +0000)] 
Reduce divergence of wal2 from trunk.

FossilOrigin-Name: 90d744d67446a270f7547910531e76593dee82ce537e75c11af0d94eca8404cf

7 months agoMerge all the latest trunk/wal2 enhancements and fixes into the bedrock branch.
drh [Mon, 16 Dec 2024 13:38:33 +0000 (13:38 +0000)] 
Merge all the latest trunk/wal2 enhancements and fixes into the bedrock branch.

FossilOrigin-Name: a0cf2621c4586ddfa43ec5a2a6469ddb8528adff78a80063be007cf76cf8d98a

7 months agoSync with trunk.
drh [Mon, 16 Dec 2024 13:32:27 +0000 (13:32 +0000)] 
Sync with trunk.

FossilOrigin-Name: eab619453abf6979962a68d298c44553ef0d9eb18112e61420d4de8a9c16f620

7 months agoChanges for better alignment with the wal2 branch.
drh [Mon, 16 Dec 2024 13:25:49 +0000 (13:25 +0000)] 
Changes for better alignment with the wal2 branch.

FossilOrigin-Name: 4fab85b3d0d1cad2d185f2456de7ddf281badf8561cc051e10e16655441dcc84

7 months agoSynchronize the WASM code with trunk.
drh [Mon, 16 Dec 2024 13:05:47 +0000 (13:05 +0000)] 
Synchronize the WASM code with trunk.

FossilOrigin-Name: 3619baa19e8e7617a7c5918073a826af1cc4d5dc9e9f27b4e4187e988b534d7f

7 months agoMerge all the latest trunk enhancements and fixes into the wal2 branch.
drh [Mon, 16 Dec 2024 12:41:33 +0000 (12:41 +0000)] 
Merge all the latest trunk enhancements and fixes into the wal2 branch.

FossilOrigin-Name: 011ce4ae693fb91340c014b28b0197b9f26e3a5614e301d8c6c4e1967c943441

7 months agoRemove unnecessary end-of-line whitespace.
drh [Mon, 16 Dec 2024 12:08:47 +0000 (12:08 +0000)] 
Remove unnecessary end-of-line whitespace.

FossilOrigin-Name: ae580443d210811c12209866112fc8b0b83281e24945504b748a17d93ad84062

7 months agoTiny makefile/configure script doc tweaks. No functional changes.
stephan [Mon, 16 Dec 2024 07:03:12 +0000 (07:03 +0000)] 
Tiny makefile/configure script doc tweaks. No functional changes.

FossilOrigin-Name: ed5e912622839dce76dfb7352b56bb6fc698ecffde195f48db8d3339e9628cb5

7 months agoMerge changes from wal2, including the fix to prevent non-PASSIVE checkpoints from...
dan [Sat, 14 Dec 2024 17:36:12 +0000 (17:36 +0000)] 
Merge changes from wal2, including the fix to prevent non-PASSIVE checkpoints from ever taking the writer lock.

FossilOrigin-Name: eb8449ea9ac8e29425f7127535a1db328d56c86382919fb1fcf42324b71de013

7 months agoUpdate to walRestartLog() function to make it shorter easier to merge with branch...
dan [Sat, 14 Dec 2024 17:19:06 +0000 (17:19 +0000)] 
Update to walRestartLog() function to make it shorter easier to merge with branch "bedrock".

FossilOrigin-Name: 88d7fb2aef882fc41a4f9c1bdd2f0162289e90d62df50af1b0eb6994c5c94c28

7 months agoFix a problem with non-PASSIVE wal2 checkpoints sometimes taking the WRITER lock.
dan [Sat, 14 Dec 2024 16:50:29 +0000 (16:50 +0000)] 
Fix a problem with non-PASSIVE wal2 checkpoints sometimes taking the WRITER lock.

FossilOrigin-Name: 11d7865a56c1fbb978e3ba70ddc03c2a16080e2992c580e00e4c6c1fa47c043c

7 months agoDo not attempt to switch wal files when writing if the current transaction read from...
dan [Sat, 14 Dec 2024 16:41:39 +0000 (16:41 +0000)] 
Do not attempt to switch wal files when writing if the current transaction read from both wal files. This fix is already on branch 'bedrock'.

FossilOrigin-Name: 693cc8e8db6c00249211bdfc21be2bff169ca6b0c4560522dd404615e8ba3b76

7 months agoFix a problem with the output of "PRAGMA wal_checkpoint" introduced long ago by ...
dan [Fri, 13 Dec 2024 20:18:29 +0000 (20:18 +0000)] 
Fix a problem with the output of "PRAGMA wal_checkpoint" introduced long ago by [63483e22c775183e].

FossilOrigin-Name: c5f7bba8683a9aa503750abb7fd937566983dc1ca08361eca8b9b185294b909a

7 months agoFix a harmless compiler warning that comes up when using SQLITE_DEBUG in
drh [Fri, 13 Dec 2024 01:29:22 +0000 (01:29 +0000)] 
Fix a harmless compiler warning that comes up when using SQLITE_DEBUG in
separate compilation mode.

FossilOrigin-Name: 52e0f8cab9852538da0778d5f57dd85b0774e764157692111a007aecd963f10a

7 months agoIncrease the maximum number of arguments on an SQL function to 1000 with the
drh [Thu, 12 Dec 2024 15:11:27 +0000 (15:11 +0000)] 
Increase the maximum number of arguments on an SQL function to 1000 with the
capability to increase it further up to 32767 using a compile-time option.

FossilOrigin-Name: e8d7d68ba0bb0bc2f948db5d9966990a5d23597fc3658b7cd0bc99d53c7353a9

7 months agoFix harmless typo in a comment describing the columnMallocFailure() function.
drh [Tue, 10 Dec 2024 12:32:34 +0000 (12:32 +0000)] 
Fix harmless typo in a comment describing the columnMallocFailure() function.

FossilOrigin-Name: 0f3b484fd71fd77947a1de7c24f35f8eed2911d0565d03edb7970b8f3092a5da

7 months agoMake the TCL interface more rebust against very large strings coming
drh [Mon, 9 Dec 2024 20:46:36 +0000 (20:46 +0000)] 
Make the TCL interface more rebust against very large strings coming
out of TCL9.

FossilOrigin-Name: e2bae4143afd07de1ae55a6d2606a3b541a5b94568aa41f6a96e5d1245471653

7 months agoEnhance the ".import" command of the CLI so that it is able to insert into a
drh [Mon, 9 Dec 2024 20:37:18 +0000 (20:37 +0000)] 
Enhance the ".import" command of the CLI so that it is able to insert into a
view that has an instead-of trigger.
[forum:/info/3e03c73150f8b9f8|Forum post 3e03c73150f8b9f8].

FossilOrigin-Name: 7dcc3731a9057a91f1b173fbab2841d8a666a945d9bc61d4c20f8a2a279d5ff1

7 months agoAdd NEVER() around branches that seems to have been made obsolete by
drh [Mon, 9 Dec 2024 13:02:13 +0000 (13:02 +0000)] 
Add NEVER() around branches that seems to have been made obsolete by
[a350ea7c6b89725b].

FossilOrigin-Name: cb5bad5c748b7435c43f3ec051736c1cf91ced2be317b0519e5e22523c137290

7 months agoFurther improvements to the decimal-to-float conversion for values close
drh [Mon, 9 Dec 2024 11:47:28 +0000 (11:47 +0000)] 
Further improvements to the decimal-to-float conversion for values close
to LARGEST_UINT64.

FossilOrigin-Name: 453c949914770e8f7b9b9dd882db492bf8756c212c816f87bb2e3ed98bcd64e3

7 months agoFix an obscure problem with multiple outer joins, ON clauses and query flattening...
dan [Mon, 9 Dec 2024 11:37:37 +0000 (11:37 +0000)] 
Fix an obscure problem with multiple outer joins, ON clauses and query flattening. Forum [forum:5c8a069d23|thread 5c8a069d23].

FossilOrigin-Name: a350ea7c6b89725ba1a0058c77fc8e918f5cb78e868d100f5425cdee114d1320

7 months agoFix an obscure problem with multiple outer joins, ON clauses and query flattening... forum-5c8a069d23-fix
dan [Mon, 9 Dec 2024 11:12:12 +0000 (11:12 +0000)] 
Fix an obscure problem with multiple outer joins, ON clauses and query flattening. Forum [forum:5c8a069d23|thread 5c8a069d23].

FossilOrigin-Name: 289daf6cee39625e8f068179cd58efcc1d28242f46064e58ec4175a019cf48ad

7 months agoAdd a note in Makefile.msc about EXTRA_SRC files possibly requiring manual editing.
drh [Mon, 9 Dec 2024 10:57:01 +0000 (10:57 +0000)] 
Add a note in Makefile.msc about EXTRA_SRC files possibly requiring manual editing.

FossilOrigin-Name: a0a36bad454fab55ff39cbada68bf9ec6494d48dc4fc88496c0f637ab100734c

7 months agoResynchronize autoconf/Makefile.msc makefile-fix
drh [Mon, 9 Dec 2024 10:52:28 +0000 (10:52 +0000)] 
Resynchronize autoconf/Makefile.msc

FossilOrigin-Name: 8f9c640818871c451e69f186224bf276f8a03c8d31a76806d81f34922a169f82

7 months agoAdd a note in Makefile.msc about EXTRA_SRC files possibly requiring manual editing...
stephan [Sun, 8 Dec 2024 18:38:40 +0000 (18:38 +0000)] 
Add a note in Makefile.msc about EXTRA_SRC files possibly requiring manual editing, as discussed in [forum:903f721f3e7c0d25|forum thread 903f721f3e7c0d25].

FossilOrigin-Name: 229c2f013c171bc220148c78f7db5396578f2c6aac28ad6ff9b687c9fa4998ac

7 months agoMerge the latest trunk fixes and enhancements into the bedrock branch.
drh [Sat, 7 Dec 2024 23:29:06 +0000 (23:29 +0000)] 
Merge the latest trunk fixes and enhancements into the bedrock branch.

FossilOrigin-Name: 08cfa7e8b3090151a56b3898ebf0526d765b4ab276d1186d8c3e850c9408899d

7 months agoUpdate the wal2 branch with the latest trunk enhancements and fixes.
drh [Sat, 7 Dec 2024 23:24:17 +0000 (23:24 +0000)] 
Update the wal2 branch with the latest trunk enhancements and fixes.

FossilOrigin-Name: d3ce95f7e0335b8522a1805ab602b64856ced3007c507ba42039c6183ef9ac3d

7 months agoYet another iteration of the solution to the floating-point conversion
drh [Sat, 7 Dec 2024 19:57:30 +0000 (19:57 +0000)] 
Yet another iteration of the solution to the floating-point conversion
problem - this what avoids complaints about oversize double values
from -fsanitize.

FossilOrigin-Name: fc6904a508eb732b1cb5cc12321a0d637d97e1e066a022a2c93cb50595f3a86a

7 months agoA cleaner and more robust solution to the floating-point conversion problem
drh [Sat, 7 Dec 2024 19:06:25 +0000 (19:06 +0000)] 
A cleaner and more robust solution to the floating-point conversion problem
originally fixed by [81342fa6dd03fffb].

FossilOrigin-Name: 351de57f80b73045448c71d3402d877ff5d72418b1f5fc34c8147a04f7c5cb78

7 months agoFix more harmless compiler warnings.
drh [Sat, 7 Dec 2024 17:08:13 +0000 (17:08 +0000)] 
Fix more harmless compiler warnings.

FossilOrigin-Name: f5b8fd77635e5e6d2d88a1ce74e1bd6c4311260a2b695e5055b898b880bf5718

7 months agoFix harmless compiler warning caused by the previous check-in.
drh [Sat, 7 Dec 2024 16:53:42 +0000 (16:53 +0000)] 
Fix harmless compiler warning caused by the previous check-in.

FossilOrigin-Name: 462700aeb7c183d739ead4d726ce5384b3297bcf7929abd010987fa3a5f64807

7 months agoOn x64 hardware, round-trip uint64_t→double→uint64_t conversions
drh [Sat, 7 Dec 2024 14:48:55 +0000 (14:48 +0000)] 
On x64 hardware, round-trip uint64_t→double→uint64_t conversions
fail for values greater than UINT64_MAX-2047.  This caused the SQLite
text-to-float converter routine to give incorrect results for values
between '1.8446744073709550592eNNN' and '1.8446744073709551609eNNN' for any
exponent NNN.  This problem was introduced by check-in [761d8fd18b0ee868]
and first appeared in version 3.47.0 and was reported by
[forum:/forumpost/569a7209179a7f5e|forum post 569a7209179a7f5e].  Fixed
by this check-in.

FossilOrigin-Name: 81342fa6dd03fffbe7d4d699ff049dcef4d30344578bb6f91cb58a4e5a4f6036

7 months agoAdd the SQLITE_PREPARE_DONT_LOG option for sqlite3_prepare_v3(), that prevents
drh [Fri, 6 Dec 2024 18:35:16 +0000 (18:35 +0000)] 
Add the SQLITE_PREPARE_DONT_LOG option for sqlite3_prepare_v3(), that prevents
errors in the compilation of the SQL from being sent to sqlite3_log().

FossilOrigin-Name: 870403425493866232cf9e8fa62288861b7d0a4091b15d75727f8bb31da46f94

7 months agoMinor doc update in auto.def. No functional changes.
stephan [Fri, 6 Dec 2024 00:12:43 +0000 (00:12 +0000)] 
Minor doc update in auto.def. No functional changes.

FossilOrigin-Name: d324be296de443bd2853c732b10960178bf3ba9f18c80c509f6b41e2cfb2f3af

7 months agoEnsure that the post-config checks for @UNEXPANDED_VARS@ pass even if --disable-tcl...
stephan [Fri, 6 Dec 2024 00:09:05 +0000 (00:09 +0000)] 
Ensure that the post-config checks for @UNEXPANDED_VARS@ pass even if --disable-tcl is used, as reported in [forum:74ef8059fc|forum post 74ef8059fc].

FossilOrigin-Name: a38606bf44a1b5d0f684f67174c33f8c88c7927e23fc6a715e8d3ae7a6614bbd

7 months agoFix the build of sqlite3_analyzer.exe on Windows that was broken by
drh [Thu, 5 Dec 2024 23:53:16 +0000 (23:53 +0000)] 
Fix the build of sqlite3_analyzer.exe on Windows that was broken by
check-in [80f3bf8c2ee31ba1].

FossilOrigin-Name: 223f47b2db8d80629d60a642942eb8b288611e3e466cf904964285229a5809fc

7 months agoMinor doc correction in ext/misc/shathree.c, as reported in the forum. No functional...
stephan [Wed, 4 Dec 2024 16:01:25 +0000 (16:01 +0000)] 
Minor doc correction in ext/misc/shathree.c, as reported in the forum. No functional changes.

FossilOrigin-Name: 3b82d2c6b732617b9be205efadd07326057c93b71c47ffd42de63fc05093667b

7 months agoImprove the output from the ".testctrl opt" command in the CLI.
drh [Mon, 2 Dec 2024 19:55:39 +0000 (19:55 +0000)] 
Improve the output from the ".testctrl opt" command in the CLI.

FossilOrigin-Name: de7064d118c33aab0fff39d072593b287c291870b843d093045300bde464420f

7 months agoEnsure that the query flattener does not change an ON clause term to a WHERE clause...
dan [Mon, 2 Dec 2024 17:21:52 +0000 (17:21 +0000)] 
Ensure that the query flattener does not change an ON clause term to a WHERE clause term.

FossilOrigin-Name: bdd408a2557ff05c9ea962a94b442f7c078d8e1ec27035aa95bc23d4d2bd5606

7 months agoFix a comment typo on the sqlite3ExprIsSingleTableConstraint() routine.
drh [Mon, 2 Dec 2024 16:24:47 +0000 (16:24 +0000)] 
Fix a comment typo on the sqlite3ExprIsSingleTableConstraint() routine.

FossilOrigin-Name: 346a845bf1cd1c7e542f7bf763d86c197d9a3b4f3ea38ade416790a1cf80e6f2

7 months agoFix a harmless typo in debugging output.
drh [Mon, 2 Dec 2024 16:07:38 +0000 (16:07 +0000)] 
Fix a harmless typo in debugging output.

FossilOrigin-Name: 578f76cfb2e298fe6bfd278b545091fe682d01feb0be56ef57b6c9f2c179ac61

7 months agoReformulate [9e09d5d6] so that memsys5 shows up in the late-config summary as being...
stephan [Mon, 2 Dec 2024 14:14:30 +0000 (14:14 +0000)] 
Reformulate [9e09d5d6] so that memsys5 shows up in the late-config summary as being enabled and does the right thing if both --debug and --memsys3 are used.

FossilOrigin-Name: 447db1cd0a6575432996e9735e78bbb09c83827c5e3080339b34df176ab86af0

7 months agoEnable MEMSYS5 with the --dev configure option.
drh [Mon, 2 Dec 2024 13:47:53 +0000 (13:47 +0000)] 
Enable MEMSYS5 with the --dev configure option.

FossilOrigin-Name: 9e09d5d60ac91423e1dec1169e9eb60a531f84261b48490c550cf4529540e6dc

7 months agoSlighly less confusing output from treeview during debugging.
drh [Mon, 2 Dec 2024 13:29:29 +0000 (13:29 +0000)] 
Slighly less confusing output from treeview during debugging.

FossilOrigin-Name: 7aef0b93050cdb79cae68361e84047cea2e8e7251d0581ce917da03352bb1f16

7 months agoTrim a bit more from the sqlite370.svg border to get it closer in scaled size to...
stephan [Sun, 1 Dec 2024 15:23:40 +0000 (15:23 +0000)] 
Trim a bit more from the sqlite370.svg border to get it closer in scaled size to the logo currently on the docsrc site.

FossilOrigin-Name: 81c7277fc59af833365f0ee5af603db49c19a6ba87bd5f252ecdfe72df252d4e

7 months agoCorrect the fill color for the background of sqlite370.svg - it was slightly darker...
stephan [Sun, 1 Dec 2024 14:20:19 +0000 (14:20 +0000)] 
Correct the fill color for the background of sqlite370.svg - it was slightly darker than it should have been.

FossilOrigin-Name: 732132407b3881aaa7fee151baafb6569664f1d2b82ef7743d89bd0a86cf0a09

7 months agoRe-export sqlite370.svg to retain the gradient part and clip the size using the cutti...
stephan [Sun, 1 Dec 2024 14:14:50 +0000 (14:14 +0000)] 
Re-export sqlite370.svg to retain the gradient part and clip the size using the cutting guides in sqlite370.eps.

FossilOrigin-Name: 12017b01c8e6c12fdd8de3c3c325e56b5be80343a1a392538b6e6ed066e46cee

7 months agoExport a clipped copy of sqlite370.eps as sqlite370.svg, based on discussion in ...
stephan [Sun, 1 Dec 2024 14:02:19 +0000 (14:02 +0000)] 
Export a clipped copy of sqlite370.eps as sqlite370.svg, based on discussion in [forum:1bbd6d17ca|forum post 1bbd6d17ca].

FossilOrigin-Name: dd3a13c1209d0bac3d6eb105826429ef29b36682c347995dc266bf42e46a2193

7 months agoAt the end of the configure script ensure that none of the files which are filtered...
stephan [Sat, 30 Nov 2024 17:48:31 +0000 (17:48 +0000)] 
At the end of the configure script ensure that none of the files which are filtered for @VARS@ contain any unresolved @VAR@ placeholders, failing fatally if any do.

FossilOrigin-Name: 301df5c2beb08e8e2944f7a9e46a10114603518385c05a9c30a838ab436369d4

7 months agoIn sqlite_dbpage, cancel any pending truncate operation if there an error
drh [Sat, 30 Nov 2024 14:13:35 +0000 (14:13 +0000)] 
In sqlite_dbpage, cancel any pending truncate operation if there an error
occurs later in the transaction.

FossilOrigin-Name: 1abab10f85a4dba5ffe51a30eeef30853c120e5566ed97b3af1526fff597c647

7 months agoA NEVER() that was added by [eb5ac9e5b9a4f9c8] is violated by the ifnull()
drh [Sat, 30 Nov 2024 12:00:38 +0000 (12:00 +0000)] 
A NEVER() that was added by [eb5ac9e5b9a4f9c8] is violated by the ifnull()
in-line function.  This check-in fixes that problem.

FossilOrigin-Name: 2220ccf4d6fea2413015c72fd318003b4b5afeae7cb7586b714fce36212d8c49

8 months agoFix a NEVER() in the iif() logic that can be true if compiled with
drh [Fri, 29 Nov 2024 11:49:05 +0000 (11:49 +0000)] 
Fix a NEVER() in the iif() logic that can be true if compiled with
SQLITE_ENABLE_UNKNOWN_SQL_FUNCTIONS.  Problem introduced by [eb5ac9e5b9a4f9c8].

FossilOrigin-Name: 3ec2df5a6c731b59b0ab132ee59c74d107f9c4bd32cf47d9776887858b9c0dea

8 months agoRemove some outdated docs from Makefile.in.
stephan [Thu, 28 Nov 2024 23:55:35 +0000 (23:55 +0000)] 
Remove some outdated docs from Makefile.in.

FossilOrigin-Name: cc2c5fc98b2d1957bd26f41f0b646921ecabe2ffe544b3c3565965ba8850b2ff

8 months agoTypo fixes and cleanups in autosetup/README.md.
stephan [Thu, 28 Nov 2024 20:46:51 +0000 (20:46 +0000)] 
Typo fixes and cleanups in autosetup/README.md.

FossilOrigin-Name: 7f366565f41fa4eb532cfaf83074106e235436bfc377116e3bf823ac08fd01a5

8 months agoConfigure script doc updates and cleanups. Skip check for EMSDK when doing an out...
stephan [Thu, 28 Nov 2024 16:14:19 +0000 (16:14 +0000)] 
Configure script doc updates and cleanups. Skip check for EMSDK when doing an out-of-tree build, as ext/wasm does not support that build mode.

FossilOrigin-Name: 9d2f4148db1641e9bf2989c2b1adf5b9dcb2b123526ecacd063bca208b3c36cf

8 months agoext/icu/README.txt: clean up EOL whitespace and add a mention of the --with-icu-...
stephan [Thu, 28 Nov 2024 15:52:21 +0000 (15:52 +0000)] 
ext/icu/README.txt: clean up EOL whitespace and add a mention of the --with-icu-... configure flags available as of version 3.48.

FossilOrigin-Name: 4976ac717bec2f2c89d94ac1d9b96afd1da573ba34e3c78637c3937287635e72

8 months agoImprovements to sqlite3ExprImpliesExpr() so that it recognizes that expressions like...
drh [Thu, 28 Nov 2024 11:52:18 +0000 (11:52 +0000)] 
Improvements to sqlite3ExprImpliesExpr() so that it recognizes that expressions like "iif(X,Y)" and "CASE WHEN X THEN Y END" imply X.

FossilOrigin-Name: eb5ac9e5b9a4f9c85a2203107697da14c07c1667037dff672f9d786cea964a37

8 months agoSimplification to the fix in the prior check-in. expr-implies-expr
drh [Thu, 28 Nov 2024 02:09:27 +0000 (02:09 +0000)] 
Simplification to the fix in the prior check-in.

FossilOrigin-Name: f79cb748c9447ca4d2184a24219feb19571eb79870e0bedf14704743a3d5f8b9

8 months agoThe sqlite3ExprCompare() routine should always compare the same variables
drh [Thu, 28 Nov 2024 01:47:44 +0000 (01:47 +0000)] 
The sqlite3ExprCompare() routine should always compare the same variables
as equal to one another, regardless of whether or not QPSG is set.

FossilOrigin-Name: df95d5209a77c0302e08ea7b1f248646fb2a062ba5beca898678aee0a1d03a3a

8 months agoAdd two NEVER() conditions.
drh [Thu, 28 Nov 2024 00:58:37 +0000 (00:58 +0000)] 
Add two NEVER() conditions.

FossilOrigin-Name: 4f358ad20dc8a45e7aaa1a1996b40abd39caf34be6556ed54e1e0c80572b7ac0

8 months agoEnhancements to sqlite3ExprImpliesExpr() so that it realizes that
drh [Thu, 28 Nov 2024 00:34:20 +0000 (00:34 +0000)] 
Enhancements to sqlite3ExprImpliesExpr() so that it realizes that
"iif(A,B)" implies "A".

FossilOrigin-Name: d96ecbee59b50eca25447456dfff2c168e8eade7a68e542932d5829f97debb31

8 months agoFix an inaccuracy in the documentation in fts5.h.
dan [Wed, 27 Nov 2024 18:01:25 +0000 (18:01 +0000)] 
Fix an inaccuracy in the documentation in fts5.h.

FossilOrigin-Name: ec3ca6f17972a9624018ae352e5a4be8dc34602a4569c80e827e09cd7fbed7f7

8 months agoAllow the iif() function to work with two arguments. The third argument is
drh [Tue, 26 Nov 2024 23:40:54 +0000 (23:40 +0000)] 
Allow the iif() function to work with two arguments.  The third argument is
then assumed to be NULL.  Also allow if() as an alternative spelling for iif().

FossilOrigin-Name: 1e405c39a8405e2081ce061559d1aacc70055fc74ab86d886b973076a3fb124b

8 months agoNew test cases. two-argument-iif
drh [Tue, 26 Nov 2024 23:30:49 +0000 (23:30 +0000)] 
New test cases.

FossilOrigin-Name: f1cb1a815a09d71eb52d5c7f2f4e5c7689535232dee365e46ac41cce7fd86c01

8 months agoProvide a two-argument version of the iif() function, plus an alternative
drh [Tue, 26 Nov 2024 20:56:03 +0000 (20:56 +0000)] 
Provide a two-argument version of the iif() function, plus an alternative
spelling that only requires a single "i".

FossilOrigin-Name: a251ee645e11e24b67473d8a5bd3f8b72fde1ac9d5fda074f5da2297deb2faa8

8 months agoUpdate fts5 so that the xInstToken() extension API works with prefix queries.
dan [Tue, 26 Nov 2024 20:46:18 +0000 (20:46 +0000)] 
Update fts5 so that the xInstToken() extension API works with prefix queries.

FossilOrigin-Name: 41b79bde4a4b6510b41cc9175ff2527fbd3ca9209812361783754f24cf67ef9e

8 months agoUpdate documentation in fts5.h. fts5-tokendata-prefix
dan [Tue, 26 Nov 2024 20:16:34 +0000 (20:16 +0000)] 
Update documentation in fts5.h.

FossilOrigin-Name: f1e44f703acb415e2ff7d7f87fa05fc874ef1c432095bb3ccb45c6ad2fd085a9

8 months agoPatch autosetup to rename --debug to --autosetup-debug so we can use --debug/--enable...
stephan [Tue, 26 Nov 2024 19:19:12 +0000 (19:19 +0000)] 
Patch autosetup to rename --debug to --autosetup-debug so we can use --debug/--enable-debug for its historical purpose. Update autosetup/README.md with details of the patch.

FossilOrigin-Name: 00dffd10f0c77fed53bdbf1536f6ef9b6076775f1b9a10794b87e3ace33ca1d9

8 months agoPatch autosetup to rename --debug to --autosetup-debug so we can use --debug/--enable... autosetup-debug-flag
stephan [Tue, 26 Nov 2024 19:02:16 +0000 (19:02 +0000)] 
Patch autosetup to rename --debug to --autosetup-debug so we can use --debug/--enable-debug for its historical purpose. --with-debug is now an alias for --enable-debug but can be removed entirely if all scripts which have been adjusted for the autosetup build are edited to (re)use the older flag name.

FossilOrigin-Name: 3296c8d30559eafa20f4748339177149172ecf79b019c42ed0d5ee9cf62a666a

8 months agoMove some of the in-comment configure script help text into the --help text. No funct...
stephan [Tue, 26 Nov 2024 16:12:05 +0000 (16:12 +0000)] 
Move some of the in-comment configure script help text into the --help text. No functional changes.

FossilOrigin-Name: ee8449c482b6f9cfb82fa2417da194fc9aa56f54ef3ac83d368537181634ab1c

8 months agoMinor tweak to ./configure --help output.
drh [Tue, 26 Nov 2024 16:04:02 +0000 (16:04 +0000)] 
Minor tweak to ./configure --help output.

FossilOrigin-Name: 7e634d0569667ce1e17f4a611039cbb726078dc2e6be1f1b19655dc569170ce5

8 months agoReplace some outdated docs re. soname with a link to the soname forum post.
stephan [Tue, 26 Nov 2024 03:15:34 +0000 (03:15 +0000)] 
Replace some outdated docs re. soname with a link to the soname forum post.

FossilOrigin-Name: 9225701cb88cb4629a12b45de5743378448b1d2ddb351916b77cfde638698070

8 months agoCorrect duplicated soname linker flags, one of them mis-named.
stephan [Mon, 25 Nov 2024 17:07:58 +0000 (17:07 +0000)] 
Correct duplicated soname linker flags, one of them mis-named.

FossilOrigin-Name: 87dfd92d3a5a6a09c32c70e724a3f341bc63b9c6dfa0aa94fbbbdd45cc9c29f3

8 months agoFix another issue in argument expansion on Windows for tclsqlite3.c in
drh [Fri, 22 Nov 2024 17:41:00 +0000 (17:41 +0000)] 
Fix another issue in argument expansion on Windows for tclsqlite3.c in
interpreter mode.  Problem introduced by check-in [9b87ea219bce5689] and
unfixed by [cd942dce148c9d8f].

FossilOrigin-Name: 0fe1622cec95b7ebecc127ee57a08113d3da1dadbe72c03a13d6751b3043e50f

8 months agoRemove a flaky JS test which has a result depending on unrepredictable context. That...
stephan [Fri, 22 Nov 2024 16:45:43 +0000 (16:45 +0000)] 
Remove a flaky JS test which has a result depending on unrepredictable context. That same feature is more reliably tested at a later point in the same script.

FossilOrigin-Name: 3d6ae13805bdba4c73b7443f20073264cdd157299cb911228600e1528a136bb1

8 months agoIn order to support package builds, like OpenBSD's, which set a custom soname on...
stephan [Fri, 22 Nov 2024 16:24:55 +0000 (16:24 +0000)] 
In order to support package builds, like OpenBSD's, which set a custom soname on libsqlite3.so, extend the --soname configure flag to allow arbitrary soname values.

FossilOrigin-Name: 9c1c1b99837efe3704778c594a65e0cd4cd0a8ec492044d3bb07f1b37a692c6a

8 months agoMove handling of the tempstore feature flag into the OPT_FEATURE_FLAGS list and remov...
stephan [Fri, 22 Nov 2024 14:18:23 +0000 (14:18 +0000)] 
Move handling of the tempstore feature flag into the OPT_FEATURE_FLAGS list and remove the CFLAGS.libsqlite3 makefile var which exists solely to account for the tempstore being tracked separately from the other feature flags.

FossilOrigin-Name: 2df5065d118ca4abcb4f285d07819e73c5e32f7e470d30eabc7e3d999ec8d0f2

8 months agoMakefile doc cleanups. No functional changes.
stephan [Fri, 22 Nov 2024 14:12:18 +0000 (14:12 +0000)] 
Makefile doc cleanups. No functional changes.

FossilOrigin-Name: 64add0ac706101c53e2d2877fdc0d1ccd071814cae969768d2741cee05f23c01

8 months agoRemove the libsqlite3.so.3 link from the installation process, as it now serves no...
stephan [Fri, 22 Nov 2024 13:47:12 +0000 (13:47 +0000)] 
Remove the libsqlite3.so.3 link from the installation process, as it now serves no functional purpose. We retain libsqlite3.so.0 (A) for compatibility with clients linked against legacy builds and (B) 0 is still valid as the library's ABI version.

FossilOrigin-Name: 91bd9813e04e34e088d5e73bfe2a4f338513363d9a99095a232b811c6b616354

8 months agoAdd links to [/forumpost/5a3b44f510df8ded|the SONAME discussion] at relevant places...
stephan [Fri, 22 Nov 2024 13:22:25 +0000 (13:22 +0000)] 
Add links to [/forumpost/5a3b44f510df8ded|the SONAME discussion] at relevant places in auto.def and the makefiles. No functional changes.

FossilOrigin-Name: c78dcc318a36af123676e54d85fc7f980c21b0ea366d164a96e2d998286d3813

8 months agoFix harmless scanbuild warnings caused by the introduction of the
drh [Fri, 22 Nov 2024 12:29:35 +0000 (12:29 +0000)] 
Fix harmless scanbuild warnings caused by the introduction of the
".dbtotxt" command into the CLI by check-in [b43acf5a8cd4a5ef].

FossilOrigin-Name: 554d8fbd865436ace900859874b6c8c7e1b782184158a86b7788644e27bd1997

8 months agoFix some harmless scanbuild warnings in the shell.
drh [Fri, 22 Nov 2024 12:07:21 +0000 (12:07 +0000)] 
Fix some harmless scanbuild warnings in the shell.

FossilOrigin-Name: 9ba1c9b505d459366274043c1c5327f1a9d4e15d3564d99f8a15926af1d6d247

8 months agoFix harmless compiler warning caused by [c77a4a42f2e3d164].
drh [Fri, 22 Nov 2024 12:00:31 +0000 (12:00 +0000)] 
Fix harmless compiler warning caused by [c77a4a42f2e3d164].

FossilOrigin-Name: 063690d2c5cc2a887055b9141d3fcdb4fd2fa35d069c9a39b81903c531c73fcf

8 months agoMake ".scanstatus" an undocumented alternative name for ".scanstats" in the CLI.
drh [Thu, 21 Nov 2024 20:57:11 +0000 (20:57 +0000)] 
Make ".scanstatus" an undocumented alternative name for ".scanstats" in the CLI.

FossilOrigin-Name: f20688efc2bc54648618b0aa2593a771f455ee8cc703b52273452d15e680b67c

8 months agoFix a bug-in-waiting (one too few list elements) in [b6bd25bd769e].
stephan [Thu, 21 Nov 2024 20:10:38 +0000 (20:10 +0000)] 
Fix a bug-in-waiting (one too few list elements) in [b6bd25bd769e].

FossilOrigin-Name: e527dcd016fbeb55b0e613a0b3b95350bbc8b3ee601bbadfedaf6bd5458b3570

8 months agoAdd the --scanstatus configure flag to set -DSQLITE_ENABLE_STMT_SCANSTATUS.
stephan [Thu, 21 Nov 2024 20:07:01 +0000 (20:07 +0000)] 
Add the --scanstatus configure flag to set -DSQLITE_ENABLE_STMT_SCANSTATUS.

FossilOrigin-Name: b6bd25bd769e4286ad0b8ca5059bc9da52188cefe92525d8994aa921768aa750

8 months agoFix a JS test which was broken when OMIT_PROGRESS_CALLBACK was _not_ used.
stephan [Thu, 21 Nov 2024 15:53:31 +0000 (15:53 +0000)] 
Fix a JS test which was broken when OMIT_PROGRESS_CALLBACK was _not_ used.

FossilOrigin-Name: fba23150b5b57980f8ed2656a2325f95215ca1e13fc3449b5eec804831dd65c8

8 months agoDocument that -nofollow does not work on Windows. Fix Windows symlink
drh [Thu, 21 Nov 2024 01:50:01 +0000 (01:50 +0000)] 
Document that -nofollow does not work on Windows.  Fix Windows symlink
test cases for when the test suite is run as administrator.

FossilOrigin-Name: 4de8a75ec5a2e3655a2d0c5a9333b58f8b48b681255f0a01866b610ae6249bc2

8 months agoFix compiler warnings caused by variable shadowing.
dan [Wed, 20 Nov 2024 20:39:18 +0000 (20:39 +0000)] 
Fix compiler warnings caused by variable shadowing.

FossilOrigin-Name: 211b305791980b24c4192ffc57a0471473de3fca32bfc146c0eeacedef7a88aa

8 months agoNew configuration option --dynlink-tools causes some command-line tools like
drh [Wed, 20 Nov 2024 16:21:34 +0000 (16:21 +0000)] 
New configuration option --dynlink-tools causes some command-line tools like
sqldiff and sqlite3_analyzer to link against the libsqlite3.so system library
rather than being built-in.  Caution:  sqlite3_analyzer requires the
SQLITE_ENABLE_DBSTAT_VTAB compile-time option on its SQLite library in order
to work, so do not use --dynlink-tools to build sqlite3_analyzer without it.

FossilOrigin-Name: 314c606dd36e03d2ded899c536585ea21250af56b553fa4c96dc714cb5099522

8 months agoUse shared-library flags, not shared-object flags, to create shared libraries. link-tools-dynamically
drh [Wed, 20 Nov 2024 16:17:01 +0000 (16:17 +0000)] 
Use shared-library flags, not shared-object flags, to create shared libraries.
This makes no difference on Linux, but is required for Mac.

FossilOrigin-Name: bfaa3ee7588b6f6be9799882c6ed6472357d988fac31512d5e92fe28f57029c6

8 months agoBug fix in the SubrtnSig logic from [c9a3498113074bbc], if a subquery is
drh [Wed, 20 Nov 2024 14:59:32 +0000 (14:59 +0000)] 
Bug fix in the SubrtnSig logic from [c9a3498113074bbc], if a subquery is
copied and then changes are made to the copy, be sure to give the copy
a unique Select.selId value so that the original will not be substituted
in place of the modified copy.
[forum:/forumpost/0b9ded2f8428ac00|Forum post 0b9ded2f8428ac00].

FossilOrigin-Name: 19d1bede5654bcfa9f7a151b9b2616a3d10873b8e3f8cf54a3a7e810da08f844

8 months agoProvide the sqlite3ShowWhereTerm() interface callable interactively from
drh [Wed, 20 Nov 2024 14:19:44 +0000 (14:19 +0000)] 
Provide the sqlite3ShowWhereTerm() interface callable interactively from
a debugger, when compiling with SQLITE_DEBUG.

FossilOrigin-Name: c77a4a42f2e3d16427a69295436efe36335e56e97abd0efba814092498a8dea8

8 months agoDo not report an sqlite3_error_offset() for errors that occur inside of
drh [Wed, 20 Nov 2024 11:34:16 +0000 (11:34 +0000)] 
Do not report an sqlite3_error_offset() for errors that occur inside of
views or triggers, since the text of those elements is not part of the
original query.

FossilOrigin-Name: bf66c6dfc25c2562a4e6a5b24dd1660213a8fefbb5763e7583b87fb06dbaaf43