]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
9 months agoFix harmless compiler warning in flockCheckReservedLock().
drh [Tue, 15 Oct 2024 22:22:53 +0000 (22:22 +0000)] 
Fix harmless compiler warning in flockCheckReservedLock().

FossilOrigin-Name: f369de3d8fa34a403b5c9f6269f7e3fdb16a13784a70460c5032ad4e66615d64

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

FossilOrigin-Name: ecdbedb16bbc467b0bc56badae2a4d407b4ea2085312b50af56af8cd110f055c

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

FossilOrigin-Name: 9b4bc5c4c1dc7c4ba359babc71c07ac3a6719971766951a8d2cb1df9e2396a83

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

FossilOrigin-Name: 405c23ce02cc7f970e732afc26e01d0267b8fa89d8edc3d53fae2b3bc8405cbb

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

FossilOrigin-Name: 20e60bf058c54bc818ea1b8ce54ace8bcd50699734713cef622bf79e49a9a279

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

FossilOrigin-Name: 8d7fe903d09a2a7961f506b2c8e93765e4feb7cd48aac436d75c7ec7838e856a

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

FossilOrigin-Name: 84d19f03b1989d665547745defcd95fc927f8389ed65c76195a39206435791ba

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

FossilOrigin-Name: ec4f4cfd5f8ca83fad4f08cf6566251d9c63e50a3a4284baca299bd94b047951

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

FossilOrigin-Name: 31c46e84fffe29c45fc63ae8cd1f96f42196f0ab56e72cd07b4eedbd9058e85b

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

FossilOrigin-Name: 43787b8ec5348207ae84e6f16acf2605c1ca024fc02b022ce2f36b8495e88384

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

FossilOrigin-Name: 933dfd06188b487f14e522453a83b06e491aea97b4248c17f87727b56694acb5

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

FossilOrigin-Name: a201906cd3c85080f9b739c2d347c51348ebebd3dc9b647d33d8dcae4b6e5850

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

FossilOrigin-Name: 2db24c5364808008fa503f37ca8ccf5d135e8f6bfac2efb29e509e26f7190470

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

FossilOrigin-Name: 9621c3b527702b47799538e028f96945b5697752dbb56078aa7f114c72fd4e1a

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

FossilOrigin-Name: a3e16e478b03ccc12888eb5700c2e480a446957368f4b37ed322af2f4c9cd7c4

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

FossilOrigin-Name: c0c4e6f111b9b16538aad33e83f02f8d7835e952649f5cee610c068722bea4a4

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

FossilOrigin-Name: de9663c0aae92e457ddda48b751b32f205bfab29f60b055571e5f69b41ffd584

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

FossilOrigin-Name: bf996f710212fbc0c0c67789e3f6f1a805e7b81e0265b312265ca7286e76d6f3

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

FossilOrigin-Name: acc866c8f1b73fd57f434c5cb2576c2a7b9475a127febbcc27e8c714bbe29a8a

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

FossilOrigin-Name: 0b12e2e55c6d4b329f0a7629965f313f48b6d3918d36d3371953c56e0c688a28

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

FossilOrigin-Name: 911ab3299771a607a135f0bcde3057b0ed337870362396bf72506210fdff729e

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

FossilOrigin-Name: 9b87ea219bce5689a69efac31063b9b11928e59124c0d36194715ff7faa5129d

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

FossilOrigin-Name: da750e39df7bf42330d8c8b266300da07247c9619895861b4cff4be7c94db7cf

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

FossilOrigin-Name: d25bdce36abed95524ad058a277aba7bb17270e7ff1476474713dbc29742c762

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

FossilOrigin-Name: bcfae7183e92ce37717852bae5b1dd526903fa8429fb6f738c2147d4e5231642

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

FossilOrigin-Name: 69346e9d4704e8fd82cbb3359913191e05cb38ee591baf97dcfe321db0ea085e

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

FossilOrigin-Name: df16d07d8db042cdb1dc6bb9a00a0265ba791a615d74f9152d0b3344e618fe93

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

FossilOrigin-Name: 6b7a789a416fb62a532882d10e41c7048a6805f5fbbc008f36f9802be45d9ebb

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

