]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
7 months agoImprovements to the display of subqueries in the FROM clause for treeview
drh [Thu, 2 Jan 2025 18:43:29 +0000 (18:43 +0000)] 
Improvements to the display of subqueries in the FROM clause for treeview
output.  (Debug and analysis code only - does not affect production builds.)

FossilOrigin-Name: 4a2d65cdcdd3d21bb7d9ea0efb434484f1b8642c2bb6457db58bc2a5f4fc16e5

7 months agoClose database connections in test/dbpage.test, for Windows.
drh [Thu, 2 Jan 2025 17:56:11 +0000 (17:56 +0000)] 
Close database connections in test/dbpage.test, for Windows.

FossilOrigin-Name: 322d255ed89c1dee08745e89f3c2bcf495283fd87b7526e70d6525a6e96b0ecf

7 months agoFix recent test cases so that they work even when auto_vacuum defaults to on.
drh [Thu, 2 Jan 2025 15:39:54 +0000 (15:39 +0000)] 
Fix recent test cases so that they work even when auto_vacuum defaults to on.

FossilOrigin-Name: 41f6e46695b547dece4daf2f3714e29f231aa04774f57fbd31aeb0a4290c0e7d

7 months agoAdd a test case for ROLLBACK TO of database truncate operations made through the...
dan [Thu, 2 Jan 2025 15:27:15 +0000 (15:27 +0000)] 
Add a test case for ROLLBACK TO of database truncate operations made through the sqlite_dbpage vtab.

FossilOrigin-Name: eb335beb1eb9ebbea4cb793d24f65787d0d9d8539bc6b5971e4e4298fdfce0c2

7 months agoImprovements to the way that truncation is implemented in sqlite_dbpage().
drh [Thu, 2 Jan 2025 15:03:13 +0000 (15:03 +0000)] 
Improvements to the way that truncation is implemented in sqlite_dbpage().

FossilOrigin-Name: ac4bb2e4ecf0bdb0d8ac12b1ccb42d51af02f519a038cfc79faab5c216971056

7 months agoUpdate the build instructions for Windows to note that VS2015 or later is
drh [Thu, 2 Jan 2025 12:14:01 +0000 (12:14 +0000)] 
Update the build instructions for Windows to note that VS2015 or later is
required to avoid the need to install tclsh.exe.

FossilOrigin-Name: da0ef0567be55648413bcbf2e129f348776a908dbad2ac8582ee3e27ac459e3b

7 months agoFix the tool/omittest.tcl script, broken by [d8c0e0184226bdae].
drh [Wed, 1 Jan 2025 18:18:49 +0000 (18:18 +0000)] 
Fix the tool/omittest.tcl script, broken by [d8c0e0184226bdae].

FossilOrigin-Name: 4f6c36a61c2b27e204c00bd7467453098f756c7e596b7e62d47da8784fbd2026

7 months agoFix the vfstrace.c extension so that it supports xFetch and xUnfetch.
drh [Wed, 1 Jan 2025 12:24:01 +0000 (12:24 +0000)] 
Fix the vfstrace.c extension so that it supports xFetch and xUnfetch.

FossilOrigin-Name: c7132b7e62422378f0560dcf0837888db5aa70cded9d783ab389581aa43dc5c8

7 months agoAdd the convenience makefile target (unix-only) "src-archives" that builds
drh [Mon, 30 Dec 2024 21:23:53 +0000 (21:23 +0000)] 
Add the convenience makefile target (unix-only) "src-archives" that builds
the various tarballs and ZIP archives that go on the download page.  This is
intended to make it easier and less error prone to put up new "draft" download
pages for testing.

FossilOrigin-Name: 2b17bc49655c577029919c2d409de994b0d252f8efb5da1ba0913f2c96bee552

7 months agoNew assert() statements to show that the sqlite3_value.db field is initialized
drh [Mon, 30 Dec 2024 13:54:52 +0000 (13:54 +0000)] 
New assert() statements to show that the sqlite3_value.db field is initialized
for MemArrays.

