]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
3 weeks agoComment improvements. Ensure that tests in shellB.test that require
drh [Wed, 18 Mar 2026 17:16:18 +0000 (17:16 +0000)] 
Comment improvements.  Ensure that tests in shellB.test that require
virtual tables do not run when compiling without virtual table support.

FossilOrigin-Name: a270c6cc0eea8a8a2cf1ce30d724b2f12b11a1c343cd8520bd7843f4e62878f8

3 weeks agoImprove the integrity-check error message when floating point index values
drh [Wed, 18 Mar 2026 15:51:15 +0000 (15:51 +0000)] 
Improve the integrity-check error message when floating point index values
are off by one or two ULPs.  Change the name of the eiib1.test test module
to expridx1.test.

FossilOrigin-Name: 4e996c183ea8d270b4448b471d4d032e13cef89f537674599d1e7c367cc2d0f8

3 weeks agoDo not assume that a recursive CTE emits rows in ORDER BY order. Forum [forum:deb1ead...
dan [Wed, 18 Mar 2026 15:40:26 +0000 (15:40 +0000)] 
Do not assume that a recursive CTE emits rows in ORDER BY order. Forum [forum:deb1eadf4d677bd5 | deb1eadf4d677bd5].

FossilOrigin-Name: 971aa34b3fd86ba30fe170886d9f83c17159b1638c4bd4fb6cdef79b1c9a88e2

3 weeks agoTake care not to overread the record header when decoding the record
drh [Wed, 18 Mar 2026 14:47:20 +0000 (14:47 +0000)] 
Take care not to overread the record header when decoding the record
in vdbeIsMatchingIndexKey().

FossilOrigin-Name: 3a275b5848767b61011b9d1d3d1a62328a80906386375d1b1e13fd92b6983e05

3 weeks agoPad the allocation in vdbeIsMatchingKey() a little to avoid undefined behaviour if...
dan [Wed, 18 Mar 2026 14:01:21 +0000 (14:01 +0000)] 
Pad the allocation in vdbeIsMatchingKey() a little to avoid undefined behaviour if the record is corrupt and getVarint32() reads past the end of it.

FossilOrigin-Name: 9b0671a4f58098948d530f5e238b483a0e9f1309021aff0d6b5ea90e6c8f4e7b

3 weeks agoAdjust the fix at [f7389cdb129d3386] so that integrity_check output still
drh [Wed, 18 Mar 2026 13:49:06 +0000 (13:49 +0000)] 
Adjust the fix at [f7389cdb129d3386] so that integrity_check output still
appears prior to the SQLITE_CORRUPT return.

FossilOrigin-Name: efd9a7a6c862f778da9cd74e38f674e5d1094aa1c566ea3e68553e83f59502d3

3 weeks agoSimplification to the logic that decides whether or not an index
drh [Wed, 18 Mar 2026 12:36:01 +0000 (12:36 +0000)] 
Simplification to the logic that decides whether or not an index
field matches when floating point values are close but not exact.

FossilOrigin-Name: 3897017c0e871c676d44786a6f11205fd4b7a947d9d1359109037a123eda6b9b

3 weeks agoFix harmless signed/unsigned compiler warnings.
drh [Wed, 18 Mar 2026 11:15:57 +0000 (11:15 +0000)] 
Fix harmless signed/unsigned compiler warnings.

FossilOrigin-Name: aa211fa1d49b6734913e957f9e4b9825709a1493d275f7dfaf9123dc8c7232dc

3 weeks agoFix some cases where integrity-check would fail to identify real values in indexed...
dan [Wed, 18 Mar 2026 11:06:10 +0000 (11:06 +0000)] 
Fix some cases where integrity-check would fail to identify real values in indexed expressions that are with 2 ULPs of each other.

FossilOrigin-Name: 40c5966f7b784f181365c81fc559aee9463c374ee56677cf6e0aecaed39d2b28

3 weeks agoFix harmless "unused variable" compiler warning.
drh [Wed, 18 Mar 2026 11:04:15 +0000 (11:04 +0000)] 
Fix harmless "unused variable" compiler warning.

FossilOrigin-Name: 3380eb1ea71d6bf8325dbe49f4bac7623b3b6193f3b36dedd9411188cfc80b89

3 weeks agoModify integrity-check so that it is only tolerant of very small distortions of real...
dan [Tue, 17 Mar 2026 21:17:42 +0000 (21:17 +0000)] 
Modify integrity-check so that it is only tolerant of very small distortions of real values in indexed expression fields.

FossilOrigin-Name: 82e6de835bde306778425d18ab1a15ae80fdf01af7f577ead89c09f9d53b5b2f

3 weeks agoImproved error handling in OP_IFindKey and in vdbeIsMatchingIndexKey().
drh [Tue, 17 Mar 2026 18:55:24 +0000 (18:55 +0000)] 
Improved error handling in OP_IFindKey and in vdbeIsMatchingIndexKey().

FossilOrigin-Name: f7389cdb129d3386b7dfb8acacf84816cf10864c6800a9bd9a61c6364b850a31

3 weeks agoWhen integrity-check finds a missing index entry, search a small range (currently...
dan [Tue, 17 Mar 2026 17:05:45 +0000 (17:05 +0000)] 
When integrity-check finds a missing index entry, search a small range (currently 10) of entries around the missing key for an entry that matches all non-virtual and non-expression fields.

FossilOrigin-Name: 978cedcbd33165dadc7dffc118bde359eff6751ec9842230880cb827d9f7845f

3 weeks agoDo not run index healing on an invalid cursor.
drh [Tue, 17 Mar 2026 13:13:02 +0000 (13:13 +0000)] 
Do not run index healing on an invalid cursor.

FossilOrigin-Name: eb6403f02c113f58030c0b4143d91b6327ee21dcb324d3f235c2bf6bf3d6577c

3 weeks agoMerge recent trunk enhancements into the idxdelete-tolerance branch
drh [Tue, 17 Mar 2026 12:16:47 +0000 (12:16 +0000)] 
Merge recent trunk enhancements into the idxdelete-tolerance branch

FossilOrigin-Name: 9d84fdb7819a9850919e2c1977811bcf514b3baad29eb8cc9fc78451d500c8b6

3 weeks agoFix an assertion fault that could occur in RTree when given a corrupt
drh [Tue, 17 Mar 2026 12:07:49 +0000 (12:07 +0000)] 
Fix an assertion fault that could occur in RTree when given a corrupt
database.

FossilOrigin-Name: ed29fe973e6cbf291eff6fc582aeb34556ea4f8df105ec61b361e4cdda017e62

3 weeks agoFix display of P4_INDEX values in EXPLAIN output.
dan [Tue, 17 Mar 2026 11:26:57 +0000 (11:26 +0000)] 
Fix display of P4_INDEX values in EXPLAIN output.

FossilOrigin-Name: e717017f0213441da2ef8a9e1f1e88ebfdefa26fc4773711968417c0bd6ebe5f

3 weeks agoFix compiler warning an inefficiency introduced by previous commit.
dan [Tue, 17 Mar 2026 11:22:51 +0000 (11:22 +0000)] 
Fix compiler warning an inefficiency introduced by previous commit.

FossilOrigin-Name: 03058d73d3a88ab30e874b4231cc5b263b874a577f8bf5189a452d7376e25a47

3 weeks agoTypo fix in sqlite3Multiply128(): The datatype should be *unsigned*.
drh [Tue, 17 Mar 2026 11:19:16 +0000 (11:19 +0000)] 
Typo fix in sqlite3Multiply128():  The datatype should be *unsigned*.

FossilOrigin-Name: b459f6ff63325f71d4056dad2ebb536e0d414c973f3c6e167e8f67e94e6f0e2d

3 weeks agoChange the sqlite3VdbeFindDeleteKey() routine so that all index fields that are not...
dan [Tue, 17 Mar 2026 11:17:54 +0000 (11:17 +0000)] 
Change the sqlite3VdbeFindDeleteKey() routine so that all index fields that are not expressions or virtual columns must match the table for the delete to succeed.

FossilOrigin-Name: eccd9fcfa7e34ddcdeb671544c6afac7aa0d4665c5e1df7c8e53c41387ed0386

3 weeks agoFix a harmless compiler warning.
drh [Tue, 17 Mar 2026 10:19:11 +0000 (10:19 +0000)] 
Fix a harmless compiler warning.

FossilOrigin-Name: aa23d6cc69471eacb3fb0d789c34169e047e4a09a50beb430eb8e8e63b5bce78

3 weeks agoMerge trunk enhancements into the idxdelete-tolerance branch
drh [Tue, 17 Mar 2026 09:53:02 +0000 (09:53 +0000)] 
Merge trunk enhancements into the idxdelete-tolerance branch

FossilOrigin-Name: 5f5ab3eb3618b6a2799355df50bfdf94121161f7cadba6253963036d9f284f08

3 weeks agoEnhance text→float conversions for exact rounding in all cases.
drh [Tue, 17 Mar 2026 09:49:07 +0000 (09:49 +0000)] 
Enhance text→float conversions for exact rounding in all cases.

FossilOrigin-Name: 704ddfd0df57c2b137af88264df20a540e3f8f114a58ae5e31b40ab8259bb63e

3 weeks agoInclude the float-point table generator utility in the tools directory. fp-accuracy
drh [Tue, 17 Mar 2026 09:45:47 +0000 (09:45 +0000)] 
Include the float-point table generator utility in the tools directory.

FossilOrigin-Name: 4ab10b251d870af8297b9e505452393f6000f83784c822ff128e7aec06f8c72f

3 weeks agoReorder bounds checking in sqlite3Fp10Convert2()
drh [Tue, 17 Mar 2026 09:18:36 +0000 (09:18 +0000)] 
Reorder bounds checking in sqlite3Fp10Convert2()

FossilOrigin-Name: 23ad656edb3a63e7e6602770e1f2c4a5ef1f3d41565e7f13408b5305619dfa3d

3 weeks agoRemove a couple of unused variables.
dan [Mon, 16 Mar 2026 19:14:07 +0000 (19:14 +0000)] 
Remove a couple of unused variables.

FossilOrigin-Name: f66cb3dc275d3f31e57576466e697a6c7c5179144babab08d75b624e9846ecc3

3 weeks agoFurther tests for the code on this branch.
dan [Mon, 16 Mar 2026 16:44:14 +0000 (16:44 +0000)] 
Further tests for the code on this branch.

FossilOrigin-Name: f928a38091977268aa6a096104797158883ed89b9e026b4e4b98b9b5da967de1

3 weeks agoIf OP_IdxDelete cannot find an index entry to delete, first search 10 entries in...
dan [Mon, 16 Mar 2026 16:21:43 +0000 (16:21 +0000)] 
If OP_IdxDelete cannot find an index entry to delete, first search 10 entries in either direction of where the entry should be in the index. If that fails, search the entire index for an entry with matching PK fields.

FossilOrigin-Name: 2cb9f4e4178549144acd82e317a1646e71c9281ac9fc4aa26bf129f1068ded45

3 weeks agoFix a problem with the find-delete-key method on this branch.
dan [Mon, 16 Mar 2026 15:49:58 +0000 (15:49 +0000)] 
Fix a problem with the find-delete-key method on this branch.

FossilOrigin-Name: 6f49b5ecad5d924999d045a1ade93d95e731182be1781aefa5bc763b6202e9c3

3 weeks agoRework the ".indexes" command of the CLI. (1) The PATTERN now matches
drh [Mon, 16 Mar 2026 15:35:41 +0000 (15:35 +0000)] 
Rework the ".indexes" command of the CLI.  (1) The PATTERN now matches
the name of the index itself, not the name of the table containing
the index, thus making the pattern actually useful.  (2)  System-generated
indexes (for UNIQUE constraints and similar) are omitted unless
the -a|-all or --sys options are added.  (3) The --expr option causes
only expression indexes to be shown.

FossilOrigin-Name: 13e2cad810bfd59a9e18eb38bda1241715b76756ffec7d617e9ce99b89f19284

3 weeks agoMake OP_IdxDelete tolerant of small variations in index key values.
dan [Mon, 16 Mar 2026 15:16:13 +0000 (15:16 +0000)] 
Make OP_IdxDelete tolerant of small variations in index key values.

FossilOrigin-Name: c4b0081f08bd0458dbcf269b43a4051941eec8067393aa8e6810d4b8422ce44a

3 weeks agoProperly fix temp triggers created as part of FK processing to their schemas. Otherwi...
dan [Mon, 16 Mar 2026 11:14:26 +0000 (11:14 +0000)] 
Properly fix temp triggers created as part of FK processing to their schemas. Otherwise they may become confused by similarly named child tables in other attached databases. Fix for forum post [forum:636bd0180a | 636bd0180a].

FossilOrigin-Name: 80bc5bc07e221f837c28066f0a438f11c8ab6be4c8ba93615439eb1667967003

3 weeks agoImprove accuracy of text→floating-point conversions by moving
drh [Mon, 16 Mar 2026 09:40:12 +0000 (09:40 +0000)] 
Improve accuracy of text→floating-point conversions by moving
from 64-bit to 96-bit approximations to powers of ten.

FossilOrigin-Name: a19c0785dcfb9fb74963c45b161b12ac8f4379e2b990f6c5de0d7b959c5be98d

3 weeks agoAdd a missing return for the invalid arguments error case in sqlite3_test_control_fau...
stephan [Sat, 14 Mar 2026 16:30:13 +0000 (16:30 +0000)] 
Add a missing return for the invalid arguments error case in sqlite3_test_control_fault_install. No current scripts trigger this error.

FossilOrigin-Name: dc78d258745a1350685b37da56f0a2ac2e437b422415d634522dc61d340d06eb

4 weeks agoChanges some legacy testing targets in the makefiles into aliases for
drh [Fri, 13 Mar 2026 15:03:55 +0000 (15:03 +0000)] 
Changes some legacy testing targets in the makefiles into aliases for
"devtest" and "releasetest"

FossilOrigin-Name: 4c54f22f7abbf5403e554fbf3dd70ddee97352d7de1f7fe19f540bdf681f4e75

4 weeks agoUpdate the canonical JimTcl home page link (it was moved earlier today).
stephan [Thu, 12 Mar 2026 08:33:14 +0000 (08:33 +0000)] 
Update the canonical JimTcl home page link (it was moved earlier today).

FossilOrigin-Name: 568573f872733bf32c2fde6a3a43100bdac17fc762e5c9a6d7a47b988fdcea4e

4 weeks agoReplace several comment-based switch-fall-through notices with attribute based ones...
stephan [Wed, 11 Mar 2026 15:17:14 +0000 (15:17 +0000)] 
Replace several comment-based switch-fall-through notices with attribute based ones, as suggested in [forum:b6ab8dc547|forum post b6ab8dc547].

FossilOrigin-Name: 2b0209a3bd3fb19af424386dcd13ff49a0c86edfd5d283fd5e5c42c266872100

4 weeks agoImproved defenses against mischief.
drh [Wed, 11 Mar 2026 14:43:29 +0000 (14:43 +0000)] 
Improved defenses against mischief.

FossilOrigin-Name: 8bdc0d485e3ad0c7a1e818da66f106951d496b05cbe61d12c2c448f2f24b6d5d

4 weeks agoFix harmless compiler warnings.
drh [Tue, 10 Mar 2026 22:43:39 +0000 (22:43 +0000)] 
Fix harmless compiler warnings.

FossilOrigin-Name: d7b4a4a3d3d6296a012cc14fc2d95fe810b5bdb625209a2d28bf2c7a026749bf

4 weeks agoFix the behavior dot-commands that appear as command line arguments to the
drh [Tue, 10 Mar 2026 21:01:59 +0000 (21:01 +0000)] 
Fix the behavior dot-commands that appear as command line arguments to the
CLI so that their effect persists into subsequent commands on the command
line.  This fix also improves error messages caused by command line
arguments.
[forum:/forumpost/2026-03-10T19:26:06z|Forum post 2026-03-10T19:26:06z].

FossilOrigin-Name: ff084ae341eab5c4ce9403defee03adc448c05f77648a954f0942a38f640080b

4 weeks agoRevamp the QRF insert-mode optimization of [659ff6ab55802507]. The
drh [Tue, 10 Mar 2026 18:13:13 +0000 (18:13 +0000)] 
Revamp the QRF insert-mode optimization of [659ff6ab55802507].  The
control value is now nMultiInsert.  Multiple rows are added to each INSERT
statement until the number of bytes in that statement exceeds the
nMultiInsert value.  The CLI uses a default value of 3000, which provides
a good balance between speed and prepare-statement size.  The output
from ".dump" now loads nearly 2x faster in some cases.

FossilOrigin-Name: 55b0ce9f93d68b17a18423f0f751b778573127743a2bac67abfea074ac32d41a

4 weeks agoBug fix to the ".dump" command in the CLI: Temporarily disable character
drh [Tue, 10 Mar 2026 15:43:57 +0000 (15:43 +0000)] 
Bug fix to the ".dump" command in the CLI:  Temporarily disable character
limit to QRF so as not to truncate values in the generated output.

FossilOrigin-Name: f6787e4b50af50663d8fa00ebe0694440354a7ad0509837a6b249e090e6cffca

4 weeks agoEnhance QRF with the mxTuple field, which if greater than 1 causes the
drh [Tue, 10 Mar 2026 14:02:03 +0000 (14:02 +0000)] 
Enhance QRF with the mxTuple field, which if greater than 1 causes the
QRF_STYLE_Insert style to group as many as mxTuple adjacent rows into
a single INSERT statement.  The field is accessible using the -mxtuple
option in the TCL interface, and the --mxtuple option in ".mode".  The
output of the ".dump" and ".fullschema" commands responds to the current
--mxtuple setting.

FossilOrigin-Name: 659ff6ab5580250707908af003ecd093bd5313f03f21f0efd000a7aff6638b3c

4 weeks agoRemove an obsolete pragraph from the header comment on the fileio.c extension.
drh [Mon, 9 Mar 2026 14:04:34 +0000 (14:04 +0000)] 
Remove an obsolete pragraph from the header comment on the fileio.c extension.

FossilOrigin-Name: 17613b72f34162ce22864621c519e883930c9f51a0a86afbf30ce664f95d7be1

4 weeks agoIn QRF, fix line-wrap indentation for "line" mode when using a
drh [Mon, 9 Mar 2026 13:53:58 +0000 (13:53 +0000)] 
In QRF, fix line-wrap indentation for "line" mode when using a
non-standard column separator.

FossilOrigin-Name: 00c96cca3de709e40207feb9c10a94e38e7857c9bc01938849c6c5daee7148c7

4 weeks agoFix a problem with RIGHT JOIN and expressions on indexes. [forum:e3dba5426a | Forum...
dan [Mon, 9 Mar 2026 11:49:51 +0000 (11:49 +0000)] 
Fix a problem with RIGHT JOIN and expressions on indexes. [forum:e3dba5426a | Forum post e3dba5426a].

FossilOrigin-Name: f27d578edac06eb28739f23351ab1cf07531bc7b32f4077e4dc9c8166f551d95

4 weeks agoFix the completion.c TVF so that the xNext method reports errors it encounters
drh [Sun, 8 Mar 2026 19:31:40 +0000 (19:31 +0000)] 
Fix the completion.c TVF so that the xNext method reports errors it encounters
while running queries.

FossilOrigin-Name: eebcdcceef8a436e5fb1397cad6eb5bcf0722060fe1cd6acb26cdf1e86f07293

4 weeks agoIn the decimal.c extension, set a default MAX_DIGITS to 100 million.
drh [Sun, 8 Mar 2026 18:50:35 +0000 (18:50 +0000)] 
In the decimal.c extension, set a default MAX_DIGITS to 100 million.
Do not allow integer overflow of the N parameter to the internal
decimal_round() function.

FossilOrigin-Name: d0e23423d1bdd0482db4b74ef0fde2fbc2bbad02a7b92ba45a27ca57f4740e16

4 weeks agoConsolidate the opfs and opfs-wl tester1 tests using the preprocessor.
stephan [Sun, 8 Mar 2026 17:07:01 +0000 (17:07 +0000)] 
Consolidate the opfs and opfs-wl tester1 tests using the preprocessor.

FossilOrigin-Name: 77846c8c7aa4625729a5e113c12e7d16efc88c1306c01ba36f47240aac450b0f

4 weeks agoUpgrade ext/wasm/c-pp-lite.c to its newer sibling because we've reached the older...
stephan [Sun, 8 Mar 2026 16:03:08 +0000 (16:03 +0000)] 
Upgrade ext/wasm/c-pp-lite.c to its newer sibling because we've reached the older one's limits. This renames c-pp-lite.c to libcmpp.c to maintain both the SCM- and code lineage but that may end up looking a bit weird because the diff between the two is vast.

FossilOrigin-Name: 2e2339bd9e4293bad04ece7673a3048b99c2143cf9573ade2ec082d95744b981

4 weeks agoJS doc updates.
stephan [Sun, 8 Mar 2026 12:42:34 +0000 (12:42 +0000)] 
JS doc updates.

FossilOrigin-Name: 699295f84ef2c4da363f13126abde6af07697d0959896cd868b14513d4278964

4 weeks agoIncrease the version number on trunk to 3.53.0
drh [Sun, 8 Mar 2026 10:51:47 +0000 (10:51 +0000)] 
Increase the version number on trunk to 3.53.0

FossilOrigin-Name: 0152b445ff0cdf560fc028938e1d43a56685d7c046fad84fa90166cd01d71279

4 weeks agoMerge opfs-wl into trunk, not so much for the "opfs-wl" VFS, which is stil tentative...
stephan [Sun, 8 Mar 2026 08:32:22 +0000 (08:32 +0000)] 
Merge opfs-wl into trunk, not so much for the "opfs-wl" VFS, which is stil tentative (working fine but with little perceived benefit), but for the "opfs" VFS cleanups which necessarily happened around it.

FossilOrigin-Name: bcaa876c6dafee0995d239f59b6ce7810b6f5faa219b9c392966211ae3dec17a

4 weeks agoUpdate the tester1 SEE tests to account for opfs-wl. opfs-wl
stephan [Sun, 8 Mar 2026 08:09:09 +0000 (08:09 +0000)] 
Update the tester1 SEE tests to account for opfs-wl.

FossilOrigin-Name: 616d32c8380ef47c5a7c2eb765e7b6fbec9500d4e16c837f4ee11d71c239a55f

4 weeks agoRefactor tester1 OPFS test to support both the "opfs" and "opfs-wl" VFSes.
stephan [Sun, 8 Mar 2026 07:58:02 +0000 (07:58 +0000)] 
Refactor tester1 OPFS test to support both the "opfs" and "opfs-wl" VFSes.

FossilOrigin-Name: 17ac8d7bdfaf96510abea8c11019045c1703b7040655d9c4c8d7001636260b50

4 weeks agoAdd parens around an expression in the CLI shell to account for operator precedence...
stephan [Sun, 8 Mar 2026 07:02:46 +0000 (07:02 +0000)] 
Add parens around an expression in the CLI shell to account for operator precedence, as reported in [forum:856ff7a2f1|forum post 856ff7a2f1].

FossilOrigin-Name: da3ad170aebf57f2202e56673ac149bc51077d126ab5928f1db16492e403d5b9

4 weeks agoExpose sqlite3_bind_zeroblob() to JS/WASM.
stephan [Sun, 8 Mar 2026 05:53:47 +0000 (05:53 +0000)] 
Expose sqlite3_bind_zeroblob() to JS/WASM.

FossilOrigin-Name: 0c5d4fe0bd322b4c8dbd0800001317a21cd511b00244de74b4db3fd051153879

4 weeks agoUse the UINT64_C() macro rather than the LLU suffix on integer literals
drh [Sat, 7 Mar 2026 22:37:28 +0000 (22:37 +0000)] 
Use the UINT64_C() macro rather than the LLU suffix on integer literals
for portability to older Microsoft compilers.
[forum:/forumpost/0a9ffaff6fcdedb3|Forum thread 0a9ffaff6fcdedb3].

FossilOrigin-Name: 27be26566fdb4d01c44dc111f1c18c835797de0990d4fcc876e91edc216e9e93

4 weeks agoGive the fuzzcheck test program access to all the same extensions that
drh [Sat, 7 Mar 2026 21:07:18 +0000 (21:07 +0000)] 
Give the fuzzcheck test program access to all the same extensions that
dbsqlfuzz has access to.

FossilOrigin-Name: d9c23b49e355233bbfcdc8305dcae21640e66a0bbf1daed0dd3f9d132c1ef69f

4 weeks agoFix harmless compiler warnings on Windows.
drh [Sat, 7 Mar 2026 17:50:32 +0000 (17:50 +0000)] 
Fix harmless compiler warnings on Windows.

FossilOrigin-Name: 358d78da75033d4d1fcb27b5f95c940dcc306cdf34ef999262da901e71f2b306

4 weeks agoMinor typo fixes from [forum:8fc8bc34291d6f45|forum post 8fc8bc34291d6f45].
stephan [Sat, 7 Mar 2026 15:15:37 +0000 (15:15 +0000)] 
Minor typo fixes from [forum:8fc8bc34291d6f45|forum post 8fc8bc34291d6f45].

FossilOrigin-Name: c8fb88c19ed91dc5e205f719aedb895f7ceb62b113f61ec94cc6e435051da15c

4 weeks agoAn attempt to get the CLI build to work with mingw32.
drh [Sat, 7 Mar 2026 12:00:56 +0000 (12:00 +0000)] 
An attempt to get the CLI build to work with mingw32.
[forum:/forumpost/086cb1ef66|Forum post 086cb1ef66].

FossilOrigin-Name: d95b9e7c1746b9cbd067aa65806b1f74d0dfe77ab6084cb3da9ef2242cac9134

4 weeks agoFix another memory leak following OOM in the decimal extension.
drh [Sat, 7 Mar 2026 11:23:11 +0000 (11:23 +0000)] 
Fix another memory leak following OOM in the decimal extension.

FossilOrigin-Name: 414f6dbc09c2a3cf04ccdfd8f11eecb7ef781facff979ae4236a452913001391

4 weeks agoExtend the JS pre-bootstrapping configuration to include an option to disable inclusi...
stephan [Sat, 7 Mar 2026 06:10:29 +0000 (06:10 +0000)] 
Extend the JS pre-bootstrapping configuration to include an option to disable inclusion of any given extension VFS (not the default VFSes, like memdb). The primary motivation for this is to give people who don't use OPFS to a way to keep the OPFS VFSes from loading their proxy workers, which are expensive.

FossilOrigin-Name: 9a07eb7a941479510891d1444aacbeb440efaad3e9a13f186833618d8b60a8da

4 weeks agoFix the mangling of the opfs async proxy script's URI caused by both OPFS VFSes modif...
stephan [Sat, 7 Mar 2026 04:19:08 +0000 (04:19 +0000)] 
Fix the mangling of the opfs async proxy script's URI caused by both OPFS VFSes modifying it to accound for sqlite3.dir. Add a link to speedtest1 with opfw-wl to index.html.

FossilOrigin-Name: c1cb61f473a11a325ef421ba8edfb20257203688565f7db62309044be183af5f

4 weeks agoCleanups and docs in the opfs vfs and its concurrency tester. Experimentally add...
stephan [Sat, 7 Mar 2026 03:32:17 +0000 (03:32 +0000)] 
Cleanups and docs in the opfs vfs and its concurrency tester. Experimentally add sqlite3.capi.sqlite3_js_retry_busy(), which runs a callback repeatedly until it _stops_ returning (or throwing) an SQLITE_BUSY error.

FossilOrigin-Name: 45c02ed21635f7ef45214ab5ec6230b6b8bd89e35ef5889db318523e1c679fea

4 weeks agoElide more of the 64-bit was stuff from the default build target.
stephan [Sat, 7 Mar 2026 03:29:26 +0000 (03:29 +0000)] 
Elide more of the 64-bit was stuff from the default build target.

FossilOrigin-Name: 3b74ad9081daee560bf9b400e69a75abcc62dae7c5f55dcf46de84daae50ed9f

4 weeks agoEnhancements and fixes to some of the extensions used in the CLI so that
drh [Sat, 7 Mar 2026 02:42:27 +0000 (02:42 +0000)] 
Enhancements and fixes to some of the extensions used in the CLI so that
they can be fuzzed using dbsqlfuzz.

FossilOrigin-Name: d800ea06d231957cf571327d9eaf81564d5439aeee099987101050a41f9676c0

4 weeks agoThe optional SQLITE_DECIMAL_MAX_DIGIT compile-time option limits the extfunc-fuzz
drh [Sat, 7 Mar 2026 02:36:39 +0000 (02:36 +0000)] 
The optional SQLITE_DECIMAL_MAX_DIGIT compile-time option limits the
maximum number of digits that the decimal extension will operate on.

FossilOrigin-Name: 4214485b2fe4b95d9440008158d458b4b957a111f201965de1a518623589fd79

4 weeks agoCleanups and docs in the new opfs code structure.
stephan [Sat, 7 Mar 2026 02:19:23 +0000 (02:19 +0000)] 
Cleanups and docs in the new opfs code structure.

FossilOrigin-Name: 3b470c4c7a1fcc710e6b9eae32134c7f6c3f6008b24c7351257f66f5e8f70311

4 weeks agoFor backwards compatibility, ensure that the "opfs" VFS does not specifically require...
stephan [Sat, 7 Mar 2026 01:01:13 +0000 (01:01 +0000)] 
For backwards compatibility, ensure that the "opfs" VFS does not specifically require Atomics.waitAsync() (a new requirement of "opfs-wl"), but make use of it if available. Only apply jitter to the concurrency test runs at random intervals.

FossilOrigin-Name: f2175f526c00cfe562e8f332eb197b5ef2c3d6be1fff2aab1566c2c533a293ac

4 weeks agoReenable the is_base85() extension function that was disabled
drh [Sat, 7 Mar 2026 00:14:36 +0000 (00:14 +0000)] 
Reenable the is_base85() extension function that was disabled
by [af18b68978ec9b1f].

FossilOrigin-Name: be07c16e3a7d28b95bea4b987a880d5b4b2b44d9a31ac5b48caa5b6c6dc5bec3

4 weeks agoFix another NULL ptr deref following OOM in the sha1 extension.
drh [Sat, 7 Mar 2026 00:10:34 +0000 (00:10 +0000)] 
Fix another NULL ptr deref following OOM in the sha1 extension.

FossilOrigin-Name: c4843e4cce71acb1e3743c45e0ee8cf62e91c39b57cec4f356bf7a4a10f81352

4 weeks agoFix a NULL pointer dereference following OOM in the sha1 extension.
drh [Sat, 7 Mar 2026 00:03:47 +0000 (00:03 +0000)] 
Fix a NULL pointer dereference following OOM in the sha1 extension.

FossilOrigin-Name: 530b3f97ca4e8b1d263266855743b0d57d048104a6c3bed6c4d7958985767bc6

4 weeks agoFix a NULL pointer dereference following OOM in the decimal extension.
drh [Fri, 6 Mar 2026 23:58:58 +0000 (23:58 +0000)] 
Fix a NULL pointer dereference following OOM in the decimal extension.

FossilOrigin-Name: de37f30b2100e0c249e5c0853d6af90cd3c2069899747dcf0889e6a3d6b94061

4 weeks agoFix a memory leak following OOM in the completion extension.
drh [Fri, 6 Mar 2026 23:56:03 +0000 (23:56 +0000)] 
Fix a memory leak following OOM in the completion extension.

FossilOrigin-Name: ff5b1efbf80875a82b3707b56440551eb6f68a899ade27363bc62872fe46fd75

4 weeks agoAdd some jitter and duration info to the opfs concurrency tester. Ensure that Atomics...
stephan [Fri, 6 Mar 2026 23:50:44 +0000 (23:50 +0000)] 
Add some jitter and duration info to the opfs concurrency tester. Ensure that Atomics.waitAsync() is available for opfs-wl. Further testing has shown that Web opfs-wl is consistently fairer about doling out contested locks but it's dog slow compared to the original VFS under moderate concurrency. In single-connection use they're effectively on par.

FossilOrigin-Name: a9aecc987512d60f2663973f43c769cf086fc14149edfbcb18c0aec9f5aa3dbf

4 weeks agoFix a memory leak in the decimal extension that follows an OOM.
drh [Fri, 6 Mar 2026 23:37:45 +0000 (23:37 +0000)] 
Fix a memory leak in the decimal extension that follows an OOM.

FossilOrigin-Name: 8d59e47e7ae0aae01cb25c6c054cf9a4d9651e858bc0dd1a0e2a013ec6579012

4 weeks agoGet "opfs" and "opfs-wl" properly split. Speedtest1 and the concurrency tester are...
stephan [Fri, 6 Mar 2026 22:21:06 +0000 (22:21 +0000)] 
Get "opfs" and "opfs-wl" properly split. Speedtest1 and the concurrency tester are happy with opfs-wl but it is not yet plugged in to tester1.

FossilOrigin-Name: 12dcd5425967b6306f3e3178babeac130962edb78e6298d545a429a1a20457cc

4 weeks agoRename the initializer functions for base64() and base85() to include the
drh [Fri, 6 Mar 2026 22:09:39 +0000 (22:09 +0000)] 
Rename the initializer functions for base64() and base85() to include the
number at the end.

FossilOrigin-Name: af18b68978ec9b1ff732505bfb92bb65e4f7381b904123f42c638b747569fa28

4 weeks agoIncrease the version number to 3.52.1.
drh [Fri, 6 Mar 2026 21:34:49 +0000 (21:34 +0000)] 
Increase the version number to 3.52.1.

FossilOrigin-Name: 94a650b169bfd1056995c1cfe584d3d92667bce5e9cf93e6381607ed87251bf3

4 weeks agoFix a NULL pointer dereference in the (undocumented) two-argument version
drh [Fri, 6 Mar 2026 21:31:07 +0000 (21:31 +0000)] 
Fix a NULL pointer dereference in the (undocumented) two-argument version
of the decimal() extension SQL function.
[forum:/forumpost/fa9c2dc83f|Forum post fa9c2dc83f].

FossilOrigin-Name: a0266351df8700383d50c2ef2d179dd82b0e0fd7fc70d05a91d5e4e845983b46

5 weeks agoSmall typo fix in the FP_DIGITS API docs.
stephan [Fri, 6 Mar 2026 19:39:03 +0000 (19:39 +0000)] 
Small typo fix in the FP_DIGITS API docs.

FossilOrigin-Name: 0286f97f34fd560d4ba423bd28d18ac080c918b0e99b8d16c4a213cf205b5e5b

5 weeks agoMinor cleanups and docs. Teach the OPFS concurrency tester to deal with SQLITE_BUSY...
stephan [Fri, 6 Mar 2026 19:33:25 +0000 (19:33 +0000)] 
Minor cleanups and docs. Teach the OPFS concurrency tester to deal with SQLITE_BUSY instead of failing.

FossilOrigin-Name: 247ffed141f66a6a5a396a3e002995a9f00c70333271199200530066e77956c4

5 weeks agoMerge fixes that were deferred until after the 3.52.0 release, including:
drh [Fri, 6 Mar 2026 18:51:49 +0000 (18:51 +0000)] 
Merge fixes that were deferred until after the 3.52.0 release, including:
(1) Fix handling of DISTINCT with OUTER JOIN, (2) Enhance configure to
auto-detect linenoise, (3) Add recent configuration settings to WASM.

FossilOrigin-Name: 9d51bec1b17925f5cac0d590c0d70bb34e77fdb7253d18007f52711d42f6f5d0

5 weeks agoFix the linenoise auto-detection added by the previous check-in. pending-3.52
drh [Fri, 6 Mar 2026 18:26:50 +0000 (18:26 +0000)] 
Fix the linenoise auto-detection added by the previous check-in.

FossilOrigin-Name: e36958584511d83666590abef223c2edc3da15b5b32e280baf08159ddae80e50

5 weeks agoThis one reliably runs 5 workers. Checking in before subsequent cleanups and debug...
stephan [Fri, 6 Mar 2026 17:10:28 +0000 (17:10 +0000)] 
This one reliably runs 5 workers. Checking in before subsequent cleanups and debug output removal break it.

FossilOrigin-Name: ba81d95febc5fd0f9bbb2685fef5b1b10f9991751f2bdfafba80c15877af1cef

5 weeks agoCorrect an internal doc falsehood.
stephan [Fri, 6 Mar 2026 16:15:32 +0000 (16:15 +0000)] 
Correct an internal doc falsehood.

FossilOrigin-Name: 53aa080e357d7a2ffeab68a3584fda43d51ecef3dc8a1d46dd32392ae4f9740c

5 weeks agoThis Web Lock impl can reliably run a single OPFS connection but rather unreliably...
stephan [Fri, 6 Mar 2026 16:04:21 +0000 (16:04 +0000)] 
This Web Lock impl can reliably run a single OPFS connection but rather unreliably 'loses' workers with higher counts, presumably due to deadlock or deadly embrace (how _all_ of them can deadlock at once is unclear, but clearly a bug).

FossilOrigin-Name: d4e8583e2e80665adfe4e814adb6c219936af1dcac4105795045cb1a7b1e4864

5 weeks agoVersion 3.52.0 version-3.52.0
drh [Fri, 6 Mar 2026 16:01:44 +0000 (16:01 +0000)] 
Version 3.52.0

FossilOrigin-Name: 557aeb43869d3585137b17690cb3b64f7de6921774daae9e56403c3717dceab6

5 weeks agoExpose SQLITE_{DBCONFIG_FP_DIGITS,LIMIT_PARSER_DEPTH,PREPARE_FROM_DDL} to WASM and... wasm-post-3.52
stephan [Fri, 6 Mar 2026 15:41:17 +0000 (15:41 +0000)] 
Expose SQLITE_{DBCONFIG_FP_DIGITS,LIMIT_PARSER_DEPTH,PREPARE_FROM_DDL} to WASM and add support for DBCONFIG_FP_DIGITS to the variadic wrapper for sqlite3_db_config(). These unfortunately went overlooked before the 3.52 release.

FossilOrigin-Name: 837069635e53849cbca0aa876bad7c7ff44e17578ae492e07acf354067b7e16d

5 weeks agoAdd the new realpath() extension function to the list of functions
drh [Fri, 6 Mar 2026 14:33:12 +0000 (14:33 +0000)] 
Add the new realpath() extension function to the list of functions
prohibited in --safe mode of the CLI.

FossilOrigin-Name: 5fa49c4d592778fb82c4e25c77cf0442d3dc23cc7f8d91d25952c722af866930

5 weeks agoRemove an extraneous OPFS metrics increment.
stephan [Fri, 6 Mar 2026 11:49:36 +0000 (11:49 +0000)] 
Remove an extraneous OPFS metrics increment.

FossilOrigin-Name: bf3548a37712e848c7a9cadfdc1669a2be572ea0a0c28d84c157ab30f8c30c44

5 weeks agoUninstall faultsim at the end of the walrestart.test script.
dan [Fri, 6 Mar 2026 11:18:12 +0000 (11:18 +0000)] 
Uninstall faultsim at the end of the walrestart.test script.

FossilOrigin-Name: 798905a1277ecb17245f2a7378fdc8dc608374fde50bdfe44d09195a7c78cb5c

5 weeks agoA slight simplification/optimization in the OPFS proxy's waitLoop().
stephan [Fri, 6 Mar 2026 09:11:47 +0000 (09:11 +0000)] 
A slight simplification/optimization in the OPFS proxy's waitLoop().

FossilOrigin-Name: 521bb140b7ed237c118ac9094732d06907229a6ff385502e850c679bd623fd58

5 weeks agoReimplement the OPFS async proxy's wait-forever loop to be more async-friendly for...
stephan [Fri, 6 Mar 2026 09:06:24 +0000 (09:06 +0000)] 
Reimplement the OPFS async proxy's wait-forever loop to be more async-friendly for upcoming changes.

FossilOrigin-Name: fd775772fbb50b04c8c37977b90a708784eefed403e3668196c9d95559d3a5e1

5 weeks agoFix the build for -DSQLITE_OMIT_FLOATING_POINT.
drh [Thu, 5 Mar 2026 18:28:43 +0000 (18:28 +0000)] 
Fix the build for -DSQLITE_OMIT_FLOATING_POINT.

FossilOrigin-Name: f41b9ad98c474755c6701eb6ab3dc9864ace9b52a81581f73ca0912cedbc3c37

5 weeks agoEnhance ./configure to automatically detect linenoise in ../linenoise
drh [Thu, 5 Mar 2026 18:16:25 +0000 (18:16 +0000)] 
Enhance ./configure to automatically detect linenoise in ../linenoise
relative to the build directory, or ../linenoise relative to the source
directory, or at $HOME/linenoise.

FossilOrigin-Name: eb6b47c667e52d5c8682d650dbd114c08d2ecce4bb7bce6fdf2589d1ea09f5c0

5 weeks agoEnsure xMutexInit() is called in SQLITE_THREAD_MISUSE_WARNINGS builds.
dan [Thu, 5 Mar 2026 16:23:04 +0000 (16:23 +0000)] 
Ensure xMutexInit() is called in SQLITE_THREAD_MISUSE_WARNINGS builds.

FossilOrigin-Name: ac6a389e09a0de1b622af4a7136dc66875e8009c27950f2260a96f17fec4f9bc

5 weeks agoFix a long-standing problem with DISTINCT LEFT JOIN queries.
dan [Thu, 5 Mar 2026 14:39:27 +0000 (14:39 +0000)] 
Fix a long-standing problem with DISTINCT LEFT JOIN queries.

FossilOrigin-Name: f43294a5582b540a33c584ec8c69b6a5006a4d243ad5cf36125b2b0806e3518b