FossilOrigin-Name: e8f719d13fbcbaf1b52b421d7af59759b1b4692d4010a68d5865dfeaf3cf8cb0

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

FossilOrigin-Name: 41d58a014ce89356932d717843a1fa6e0735f15a7b7265c41ac85a9722a5d826

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

FossilOrigin-Name: f7acb189d8eadf2de2fa992b3ff7293838fd0f8fd3c61e9f0238226a36ea6bcf

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

FossilOrigin-Name: 8ffaf85249ff38ceea037a6e96b3484c912f1c1aa55b8642297d592768661344

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

FossilOrigin-Name: 28e2b9a23f61530bc5eea364a74817fca03fa31f70d4eefb0942a89c1d79f765

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

FossilOrigin-Name: e21fc1ba44dc88547fd2cdfaed90717566153880e79d862e2b3e54ba7f8f0a2e

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

FossilOrigin-Name: 9c0690193200551a3218c576b19eaf40e330dc252d67b430204ff44495e4793e

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

FossilOrigin-Name: 9d0eb3980409115f2f6fd1720a03f34e3968c93be55feafdfef20bf5f711c17f

9 months agoAdd a few missing $(BEXE) suffixes on makefile targets which are apparently never...
stephan [Wed, 9 Oct 2024 05:20:32 +0000 (05:20 +0000)] 
Add a few missing $(BEXE) suffixes on makefile targets which are apparently never run on platforms where that var is non-empty.

FossilOrigin-Name: 1218a203483cecdc8c9abdc970ad68eba0dfa9cafbed95c63cefb7e8af8babee

9 months agoEnable the ".crnl" command on Windows builds of the CLI even if the
drh [Tue, 8 Oct 2024 17:27:00 +0000 (17:27 +0000)] 
Enable the ".crnl" command on Windows builds of the CLI even if the
SQLITE_U8TEXT_ONLY or SQLITE_U8TEST_STDIO compile-time options are used.

FossilOrigin-Name: 6364a2f0449794b0c089ba9fbc099f5558b88ac91c459caf7fae3a43dfcd192e

9 months agoAdditional improvements to the behavior of ".crnl" in the CLI. The default
drh [Tue, 8 Oct 2024 15:11:43 +0000 (15:11 +0000)] 
Additional improvements to the behavior of ".crnl" in the CLI.  The default
output mode is O_BINARY so that results are identical on Windows and
non-Windows systems.  On Windows you can optionally do ".crnl on" to enable
NL-to-CRLF conversion on output.  Output to Windows console is always
O_U8TEXT and so is unaffected by the .crnl setting.

FossilOrigin-Name: dbfc10b8981bcce4f875c4adef43f398871b41551074445087e343ded50253c5

9 months agoFix the .crnl command in the shell so that it does not get undone by
drh [Tue, 8 Oct 2024 14:07:28 +0000 (14:07 +0000)] 
Fix the .crnl command in the shell so that it does not get undone by
calls to print a quoted string or CSV output.

FossilOrigin-Name: 6b932337c8dee3e52b472a38984e91b5091f3d90c41ac1cc171fa4149cc491c5

9 months agoAllow expressions with subtypes to be read from indexes unless they are
drh [Tue, 8 Oct 2024 10:10:42 +0000 (10:10 +0000)] 
Allow expressions with subtypes to be read from indexes unless they are
being used as direct or indirect parameters to SQLITE_SUBTYPE functions.

FossilOrigin-Name: 39a56a23fec24dd713905457b6d4ed7c148f88e325a26c376f1e6daf147c69c8

9 months agoAdd an ALWAYS() on a branch in the new indexed-subtype logic. indexed-subtype-expr
drh [Tue, 8 Oct 2024 00:15:22 +0000 (00:15 +0000)] 
Add an ALWAYS() on a branch in the new indexed-subtype logic.

FossilOrigin-Name: f150c3c5b898975b1f83d61fa589753449a48f8a0007e8e167dbd702528197c5