FossilOrigin-Name: 7cd8ccf57d1ae0f597ec5004201395f61ef4750728f3c1b9c4dd52d28916a4f7

7 months agoAdd an extra assert() to releaseMemArray() just to prove that the
drh [Mon, 30 Dec 2024 12:29:18 +0000 (12:29 +0000)] 
Add an extra assert() to releaseMemArray() just to prove that the
sqlite3_value.db field is never NULL.

FossilOrigin-Name: b969ef1def5121c7ff54e3586528274f006ca994b308cf88ccaa9d4f56bf30df

7 months agoFour new assert() statements to help with static analysis.
drh [Sun, 29 Dec 2024 11:54:12 +0000 (11:54 +0000)] 
Four new assert() statements to help with static analysis.

FossilOrigin-Name: e7f7c9d22be8a17b9a4d8f954fcdd40591ba9da5fb674f1184f960bca5f3d30b

7 months agoShow ETC in fuzzcheck with the --spinner option when there is only one input
drh [Sat, 28 Dec 2024 13:04:31 +0000 (13:04 +0000)] 
Show ETC in fuzzcheck with the --spinner option when there is only one input
file.

FossilOrigin-Name: 809699aeaaa4bae67e7ddeae3d42c7133f7deadbb4eb869cfb7e99dd97bdea99

7 months agoFixes to the substr() SQL function so that it can handle ridiculously large
drh [Sat, 28 Dec 2024 12:32:01 +0000 (12:32 +0000)] 
Fixes to the substr() SQL function so that it can handle ridiculously large
numbers in its 2nd and 3rd arguments without signed integer overflows.

FossilOrigin-Name: c1de8f916ea617109a903c436c57d082756fbb2b933ba9ce6998b9b912b12dea

7 months agoOmit code to link all winShm objects open on a single node into a list. This is no...
dan [Thu, 26 Dec 2024 16:10:15 +0000 (16:10 +0000)] 
Omit code to link all winShm objects open on a single node into a list. This is no longer required.

FossilOrigin-Name: b400ab4ba99d3ed7e90c93257d729563c630ef451017a702d42f322a4e57b663

7 months agoMerge trunk changes into this branch.
dan [Thu, 26 Dec 2024 14:40:11 +0000 (14:40 +0000)] 
Merge trunk changes into this branch.

FossilOrigin-Name: 3e2893097c59820def88bb4739189c9c9a4f70a98a0a72b81959658f069715f6

7 months agoProperly wait for asynchronous results for calls to LockFileEx() on FILE_FLAG_OVERLAP...
dan [Tue, 24 Dec 2024 14:44:38 +0000 (14:44 +0000)] 
Properly wait for asynchronous results for calls to LockFileEx() on FILE_FLAG_OVERLAPPED files even if LOCKFILE_FAIL_IMMEDIATELY, which usually causes LockFileEx() to return synchronously, is specified.

FossilOrigin-Name: 35b3e73c5a9efa12f9bb0dad1721fce128cd1e3bcbc87027ee4ea685a12a70d5

7 months agoIn the (debugging) rtreenode() function, do not override an error coming out
drh [Sun, 22 Dec 2024 21:17:27 +0000 (21:17 +0000)] 
In the (debugging) rtreenode() function, do not override an error coming out
of sqlite3_result_text().

FossilOrigin-Name: 286559dfb3ad01fcf34360991a108dbe6bf81e7919c461ada6c691ee8f43868f

7 months agoFix a test case in sqllimits1.test so that it works with the Apple
drh [Thu, 19 Dec 2024 20:29:36 +0000 (20:29 +0000)] 
Fix a test case in sqllimits1.test so that it works with the Apple
configuration which changes the default SQLITE_MAX_LENGTH.

FossilOrigin-Name: 536fff14acb3335ad00fb1165cfb2f97e7a31c36273b9b97ffdb4b572fe72c08

7 months agoCorrection to check-in [a9759fc78d6cb0df] - printf() parameters values must
drh [Thu, 19 Dec 2024 19:52:13 +0000 (19:52 +0000)] 
Correction to check-in [a9759fc78d6cb0df] - printf() parameters values must
be integers.

FossilOrigin-Name: 2db531d1911369ea932d3559abcc02389e5f9ad72b46b0801dfb6063855aee1b

7 months agoThe BTree mutex must be held when calling sqlite3BtreeLastPage(). This
drh [Thu, 19 Dec 2024 19:02:09 +0000 (19:02 +0000)] 
The BTree mutex must be held when calling sqlite3BtreeLastPage().  This
check-in fixes a bug introduced by [cf8b99e17872c054].

FossilOrigin-Name: e6c30ee52c5cdc193804cec63374d558b45e4d67fc6bde58771ca78485ca0acf

7 months agoFix the sort4.test module so that the first two test cases are omitted
drh [Thu, 19 Dec 2024 14:20:47 +0000 (14:20 +0000)] 
Fix the sort4.test module so that the first two test cases are omitted
when SQLite has been compiled using SQLITE_MAX_WORKER_THREADS=0.

FossilOrigin-Name: 5b96dcf5f6bf41dcb89ced64efd4585e36dce718c428c2324d94e4942905c3bb

7 months agoconfigure script: only set the SQLITE_TEMP_STORE feature flag if --with-tempstore...
stephan [Thu, 19 Dec 2024 14:09:35 +0000 (14:09 +0000)] 
configure script: only set the SQLITE_TEMP_STORE feature flag if --with-tempstore is explicitly set, to avoid colliding with that flag being set by other means via the test fixture scripts.

FossilOrigin-Name: c7839b80972fb31df6ac81af38cf6d04c9542714c20fbaa7457c1eaf955f9222

7 months agoFix the Microsoft makefile so that it does not set SQLITE_TEMP_STORE
drh [Thu, 19 Dec 2024 14:08:06 +0000 (14:08 +0000)] 
Fix the Microsoft makefile so that it does not set SQLITE_TEMP_STORE
unnecessarily.

FossilOrigin-Name: f9b92f9513def690311a5ca46b68cab02bedec7984960d44e7dea5c2d196725a

7 months agoEnhance lemon so that it accepts the -U command-line option that undefines
drh [Thu, 19 Dec 2024 13:36:36 +0000 (13:36 +0000)] 
Enhance lemon so that it accepts the -U command-line option that undefines
a preprocessor macro.

FossilOrigin-Name: e2188a3edf3576963b45e9ffe6ef53e2a85aa68ea3dfb3243b4943d06ffaf829

7 months agoFix additional integer overflow problems in the substr() function.
drh [Thu, 19 Dec 2024 12:08:39 +0000 (12:08 +0000)] 
Fix additional integer overflow problems in the substr() function.

FossilOrigin-Name: 472abb492f1d1553ae6bdf53cc64bebfe75423526335beab7eaff26cc495cd7d

7 months agoFix possible integer oveflow in the second and third argument to substr().
drh [Wed, 18 Dec 2024 20:29:29 +0000 (20:29 +0000)] 
Fix possible integer oveflow in the second and third argument to substr().

FossilOrigin-Name: b04b4006f38f83d36eaf43c4bace7d53866b02b45e0ddcf1704266fed3bfc11c

7 months agoAvoid 32-bit roundoff error on the second argument to round().
drh [Wed, 18 Dec 2024 18:29:19 +0000 (18:29 +0000)] 
Avoid 32-bit roundoff error on the second argument to round().
[forum:/forumpost/170aeab92a|Forum post 170aeab92a].

FossilOrigin-Name: a9759fc78d6cb0df7c81f20c2c5c358729e571ebee50ee2b1441a15239d0b4b6