9 months agoAdd a NEVER() to an unreachable branch in the new indexed-subtype logic.
drh [Mon, 7 Oct 2024 21:04:57 +0000 (21:04 +0000)] 
Add a NEVER() to an unreachable branch in the new indexed-subtype logic.
Mark the pi() function as deterministic.

FossilOrigin-Name: 50be8f5091b2202b67a80f826feee2c378f001745ad5acb7c4374423bbf6ff22

9 months agoThe (undocumented) subtype() SQL function should have the SQLITE_SUBTYPE flag.
drh [Mon, 7 Oct 2024 18:06:17 +0000 (18:06 +0000)] 
The (undocumented) subtype() SQL function should have the SQLITE_SUBTYPE flag.

FossilOrigin-Name: c361dd91841da64fdd009e6eab389ccd81266a24d1070e5313fe1d22e6cef65a

9 months agoMerge the latest trunk enhancements into the indexed-subtype-expr branch.
drh [Mon, 7 Oct 2024 16:53:41 +0000 (16:53 +0000)] 
Merge the latest trunk enhancements into the indexed-subtype-expr branch.

FossilOrigin-Name: 2fe2f374584b025676684ebe4ef29304883a3b0b125b62abc1dbf74815eecdfb

9 months agoAdd the undocumented test/debug function parseuri(), useful for fuzzing.
drh [Mon, 7 Oct 2024 12:48:21 +0000 (12:48 +0000)] 
Add the undocumented test/debug function parseuri(), useful for fuzzing.
Only appears when compiling with SQLITE_DEBUG.

FossilOrigin-Name: 011fab70cb3d194b27742ebb236b05be582230567cf78e3e6cac6911de86922f

9 months agoFix handling of U+fffd in the LIKE optimization.
drh [Mon, 7 Oct 2024 12:19:23 +0000 (12:19 +0000)] 
Fix handling of U+fffd in the LIKE optimization.
dbsqlfuzz eee57fb9eea1dfa5aa40dfa87865cf8c84d12f96.

FossilOrigin-Name: bce52ce2a6e7f3d3d1b2807d1ea95243d9b655e557c1bb6f0b8a9a6cefb1aed6

9 months agoFix an assert() failure in "PRAGMA integrity_check" that could occur when checking...
dan [Mon, 7 Oct 2024 11:47:05 +0000 (11:47 +0000)] 
Fix an assert() failure in "PRAGMA integrity_check" that could occur when checking a corrupt database.

FossilOrigin-Name: d218993be5886f07193d5c2a66ccd0ecdd7bb87687947b89945c90e31cea5451

9 months agoOrigin should not send content for the lock-byte page to the replica, in parseuri
drh [Sun, 6 Oct 2024 21:26:56 +0000 (21:26 +0000)] 
Origin should not send content for the lock-byte page to the replica, in
sqlite3-rsync.
[forum:/forumpost/d14b55e5fa19c25f|Forum post d14b55e5fa19c25f].

FossilOrigin-Name: aa9bd711cc1b0136098388976d22adc0a2fc89f50fe2273ed80ee3e4e50c98b6

9 months agoNew SQL function for testing/debugging use only: parseuri().
drh [Sun, 6 Oct 2024 15:01:31 +0000 (15:01 +0000)] 
New SQL function for testing/debugging use only: parseuri().

FossilOrigin-Name: 37d3b6b17e92b2c760239c3053bbc7fb85091acd688c54a73af7611fe9501312

9 months agoBack out [2f7eab381e16] because the stderr output on systems without gmake causes...
stephan [Sat, 5 Oct 2024 21:44:21 +0000 (21:44 +0000)] 
Back out [2f7eab381e16] because the stderr output on systems without gmake causes grief in the testing tools.

FossilOrigin-Name: cc6f3de0320aceb0e9d81413fa4c021ad2b4ee1c72ecef13438d80c4d3701135

9 months agoAllow expressions with subtypes to be read from indexes unless they are being used...
dan [Sat, 5 Oct 2024 18:10:02 +0000 (18:10 +0000)] 
Allow expressions with subtypes to be read from indexes unless they are being used as direct or indirect parameters to SQLITE_SUBTYPE functions.

FossilOrigin-Name: aa440e78e9004c7ca3e03beaf264f54d0070ad7298a3c96ca097d8b35c872e5f

9 months agoExperimental change to allow expressions with subtypes to be read from indexes in...
dan [Sat, 5 Oct 2024 17:37:19 +0000 (17:37 +0000)] 
Experimental change to allow expressions with subtypes to be read from indexes in situations where they are not used as function parameters.

FossilOrigin-Name: ac63f98ad85a4dd1e49cc64b41f0ca0044153972c15d71c669f4bc3ec590e268

9 months agoAdd ext/wasm to the top-level clean/distclean rules in such a way that any error...
stephan [Sat, 5 Oct 2024 12:02:17 +0000 (12:02 +0000)] 
Add ext/wasm to the top-level clean/distclean rules in such a way that any error due to a lack of gmake are ignored.

FossilOrigin-Name: 2f7eab381e16760952d1c90a9119d2a217933f0136442d8f6eeb6d95e366ca4f

9 months agoFix typo in documentation for SQLITE_SUBTYPE. No code changes.
dan [Fri, 4 Oct 2024 17:02:36 +0000 (17:02 +0000)] 
Fix typo in documentation for SQLITE_SUBTYPE. No code changes.

FossilOrigin-Name: 6733893f450097e07cbd563d6a46790825fd0689283d60181c09793ce7d5509e

9 months agoUnconditionally include <ctype.h> in sqliteInt.h, even in builds where
drh [Thu, 3 Oct 2024 16:31:08 +0000 (16:31 +0000)] 
Unconditionally include <ctype.h> in sqliteInt.h, even in builds where
it is not needed.

FossilOrigin-Name: 825f01d7e258ac7981f715fd10708560381b079f0e026abc414cf56d16d862da

9 months agoFix to the previous: The dbpageRollbackTo() method should return SQLITE_OK.
drh [Thu, 3 Oct 2024 10:06:51 +0000 (10:06 +0000)] 
Fix to the previous:  The dbpageRollbackTo() method should return SQLITE_OK.

FossilOrigin-Name: 4dea7221129350a15df8dee5aabd5567e47adda4d255b65d4ba82fd821913759

9 months agoFix missing return value from the new dbpageRollbackTo() callback.
drh [Thu, 3 Oct 2024 09:53:44 +0000 (09:53 +0000)] 
Fix missing return value from the new dbpageRollbackTo() callback.

FossilOrigin-Name: d1e0992e1f2885be9725d872b8688806e06788f3d66a70de86255179d93f74d3

9 months agoModify the behavior of sqlite_dbpage so that the null-INSERT that truncates
drh [Wed, 2 Oct 2024 18:54:40 +0000 (18:54 +0000)] 
Modify the behavior of sqlite_dbpage so that the null-INSERT that truncates
a database must be the very last INSERT operation within a transaction in order
to be effective.  This simplifies the code and also makes the behavior
easier to document and understand.

FossilOrigin-Name: b869a7d9ce9567a61d2257272032aaee705bbc6158c7f2cd36e7f3ee66d72722

9 months agoFix a typo in fts5delete.test.
dan [Wed, 2 Oct 2024 17:43:06 +0000 (17:43 +0000)] 
Fix a typo in fts5delete.test.

FossilOrigin-Name: b1f001435eff72c2119ecee973194385f70fd1b66ef0be8a66c0b0ad02ae43df

9 months agoAdd the contentless_unindexed=1 option to fts5. This causes the values of any UNINDEX...
dan [Wed, 2 Oct 2024 17:04:30 +0000 (17:04 +0000)] 
Add the contentless_unindexed=1 option to fts5. This causes the values of any UNINDEXED columns of a contentless fts5 table to be stored persistently in the database.

FossilOrigin-Name: 58313ac59e0bd164f601d68a1474f658c5d1c038638e00f3dc15eb58202e661c

9 months agoAdjust the new truncation behavior of sqlite_dbpage(N,null) such that it causes
drh [Wed, 2 Oct 2024 16:55:27 +0000 (16:55 +0000)] 
Adjust the new truncation behavior of sqlite_dbpage(N,null) such that it causes
the database to be truncated to N-1 pages.  This makes more since.  An error is
raised if N is less than 2.