7 months agoRename some var refs in ext/lsm1/Makefile for the new build process.
stephan [Wed, 18 Dec 2024 03:41:29 +0000 (03:41 +0000)] 
Rename some var refs in ext/lsm1/Makefile for the new build process.

FossilOrigin-Name: 0ce42fa586049e8864c5fd1a1d8703722f8549ba0a20ca748b887b7975ba9eb7

7 months agoDo not attempt to truncate a database in sqlite_dbpage if the database is
drh [Tue, 17 Dec 2024 14:32:37 +0000 (14:32 +0000)] 
Do not attempt to truncate a database in sqlite_dbpage if the database is
not larger than the requested truncation size.

FossilOrigin-Name: cf8b99e17872c054e7ac0832d12633ce497c843dfc67148daf3b17762fd2b424

7 months agoFix release test errors on winrt.
dan [Mon, 16 Dec 2024 19:31:30 +0000 (19:31 +0000)] 
Fix release test errors on winrt.

FossilOrigin-Name: 39bebd50b80ceee321b1da837c72a20cdb26f06e4b726f23e3ddac877d9400a7

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 agoFix a problem on this branch causing a file-handle to be leaked following an OOM...
dan [Mon, 16 Dec 2024 15:13:34 +0000 (15:13 +0000)] 
Fix a problem on this branch causing a file-handle to be leaked following an OOM condition.

FossilOrigin-Name: 5ca12dc964b2d8c3d11a2be5be7eac0dc994cec3a8b5fdfeac4ff8dde19a5a93

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 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 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 agoFix a buffer overread in test code. Add test configurations for ENABLE_SETLK=1 and...
dan [Thu, 12 Dec 2024 20:59:32 +0000 (20:59 +0000)] 
Fix a buffer overread in test code. Add test configurations for ENABLE_SETLK=1 and FOR_WINRT=1 builds to release testing.

FossilOrigin-Name: b558db5db7e7c9aced1d24d74dc5ee2fab7cd04ec6570247c9c45723eb6f8fc0

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 agoEnsure that all win32 API functions invocations in os_win.c are made via the function...
dan [Wed, 11 Dec 2024 15:30:58 +0000 (15:30 +0000)] 
Ensure that all win32 API functions invocations in os_win.c are made via the function table. Fix asan error in test code.

FossilOrigin-Name: 2ffdc799c63ff8858f2aa9177ca9c74be2df5d7594cb10fb0a233537d83fd563

7 months agoFix a problem with walsetlk.test on windows.
dan [Tue, 10 Dec 2024 21:24:28 +0000 (21:24 +0000)] 
Fix a problem with walsetlk.test on windows.

FossilOrigin-Name: 704e6567c14a4a07a1a4d1fc2bd8a7f288b55b27508d23ba7f5c755c830c14ec

7 months agoEnsure windows may block on a SHARED (but not EXCLUSIVE) DMS lock.
dan [Tue, 10 Dec 2024 19:00:07 +0000 (19:00 +0000)] 
Ensure windows may block on a SHARED (but not EXCLUSIVE) DMS lock.

FossilOrigin-Name: 55e4e7bb0074859e8c3e736e7eceb69af8408ce75135f5baa09e98aaf4e2a321

7 months agoFix walsetlk.test to work on unix.
dan [Tue, 10 Dec 2024 18:12:59 +0000 (18:12 +0000)] 
Fix walsetlk.test to work on unix.

FossilOrigin-Name: 798dff041be46d2d5014779c0855f60e6b2a142e9946bfb79061d7dff0bc3d27

7 months agoMerge latest trunk changes into this branch.
dan [Tue, 10 Dec 2024 17:36:20 +0000 (17:36 +0000)] 
Merge latest trunk changes into this branch.