FossilOrigin-Name: 7d5ff86ef7386f4f7f6a956dc0de607e61040d335c9f98d1f71e76a39f4f5e03

9 months agoRemove all use of the "long double" data type from SQLite, as hardware support
drh [Wed, 2 Oct 2024 13:26:17 +0000 (13:26 +0000)] 
Remove all use of the "long double" data type from SQLite, as hardware support
for long double is increasingly rare and the use of long double creates
challenges for some compilers.

FossilOrigin-Name: 761d8fd18b0ee8681b12998f01a2eca1b796807a5174a1270cfb9bdc841424ac

9 months agoRemove a few more traces of long double from the code. omit-long-double
drh [Wed, 2 Oct 2024 11:34:11 +0000 (11:34 +0000)] 
Remove a few more traces of long double from the code.

FossilOrigin-Name: 11d6a89e4a25c3f884ff617036d239dc42522859400cd1f4674634f6c7adbb02

9 months agoEnsure that if sqlite3_snapshot_get() is called immediately after a "BEGIN", then...
dan [Wed, 2 Oct 2024 11:15:22 +0000 (11:15 +0000)] 
Ensure that if sqlite3_snapshot_get() is called immediately after a "BEGIN", then it locks the database such that the returned snapshot object may not be invalidated by a writer or checkpointer until after the sqlite3_snapshot_get() caller has closed its transaction.

FossilOrigin-Name: eb5277e490a9b48c865f2dc449cdb8f1b604e233737e492abb4f2f7101a6715b

9 months agoMerge latest trunk changes into this branch. snapshot_get-locking
dan [Wed, 2 Oct 2024 11:11:29 +0000 (11:11 +0000)] 
Merge latest trunk changes into this branch.

FossilOrigin-Name: 2b3945e6a597e6853cac567052e92926c8cb6d7a029ac64c2d45c321bbe2e94d

9 months agoUpdate docs for sqlite3_snapshot_get().
dan [Wed, 2 Oct 2024 11:11:00 +0000 (11:11 +0000)] 
Update docs for sqlite3_snapshot_get().

FossilOrigin-Name: 78c3892ab777a39406da8a9df84d0634397514e25512b0363a13bff3b8bc8925

9 months agoRemove all code that makes use of the C-language "long double" datatype.
drh [Tue, 1 Oct 2024 20:29:43 +0000 (20:29 +0000)] 
Remove all code that makes use of the C-language "long double" datatype.

FossilOrigin-Name: f622b52024c8bec1d241b1dc480fbbd839fc1af50b6220f012812503de2c656e

9 months agoNew #ifdefs to omit code that is unused when SQLITE_USE_LONG DOUBLE is defined.
drh [Tue, 1 Oct 2024 19:10:47 +0000 (19:10 +0000)] 
New #ifdefs to omit code that is unused when SQLITE_USE_LONG DOUBLE is defined.

FossilOrigin-Name: 98066e2d226e7d2eceec1931a1432baea956f49bf3c708d8a6d511fa4e864ca3

9 months agoAnother comment about the LONGDOUBLE wasm topic. No code changes.
stephan [Tue, 1 Oct 2024 17:57:55 +0000 (17:57 +0000)] 
Another comment about the LONGDOUBLE wasm topic. No code changes.

FossilOrigin-Name: 1755831cb1ac58241e0b11d8d003b5eca39b65aa3cb84229b215662028b1b3c0

9 months agoUse the new SQLITE_USE_LONG_DOUBLE to disable long-double support in WASM builds...
stephan [Tue, 1 Oct 2024 17:08:23 +0000 (17:08 +0000)] 
Use the new SQLITE_USE_LONG_DOUBLE to disable long-double support in WASM builds, as they cannot be represented in JS and this saves approximately 5.5kb in the resulting wasm file.

FossilOrigin-Name: fa7b56f776b715d061581fad6f04b871504ff5d808e7364419d1d6cdef82c5ee

9 months agoAdd compile-time option -DSQLITE_USE_LONG_DOUBLE=0 to omit all attempts to use
drh [Tue, 1 Oct 2024 16:55:30 +0000 (16:55 +0000)] 
Add compile-time option -DSQLITE_USE_LONG_DOUBLE=0 to omit all attempts to use
"long double".  Or =1 to omit attempts to use the Dekker algorithms to achieve
high-resolution floating point.

FossilOrigin-Name: ca5964ef70efad3332e0bf9c158eb5fd5006d3022051d1ac506c097c427735a1

9 months agoAdd an #if'd-out block to sqlite3-wasm.c mentioning the LONGDOUBLE_TYPE, as brought...
stephan [Tue, 1 Oct 2024 10:49:30 +0000 (10:49 +0000)] 
Add an #if'd-out block to sqlite3-wasm.c mentioning the LONGDOUBLE_TYPE, as brought up in [forum:cbfb0d0ac0a4e349 | forum post cbfb0d0ac]. No functional changes.

FossilOrigin-Name: 0b83e8f1ef53b35a9dda0740b4922b8691428f7484f3058833a961f3f8d0b178

9 months agoFix the character width tables for the CLI such that all unicode code-points
drh [Mon, 30 Sep 2024 18:19:38 +0000 (18:19 +0000)] 
Fix the character width tables for the CLI such that all unicode code-points
less than 0x300 have a width of 1.  This is in fact the case for Mac, Ubuntu,
and Windows.

FossilOrigin-Name: f0c5a86fefecded07e098e1326dd54c72504b0bb480f710e395d4041a322dfcb

9 months agoIn fts5, avoid starting a new merge of level L if there exists already an ongoing...
dan [Mon, 30 Sep 2024 17:28:45 +0000 (17:28 +0000)] 
In fts5, avoid starting a new merge of level L if there exists already an ongoing merge of a level less than L.

FossilOrigin-Name: 350c6e75ce3c1e81458d1baa73045df489284206e8b279ab3c2f5e3d011c262a

10 months agoFix the CLI so that the --bom option only outputs a single BOM, not two.
drh [Sat, 28 Sep 2024 19:52:38 +0000 (19:52 +0000)] 
Fix the CLI so that the --bom option only outputs a single BOM, not two.

FossilOrigin-Name: 76b6331e6a705a420a64820a18214f07cf4c1d5151e7158d6fff09964e63f352

10 months agoMerge trunk changes into this branch. fts5-contentless-unindexed
dan [Sat, 28 Sep 2024 15:20:13 +0000 (15:20 +0000)] 
Merge trunk changes into this branch.

FossilOrigin-Name: 81d48df62ccf8b56e7adbc5327103e8ab5499bb22e587c4f0d0780a66adbdb67

10 months agoAdd another missing mkdir to the wasm build process.
stephan [Sat, 28 Sep 2024 15:13:49 +0000 (15:13 +0000)] 
Add another missing mkdir to the wasm build process.

FossilOrigin-Name: e815055b321085deda8607ac3279ef1a1c890fe3bf9d9b9c0a74028e87857a7d

10 months agoAdd tests for DELETE on contentless, contentless-delete and contentless-unindexed...
dan [Sat, 28 Sep 2024 15:09:43 +0000 (15:09 +0000)] 
Add tests for DELETE on contentless, contentless-delete and contentless-unindexed fts5 tables.

FossilOrigin-Name: 74832fffb61d5e09ff256622cc9aa1fd2c40d30324c410bd6a8c688f0506a536

10 months agoComplete a line of documentation which was interrupted mid-sentence.
stephan [Sat, 28 Sep 2024 13:51:47 +0000 (13:51 +0000)] 
Complete a line of documentation which was interrupted mid-sentence.

FossilOrigin-Name: c9cbbeda3d1ec4215396aaaf94428b829c4f53329431fa61251914c195f8a9a1

10 months agowasm: move the makefile-eval-generated fiddle rules into mkwasmbuilds.c. Squelch...
stephan [Sat, 28 Sep 2024 12:01:10 +0000 (12:01 +0000)] 
wasm: move the makefile-eval-generated fiddle rules into mkwasmbuilds.c. Squelch some warnings from grep when running 'make clean' on a clean tree.