FossilOrigin-Name: d67a42d62555cf9294e11a04d3c7cfdf11ca7978d60fc085f5a73e36aff8313e

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 agoTest the case where a db connection blocks for a while and then successfully obtains...
dan [Mon, 9 Dec 2024 17:30:20 +0000 (17:30 +0000)] 
Test the case where a db connection blocks for a while and then successfully obtains the lock.

FossilOrigin-Name: 9cbc97ff8411a672b572000e4509ac02b3d29911be5ce1bcf334ed8e2a91db77

7 months agoEnhance tests to ensure that blocking locks, and not calls to xSleep(), are being...
dan [Mon, 9 Dec 2024 16:01:28 +0000 (16:01 +0000)] 
Enhance tests to ensure that blocking locks, and not calls to xSleep(), are being used by SQLITE_ENABLE_SETLK_TIMEOUT builds when they should be.

FossilOrigin-Name: c892242bb642f7a6a961e310ed8b4f1e140f8ee32c00f50021c6011c6e7e1476

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 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

8 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

8 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

8 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

8 months agoFix filectrl.test so that it works with winrt builds.
dan [Wed, 4 Dec 2024 19:32:24 +0000 (19:32 +0000)] 
Fix filectrl.test so that it works with winrt builds.

FossilOrigin-Name: 70b0cfb0493e3fe56645648b462cb035d0d791f95b2913b7622f08c1090338c0

8 months agoAssume an NT-based OS when running tests if sqlite_os_type is not set.
dan [Wed, 4 Dec 2024 18:27:13 +0000 (18:27 +0000)] 
Assume an NT-based OS when running tests if sqlite_os_type is not set.

FossilOrigin-Name: 22e4aeded0a6a691fc7026f3cd90836a289dfc994269f8576d01e28fa478902b

8 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

8 months agoBack out minor changes not required by this branch.
dan [Tue, 3 Dec 2024 19:41:41 +0000 (19:41 +0000)] 
Back out minor changes not required by this branch.

FossilOrigin-Name: 68c34ffd2332d89cb6400bce5dad350a6e48c395924b8380cbeb0dbe64141808

8 months agoMerge latest trunk into this branch.
dan [Tue, 3 Dec 2024 19:30:14 +0000 (19:30 +0000)] 
Merge latest trunk into this branch.

FossilOrigin-Name: eb13b8b3ef67ca8a252f7a4fd5a83ed31fefe68aa5ad8693d9d1f17218f4d176

8 months agoFurther test file tweaks to run with SQLITE_OS_WINRT builds.
dan [Tue, 3 Dec 2024 19:09:54 +0000 (19:09 +0000)] 
Further test file tweaks to run with SQLITE_OS_WINRT builds.

FossilOrigin-Name: 54853421ba012c192ee2a41873e6ba10e187a6ec2e23182ccbec56864604166f

8 months agoFix the lock_win32_file test command so that it works with winrt builds.
dan [Tue, 3 Dec 2024 15:19:02 +0000 (15:19 +0000)] 
Fix the lock_win32_file test command so that it works with winrt builds.

FossilOrigin-Name: 5994656074b2db2c172f4c690c3b40cadd12e91d737fb91a03268148f8b49421

8 months agoFix a problem with SQLITE_OS_WINRT builds.
dan [Mon, 2 Dec 2024 20:48:17 +0000 (20:48 +0000)] 
Fix a problem with SQLITE_OS_WINRT builds.

FossilOrigin-Name: baf43e8c7da6aacce874ec30d0c9e1dcb44c5ed9de2214099d42fbbd335d2e93

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 months agoOn windows, use a separate handle for each connection for xShmLock() locks.
dan [Sat, 30 Nov 2024 20:00:54 +0000 (20:00 +0000)] 
On windows, use a separate handle for each connection for xShmLock() locks.

FossilOrigin-Name: 272d552f126357d7bc16d84f13a4bea823abc6ef7faf90e3cffcedb68210f52a

8 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

8 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

8 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