FossilOrigin-Name: 0485d1360b0dbf9987d16ab1df47b6b7a25595881581799f87889f6d4eeb60f4

10 months agoEnsure that the temporary build dir is mkdir'd by wasm deps which depend on it.
stephan [Sat, 28 Sep 2024 11:23:09 +0000 (11:23 +0000)] 
Ensure that the temporary build dir is mkdir'd by wasm deps which depend on it.

FossilOrigin-Name: cabdf9797281090ab3f95c9f4c2a79878d1c64d1f2a09e433e2309abe5e19e59

10 months agoFor wasm builds: automatically use higher optimization (but slower build) levels...
stephan [Sat, 28 Sep 2024 11:03:00 +0000 (11:03 +0000)] 
For wasm builds: automatically use higher optimization (but slower build) levels when a target related to deliverables (as opposed to dev mode) is explicitly invoked.

FossilOrigin-Name: 45361ab9744ccac3419d97fe8951838f14bd28220e3f7f747b39e46cfc3b5a1d

10 months agoMinor makefile doc fixes. No functional changes.
stephan [Sat, 28 Sep 2024 00:39:19 +0000 (00:39 +0000)] 
Minor makefile doc fixes. No functional changes.

FossilOrigin-Name: b3ad58e1fc73941f2d32bab0e0fac0b95849ae69f84788a431e65bb072e42db5

10 months agoMerge wasm-build-rework branch into trunk. Summary: 1) add optional bare-bones build...
stephan [Sat, 28 Sep 2024 00:02:52 +0000 (00:02 +0000)] 
Merge wasm-build-rework branch into trunk. Summary: 1) add optional bare-bones build, stripped of many optional library features, 2) replace much of the hyper-spaghetti wasm-specific makefile code with a more legible static code generator.

FossilOrigin-Name: 208c27714646c9bc26eef11266086a71da04bc24e87078de0955e7beb68a821e

10 months agoFix fiddle build broken by recent build-level reworks. Remove a stale reference to... wasm-build-rework
stephan [Fri, 27 Sep 2024 23:45:40 +0000 (23:45 +0000)] 
Fix fiddle build broken by recent build-level reworks. Remove a stale reference to an old CSS file.

FossilOrigin-Name: f904b3b7842da036c3e8423bae02cdf207573c92dc379a601eae289eb3c5f547

10 months agoExtra test cases for UPDATEs of contentless tables.
dan [Fri, 27 Sep 2024 19:21:09 +0000 (19:21 +0000)] 
Extra test cases for UPDATEs of contentless tables.

FossilOrigin-Name: 4d11d844de3edd82f022c36381ca7f14a546a608293c329b91e7f041cec82ff5

10 months agoFix a problem with UPDATE statements that modify the rowid of contentless_delete...
dan [Fri, 27 Sep 2024 19:10:54 +0000 (19:10 +0000)] 
Fix a problem with UPDATE statements that modify the rowid of contentless_delete=1 tables.

FossilOrigin-Name: d69abca82145465c85241a12322986f22bf12ffe42f86c2c8e8e2f2a77d53bf8

10 months agoFix a problem with UPDATEs that do not modify all UNINDEXED columns of a contentless_...
dan [Fri, 27 Sep 2024 18:32:52 +0000 (18:32 +0000)] 
Fix a problem with UPDATEs that do not modify all UNINDEXED columns of a contentless_delete=1, contentless_unindexed=1 table.

FossilOrigin-Name: b6b1db8d343d3e55c3a5589af3ec629762e06c6b689b77defd445347198cb2e7

10 months agoSquash sign-comparison warnings reported in [forum:5e605a763a65c3f8 | forum post...
stephan [Fri, 27 Sep 2024 16:20:03 +0000 (16:20 +0000)] 
Squash sign-comparison warnings reported in [forum:5e605a763a65c3f8 | forum post 5e605a763a65c3f8].

FossilOrigin-Name: e74fce93c518296bdb0a4273cd5fd3f785d37d27750ca456b61a3502135775f9

10 months agoMerge trunk changes into this branch.
dan [Fri, 27 Sep 2024 11:35:22 +0000 (11:35 +0000)] 
Merge trunk changes into this branch.

FossilOrigin-Name: 4a26a4e0015bc42b1d007def3750caf7baefe429270a295cc2f4499c98c07247

10 months agoAllow UPDATEs of unindexed columns in fts5 contentless_unindexed=1 tables. Testing...
dan [Fri, 27 Sep 2024 10:57:41 +0000 (10:57 +0000)] 
Allow UPDATEs of unindexed columns in fts5 contentless_unindexed=1 tables. Testing to come.

FossilOrigin-Name: cd36d66c88d7282eb0a3ccde5713253f72f5843e451b2693b71adfdae28b41fb

10 months agoFix a harmless compiler warning in the CLI.
drh [Thu, 26 Sep 2024 22:25:13 +0000 (22:25 +0000)] 
Fix a harmless compiler warning in the CLI.

FossilOrigin-Name: 27ef1909bb0c4d9470c6074b40500632c68341127a079a3eb3b6a19dbfb2aeac

10 months agoAdd the ext/misc/sqlite3_stdio.c portability interface and incorporate it
drh [Thu, 26 Sep 2024 19:38:34 +0000 (19:38 +0000)] 
Add the ext/misc/sqlite3_stdio.c portability interface and incorporate it
into the CLI, sqldiff, and sqlite3_analyzer.  Enhance the CLI with the new
".www" dot-command and related options on .once and .output.

FossilOrigin-Name: f97f9944b829a49da12786f934da0a5ad51591afd6d8a19a4a0835f51bbdbff2

10 months agoProvide SQLITE_U8TEXT_ONLY and SQLITE_U8TEXT_STDIO compile-time options cli-stdlib
drh [Thu, 26 Sep 2024 19:16:20 +0000 (19:16 +0000)] 
Provide SQLITE_U8TEXT_ONLY and SQLITE_U8TEXT_STDIO compile-time options
to the sqlite3_stdio.c module.

FossilOrigin-Name: f31588520e3f45b50dcaa9eecab17f52ebb56bb53d0f9bdb88cc596d1a156353

10 months agoResolve a harmless compiler warning in QNX builds.
stephan [Thu, 26 Sep 2024 18:13:10 +0000 (18:13 +0000)] 
Resolve a harmless compiler warning in QNX builds.

FossilOrigin-Name: 2916460179c6089375188c6e4e3cff1fca5bbbbb7280a10c919e09e75d1f11f8

10 months agoWhen possible, avoid taking wal file read-lock 0 in sqlite3_snapshot_get().
dan [Thu, 26 Sep 2024 18:02:17 +0000 (18:02 +0000)] 
When possible, avoid taking wal file read-lock 0 in sqlite3_snapshot_get().

FossilOrigin-Name: 34b6ac3d76dbc6819778ec2a0f81cbcdcc0cd1a6303381d97f1c479e4ecdd132

10 months agoClarification of the meaning of the nByte parameter to sqlite3_prepare().
drh [Thu, 26 Sep 2024 13:12:19 +0000 (13:12 +0000)] 
Clarification of the meaning of the nByte parameter to sqlite3_prepare().
Comment and documentation change only - no changes to the code.

FossilOrigin-Name: 92d71eee4f3a5edb3877c108d14972d80654982b0de3e635d9d008e9d3b6591f

10 months agoFix shell test cases to account for recent additions to the ".help" output.
drh [Thu, 26 Sep 2024 01:29:22 +0000 (01:29 +0000)] 
Fix shell test cases to account for recent additions to the ".help" output.

FossilOrigin-Name: 54c22bc6165affbea0d1166a0912d19939300ccc4ae33a6b2ed8c510ab61c574

10 months agoAlways show HTML table headers in ".www" output mode.
drh [Wed, 25 Sep 2024 16:11:27 +0000 (16:11 +0000)] 
Always show HTML table headers in ".www" output mode.

FossilOrigin-Name: 660ca5ce6600d897cc2b00b9d39e5d993c1c0e71ec0d5dc706246c053a163281