]>
git.ipfire.org Git - thirdparty/sqlite.git/log
drh [Wed, 7 Aug 2024 15:17:37 +0000 (15:17 +0000)]
Add a new assert() to help static analyzers understand that a pointer is
never NULL.
FossilOrigin-Name:
433f2b942ee6f79d50ebe9b08fa3ea8162db6a10ce9d80e2bc193124baa1b083
drh [Wed, 7 Aug 2024 14:54:54 +0000 (14:54 +0000)]
Fix a harmless compiler warning in an assert().
FossilOrigin-Name:
5e4c9a74b2efa74ace67f644fb6bb37e07f5982f8faaca9463e3daa50b0469d7
drh [Tue, 6 Aug 2024 23:09:37 +0000 (23:09 +0000)]
Remove unused test cases from FTS5, as they interfere with "grep".
FossilOrigin-Name:
048a71bae48aacdfc91e59330db4d4b3d663f00665f51a7110ea82e0508758ec
drh [Tue, 6 Aug 2024 22:49:01 +0000 (22:49 +0000)]
Improved robustness of parsing of tokenize= arguments in FTS5.
[forum:/forumpost/
171bcc2bcd |Forum post
171bcc2bcd ].
FossilOrigin-Name:
d9f726ade6b258f8723f90d0b04a4682e885e30939eb29773913e4dfc8e85503
drh [Tue, 6 Aug 2024 20:00:10 +0000 (20:00 +0000)]
Improvements to ./configure that will hopefully break fewer builds.
FossilOrigin-Name:
769e32a69b7b7c04225afa0371f139b2ed29aaee5a7a4159a30d600ed9f25c57
drh [Tue, 6 Aug 2024 10:29:41 +0000 (10:29 +0000)]
Change the AggInfoColumnReg() and AggInfoFuncReg() macros for
compilers that cannot parse empty elements of a comma expression.
[forum:/forumpost/
8fd21998dc |Forum post
8fd21998dc ].
FossilOrigin-Name:
533a6251f188805363f0e39613ea03b1bfd758eaea00e0855803238585bdfec7
drh [Sun, 4 Aug 2024 10:13:01 +0000 (10:13 +0000)]
Restore legacy "tcl_install" makefile target, as an interim measure until
I can figure out what is going on.
FossilOrigin-Name:
931ad7d9e3aedb6d466fffc0af1f8d6b20d57a35dec644f28585f3e84f22d1ce
drh [Sat, 3 Aug 2024 23:00:17 +0000 (23:00 +0000)]
Fix to the previous checkin: The colUsed parameter should have high-order bit
set if any of the 64-th or greater columns of the virtual table is used. The
lower 63 bits of colUsed always show the usage of the first 63 columns of the
virtual table.
FossilOrigin-Name:
90ac8457750ace1d76d7bc957af7877e86e6301bb07361e19beaf5c7b3b6085a
drh [Sat, 3 Aug 2024 21:45:46 +0000 (21:45 +0000)]
Ensure that the sqlite3_index_info.colUsed mask always includes the PK fields of WITHOUT ROWID virtual tables.
FossilOrigin-Name:
ff4ac279b02190cc2107b0b110806dd7abcea47a6589d827b5ee39d4b80fb719
dan [Sat, 3 Aug 2024 18:58:25 +0000 (18:58 +0000)]
Fix a typo in [
c327c0c0 ] preventing the shell tool from running ".dump" scripts that feature virtual tables.
FossilOrigin-Name:
10e97abb878debb67410902ea1af4df75a9ced1e38fec710b1796c5143aff48e
dan [Sat, 3 Aug 2024 18:45:48 +0000 (18:45 +0000)]
Ensure the sqlite3_index_info.colUsed mask always includes the PK fields of WITHOUT ROWID vtabs in cases where they may be used.
FossilOrigin-Name:
c327c0c02cfefdba373cfb15933a9cdfddb578b6582f2ce7c08929203743ffe9
drh [Sat, 3 Aug 2024 15:55:25 +0000 (15:55 +0000)]
Add the --status option to the test runs using testrunner.tcl. Only works
on Unix platforms. The "exec" command appears to interfere with VT100
escape codes on windows.
FossilOrigin-Name:
94015cda4ceb4292ceceadb951fe5d9cb3e4e20403719b7254ad094a5b749ab3
dan [Fri, 2 Aug 2024 21:06:13 +0000 (21:06 +0000)]
Change things so that locale=1 is required to write fts5_locale() values to an fts5 table, and so that blobs may not be stored in indexed (i.e. not UNINDEXED) columns of these tables.
FossilOrigin-Name:
c98ccc12169419b8b27ead89ef0665de40320277c5daa748b80869337419e43e
drh [Fri, 2 Aug 2024 18:20:10 +0000 (18:20 +0000)]
Make sure the input buffer is big enough for an memcpy() when doing the
restore autodetection in the shell.
FossilOrigin-Name:
1637d29d518b3b4534a1b4c0dc0eddcb770f6f71763e4177812a3e79b97d2365
drh [Fri, 2 Aug 2024 17:36:34 +0000 (17:36 +0000)]
Add the "-d SECS" option to the "status" command of testrunner.tcl
FossilOrigin-Name:
2151ea31632f7aa363c7d4b7205e1174a45d710783a8efad8176049d356cfc70
drh [Fri, 2 Aug 2024 15:28:40 +0000 (15:28 +0000)]
New MSVC makefile targets: tclextension, tclextension-install,
tclextension-uninstall, and tclextension-list.
FossilOrigin-Name:
c38734f57509c50dd28029738dd602600950703b773d9b7b60fdb1dcb06e8fd8
drh [Fri, 2 Aug 2024 13:56:55 +0000 (13:56 +0000)]
Fix typo in a progress message in the builttclext.tcl script.
FossilOrigin-Name:
5e7c94645632b736e805428ff4c135666ab525fac99c29c12d5127b06f39fc6e
drh [Fri, 2 Aug 2024 11:32:28 +0000 (11:32 +0000)]
Fix problems in the configure/Makefile system caused by recent enhancements
and report by [forum:/forumpost/
242ebd0c81 |forum post
242ebd0c81 ].
FossilOrigin-Name:
a59319fe4adc094381c46e490289b3e0cda8f804edaea6984571c47a68a23eef
drh [Fri, 2 Aug 2024 00:59:32 +0000 (00:59 +0000)]
New configuration option: --with-tclsh=FILE. New makefile targets:
tclextension, tclextension-install, tclextension-uninstall,
tclextension-list.
FossilOrigin-Name:
888284d1d47269e66e23627e2519cd2cf83ef65a777a679af20c288453f092e2
drh [Fri, 2 Aug 2024 00:56:31 +0000 (00:56 +0000)]
Previous Makefile.in change broke the tclextension-install target.
FossilOrigin-Name:
7748367c78a1f480ec9e892ba77652e3c31a4b387b89221ae584891818804851
drh [Fri, 2 Aug 2024 00:51:52 +0000 (00:51 +0000)]
Continuing refinements of the tclextension-install makefile target.
FossilOrigin-Name:
871c20a848e0e9b7f3d5661bd076fde16e9ec1e445a7ee657ef267978988ad56
drh [Fri, 2 Aug 2024 00:19:59 +0000 (00:19 +0000)]
Extra robustness for the SQLite Tcl Extension builder, so that it works
on Debian Linux.
FossilOrigin-Name:
2f0738daaff48c51a60f063af6e453443bd7eedf6936daab325b2a36927c7a2b
drh [Thu, 1 Aug 2024 23:30:29 +0000 (23:30 +0000)]
Simplification the ./configure script. Carry Makefile CFLAGS and OPTS through
into builttclext.tcl. Fix a bug in tclsqlite.c introduced by the previous
check-in.
FossilOrigin-Name:
72a80aa0abb121a23f8cc1eb1af04ba06c733a7a40c06f1fe9e62f2a0a26ca6e
drh [Thu, 1 Aug 2024 23:00:37 +0000 (23:00 +0000)]
Add the tclextension-list makefile target. The the makefile running on Mac.
FossilOrigin-Name:
2f667cc8e54167342e17e63e1a017388365ebf4cd379f9c16c12e4603b34a326
drh [Thu, 1 Aug 2024 20:26:22 +0000 (20:26 +0000)]
New makefile targets: tclextension-install and tclextension-uninstall. Seem
to work on Linux.
FossilOrigin-Name:
534f8344abbda78e841edafe84c27ea8b1dfdecb9ab51271772a7f7264ef5b8c
drh [Thu, 1 Aug 2024 20:18:10 +0000 (20:18 +0000)]
Work on a TCL script that will compile and install the TCL extension.
Works on Linux only, so far. This is an incremental check-in.
FossilOrigin-Name:
58babd2aa4b5c9c70e1169cdf09f05eb95d7b13f50bb2ec0e487182288172678
drh [Thu, 1 Aug 2024 18:10:00 +0000 (18:10 +0000)]
Clean up and restructure the TCL configuration sections in autoconf.
The new --with-tclsh=FILE option lets you select the specific tclsh
that you want to run.
FossilOrigin-Name:
8fafc679d91e857602fbbe203144ca98242246660ede5a49c5fec8aaff571151
dan [Thu, 1 Aug 2024 17:15:17 +0000 (17:15 +0000)]
Clarify the role of Fts5Storage.pSavedRow in the new feature on this branch.
FossilOrigin-Name:
e8a61d5c48073fdd4d99d0b6fc70469b37af009f281336a44e3789e7eeed820d
drh [Thu, 1 Aug 2024 14:43:27 +0000 (14:43 +0000)]
Include a test case summary in the output of "errors" in testrunner.tcl.
FossilOrigin-Name:
173df1478e89996126e172656e35da8026d4ef145b2341ef56213f00ade14f48
drh [Thu, 1 Aug 2024 14:16:36 +0000 (14:16 +0000)]
drh [Wed, 31 Jul 2024 23:46:10 +0000 (23:46 +0000)]
Merge all the latest trunk enhancements into the exists-to-join branch.
FossilOrigin-Name:
9084a4c8726a2c7ba1c381886e29c7b86121d531282be0d63d5988d84f6f448d
drh [Wed, 31 Jul 2024 22:36:14 +0000 (22:36 +0000)]
Fix the tclsqlite.c TCL interface module so that it works with both Tcl8 and
Tcl9. Make changes across the TCL-based test harness to enable SQLite to
be tested with either Tcl8 or Tcl9. Get the --with-tcl= argument on the
configure script working. Testing changes only - no changes to the SQLite core.
I believe the previous merge attempt didn't work because of errors in the
merge itself, not because of faults in the code. Trying again...
FossilOrigin-Name:
ea9d88f9ca3399bca83bf03893689a927b73e481604b94527e42de43f103eb46
drh [Wed, 31 Jul 2024 22:26:04 +0000 (22:26 +0000)]
testrunner.db should be in WAL mode for improved concurrency while running
"watch sqlite3 test/testrunner.tcl status".
FossilOrigin-Name:
f23ad0979865f3c11a3dbd0598ee7c4e2eabeaf1863d000fc0242e18890a4a11
drh [Wed, 31 Jul 2024 22:25:25 +0000 (22:25 +0000)]
Make the #include section of tclsqlite.c the same as tclsqlite.h.
FossilOrigin-Name:
2afadbeb124d6d7bb81d473379269014ebd8601f98f231e2218f54350a2e5fd3
drh [Wed, 31 Jul 2024 22:17:26 +0000 (22:17 +0000)]
Fix typo in testrunner.tcl for the "status" command that was causing it
to fail if any errors were seen.
FossilOrigin-Name:
8327c5ed535c57c4082211a50bfb1c32ea5d5fe1cf71f37798d8b58e88948ac2
drh [Wed, 31 Jul 2024 21:59:29 +0000 (21:59 +0000)]
Use `<tcl.h>` instead of `"tcl.h"` to include the TCL interface.
FossilOrigin-Name:
4e32d4aed7c487ee9ed39a7e4486c2989a01781a3edbe9cdce52c6ed357f6366
drh [Wed, 31 Jul 2024 21:46:46 +0000 (21:46 +0000)]
Fix the tclsqlite.c TCL interface module so that it works with both Tcl8 and
Tcl9. Make changes across the TCL-based test harness to enable SQLite to
be tested with either Tcl8 or Tcl9. Get the --with-tcl= argument on the
configure script working. Testing changes only - no changes to the SQLite core.
FossilOrigin-Name:
2a04b1bea12b0b4c3387d675f487337533ac0813248f70085398485e4cacd691
dan [Wed, 31 Jul 2024 20:49:00 +0000 (20:49 +0000)]
Fix various problems with the code on this branch.
FossilOrigin-Name:
8bd4ae7e95c7b6ce34db5ea705dc136e742a22f333d0e7370b485ebd736b5ec2
drh [Wed, 31 Jul 2024 19:57:22 +0000 (19:57 +0000)]
More tweaks to testfixture-implemented TCL commands to make them safe for Tcl9.
FossilOrigin-Name:
67897ca97d8c98e119a498a3adb39548a579e12ee477e9dd74e9564a6f5e4c2b
drh [Wed, 31 Jul 2024 19:56:14 +0000 (19:56 +0000)]
Under Tcl9, the %x format letter truncates to 32-bits. Must use %llx in order
to get a 64-bit rendering.
FossilOrigin-Name:
a3044e0ae65c099d76bf04536e223e70d89971688627c342252951f6c65f49d1
drh [Wed, 31 Jul 2024 17:15:24 +0000 (17:15 +0000)]
Fixes to testfixture routines needed to test snapshots.
FossilOrigin-Name:
66f61c3b35383b2575774d309043a722cc87a53d03518d339d6dbdcf342adc93
drh [Wed, 31 Jul 2024 16:37:02 +0000 (16:37 +0000)]
Fix a typo in testrunner_data.tcl that prevented --with-tcl specifications
from being carried through into sub-builds. Adjust test cases to account
for new floating-point differences discovered when --with-tcl was fixed.
FossilOrigin-Name:
b8f81351914deac99b14be6bb5e4096c1efed9bdb057750825760f09dae04656
dan [Wed, 31 Jul 2024 15:46:41 +0000 (15:46 +0000)]
Add missing documentation for new features to fts5.h.
FossilOrigin-Name:
fa0da3b28e411affd45a918d6b7faba49f744ca8b4adf3cd5ce6609bb630499e
drh [Wed, 31 Jul 2024 15:04:37 +0000 (15:04 +0000)]
Remove obsolete testfixture TCL commands formerly required by Windows
but now handled by Tcl itself. Update tests case accordingly.
FossilOrigin-Name:
4f065fb638b24b33283518af8ad55f28a49cfac4086fa5e4568e2f3a6814962d
drh [Wed, 31 Jul 2024 13:00:18 +0000 (13:00 +0000)]
Fix problems uncovered while testing Tcl9 on Windows.
FossilOrigin-Name:
d5523c77fd0bcdc8344971a116d6ce9657f2b6daddeb7d936cd7607163a36744
drh [Wed, 31 Jul 2024 12:19:16 +0000 (12:19 +0000)]
Minor adjustments to get Tcl9-based testing working on Macs.
FossilOrigin-Name:
066c8672ee85a6ce972de38fcd3793fc2c1ef4f21c3de2379746d0ff18df8dc0
drh [Wed, 31 Jul 2024 11:42:47 +0000 (11:42 +0000)]
Adjust the configure script so that the --with-tcl option is used to
find the appropriate tclsh.
FossilOrigin-Name:
6fb9e37c751cd1a411c77f792794e1abafa5c40ad4dda8d433600d44d525a97c
drh [Wed, 31 Jul 2024 11:12:13 +0000 (11:12 +0000)]
Patch to testrunner.tcl so that it works with Tcl9's pedantic UTF-8 checking.
FossilOrigin-Name:
8d4a23d32dc16b115153e6e100ba3ba15273c3e37310e8a1b4bace885c5383a8
drh [Wed, 31 Jul 2024 10:59:19 +0000 (10:59 +0000)]
Fixes to tclsqlite.c to facilitate TEA installs.
FossilOrigin-Name:
7157c3c910565c9385a028793a0c0106c5064ab6a8a6efbe29dd1f1cdb2bd48d
dan [Wed, 31 Jul 2024 10:52:38 +0000 (10:52 +0000)]
Merge latest changes from trunk into this branch.
FossilOrigin-Name:
ff64939ec8399949393f1029fa6d514892fbf2bf1498545300cc5e120b9622a5
drh [Wed, 31 Jul 2024 02:01:19 +0000 (02:01 +0000)]
Fix a problem with strictly conforming UTF8 in shell1.test.
FossilOrigin-Name:
8ee187f98d310e1e7cf6c3fdf000c19e98a9f11e01436c3c407df04da79aa7c0
drh [Wed, 31 Jul 2024 01:53:48 +0000 (01:53 +0000)]
Adjust a few tests that don't work even with the new floating point
comparison routine.
FossilOrigin-Name:
895125a4895099df7c3841ca7c34697ba17fd667bddbc2fd7148f7aa9d6d2b9d
drh [Wed, 31 Jul 2024 01:45:14 +0000 (01:45 +0000)]
Implement a new comparison routine to compare text renderings of
floating point values. This gets the number of failures down to just 5.
But the routine needs work, and probably refactoring.
FossilOrigin-Name:
71f2ee5db01150707401804b136641170e7ed44760fccec20de19184e4d0a840
dan [Tue, 30 Jul 2024 20:39:58 +0000 (20:39 +0000)]
Fix cases surrounding blob values being stored in locale=1 fts5 tables.
FossilOrigin-Name:
ae435aff1785d5832821c19dc88ccf6c496a7ff55be80276b31e5c9abee723db
drh [Tue, 30 Jul 2024 20:39:05 +0000 (20:39 +0000)]
All tests in "make test" now pass with Tcl9, except for about 198 cases where
the error involves small differences in the rendering to floating point
values.
FossilOrigin-Name:
8e27f5326c69aa4fb6f3f1f42668ab1b08140ab0a614ac4a9d94679c8fb9734e
drh [Tue, 30 Jul 2024 18:49:20 +0000 (18:49 +0000)]
More adjustments to the incrblob channel: Apparently you need to wait
until the close2Proc is called with a flag of 0 before actually shutting
down the channel.
FossilOrigin-Name:
fa549a5507b5f805b469b4360c11155aa9d22043f01f6d9428bf44d0f2351eb0
drh [Tue, 30 Jul 2024 18:42:31 +0000 (18:42 +0000)]
Adjustments to test cases for session so that they work with Tcl9.
FossilOrigin-Name:
d417415b967e62d41667e14ebf5455932ebf38d218a941f13878f0aba6d19bc8
drh [Tue, 30 Jul 2024 18:15:59 +0000 (18:15 +0000)]
Tcl_ChannelType implementations for Tcl9 apparently require that
wideSeekProc be implemented. Also adjust minor test script issues for
fts5 tests so that they can be run sequentially and so that they do not
depend on the specific floating point output formats generated by Tcl.
FossilOrigin-Name:
19fda979c5dc1a385ed3f8ab8df34388c1acfc7ff951fe1b183a79186bd20cdb
drh [Tue, 30 Jul 2024 17:09:51 +0000 (17:09 +0000)]
Get rid of "-encoding binary" across all test cases, as that is no longer
supported in Tcl9. Use "-translation binary" instead.
FossilOrigin-Name:
e0d9670dd98a22d2e22aac8ba8720787a05e280e18ec9b2d4323f947c83718f5
drh [Tue, 30 Jul 2024 16:59:33 +0000 (16:59 +0000)]
Use the SQLite format() function to format floating point values for test
results, to avoid inconsistences in TCL versions.
FossilOrigin-Name:
6a63c472190dafb36582c116c925bbcbe48c3a2f3217fc1ffcb64a733b0151e1
drh [Tue, 30 Jul 2024 16:51:51 +0000 (16:51 +0000)]
Fix the incrblob channel so that partial close works with Tcl9.
FossilOrigin-Name:
d54ec2de78c2aed12be643e59a30b6827fe4728a0ab6504dd64ee9116e5f885a
dan [Tue, 30 Jul 2024 15:55:51 +0000 (15:55 +0000)]
Update the highlight() and snippet() functions to use locales when available.
FossilOrigin-Name:
569ae56a673a2e101fac7003a1cb41c7a02a515adf55bd1e1f2a03c19eb2b085
drh [Tue, 30 Jul 2024 15:49:02 +0000 (15:49 +0000)]
First attempt at getting the build to work with Tcl 9.0.
FossilOrigin-Name:
6e5bb48a74d63fb8c30528f0005d1763cd2dbb882abf86baf1565721e6bfcf84
dan [Mon, 29 Jul 2024 20:31:17 +0000 (20:31 +0000)]
Fix xColumnText() and xColumnSize() APIs. Add xColumnLocale() and xTokenizeSetLocale().
FossilOrigin-Name:
14006711d83d098e665c540b978b0e29aa8f458da1c2c8e9c2baf2ad5ebd502c
dan [Mon, 29 Jul 2024 15:00:11 +0000 (15:00 +0000)]
Fix a couple of asan problems on this branch.
FossilOrigin-Name:
4e3e529313c86b42d5f1ba113d0714d1545bc6641e09e4537d622057f0352989
drh [Sat, 27 Jul 2024 20:28:13 +0000 (20:28 +0000)]
dan [Sat, 27 Jul 2024 19:46:10 +0000 (19:46 +0000)]
Ensure that an fts5 UPDATE does not strip the locale from columns that it does not write to.
FossilOrigin-Name:
69205264debd829573b1c777a5a493cfeb6083c4cdec106b1f819989f859ac75
dan [Fri, 26 Jul 2024 20:50:33 +0000 (20:50 +0000)]
Add the fts5_locale() function, and begin adding the related functionality to fts5.
FossilOrigin-Name:
8839ef7cfb49239e7f1c4812a53a93a672827c88d6921408b1d5062b352c87cc
stephan [Thu, 25 Jul 2024 16:28:55 +0000 (16:28 +0000)]
Fix a non-bare-bones-mode test case broken by the previous checkin.
FossilOrigin-Name:
3be729493b76a8b51c19d81543dea2dcb1fc718f81d4f2d9c6e1381789217687
stephan [Thu, 25 Jul 2024 16:21:19 +0000 (16:21 +0000)]
Strip progress handlers and window functions from the wasm bare-bones (formerly 'minimal') JS bits, noting that we can't yet use OMIT_WINDOWFUNC (for the C parts) without a custom amalgamation. Currently at 604kb.
FossilOrigin-Name:
ec02e9237e1ef81c4196fa630822cb109eab926143ad09593a24273eb0668601
stephan [Thu, 25 Jul 2024 14:00:26 +0000 (14:00 +0000)]
More work on the minimal-mode wasm build (now 603kb uncompressed). Remove the hard-coded feature-enable flags from sqlite3-wasm.c and rely on the build to provide them. Some wasm build cleanup, but attempts to completely overhaul it have been thwarted by my inability to make script-generated makefile code more legible/maintainable than the current eval spaghetti.
FossilOrigin-Name:
b029c4067943e366a9b25b8303136fab10822bd771ea4658ac4cd716ff4a0d8f
stephan [Thu, 25 Jul 2024 10:50:45 +0000 (10:50 +0000)]
Start work on an overhaul of the wasm build process, with an eye towards less over-engineering.
FossilOrigin-Name:
ed746b3dd3248b68cb91de50ac5ba5fd3a7c2fcbde76324e86b88edbfecd896b
stephan [Wed, 24 Jul 2024 23:58:28 +0000 (23:58 +0000)]
wasm minimal build: strip authorizers and JSON support (saves approx 35kb). Strip vtab support from the JS bits but cannot yet strip it from the C bits because that requires a custom-configured sqlite3.c.
FossilOrigin-Name:
eb64d106551718467e0f6c6b53695410bf4c566901008e4cda8580d0f7efa7b0
stephan [Wed, 24 Jul 2024 22:07:18 +0000 (22:07 +0000)]
Restructuring of the wasm build to support an experimental 'minimal' build mode which elides all non-core APIs.
FossilOrigin-Name:
ee2191f7302210100fa0b29ace8156531ad995bf61aa2642e526e0901d0c6862
drh [Wed, 24 Jul 2024 13:53:51 +0000 (13:53 +0000)]
Add the percentile extension to the CLI by default.
FossilOrigin-Name:
bcc31846964102385d5a21eb5e85d7db153b155e76b4e2847c9453d3d0e1af04
drh [Wed, 24 Jul 2024 13:41:09 +0000 (13:41 +0000)]
Add the percentile_cont(Y,P) variant of percentile() to the percentile
extension.
FossilOrigin-Name:
095c22e62248f8ef50cd8531171827f50a7bdd4fc1128bf0e616a3eb2dce980e
stephan [Wed, 24 Jul 2024 12:12:11 +0000 (12:12 +0000)]
JNI SQLTester: fix --new command to force-replace db if it already exists. Add no-op impls for --stmt-cache and --jsonglob commands.
FossilOrigin-Name:
f1185dc349d076a6b8ea22f9b5cd527bfd60e9afd55eaec754c0e2b4d7edd5d4
drh [Tue, 23 Jul 2024 16:23:46 +0000 (16:23 +0000)]
Enhance the percentile() extension function to include the median()
variant. Update the implementation to implement its own sorting
algorithm, so that the extension no longer depends on qsort().
FossilOrigin-Name:
6e31b1bab1f014933c671a12a5930c1e88d611cfe68d389e9ce888bd8842addd
stephan [Mon, 22 Jul 2024 21:46:55 +0000 (21:46 +0000)]
stephan [Mon, 22 Jul 2024 21:21:25 +0000 (21:21 +0000)]
Move a block of JS code which was inadvertently (and harmlessly) moved in the previous checkin. Clarify the semantics of an internal-use-only API. Add another WAL-related JS test.
FossilOrigin-Name:
6cd9f55a975b5237efee8776efce7e7836b41905ca750f82be3b90aa04c1dff2
stephan [Mon, 22 Jul 2024 20:58:51 +0000 (20:58 +0000)]
OPFS VFSes: remove the on-open() pragma calls, as those (A) already reflected the build-time default settings and (B) they made it illegal to run locking_mode=exclusive, which is a requirement for WAL mode without shared memory. Modify part of the test suite to demonstrate that the SAHPool VFS can run in WAL mode so long as locking_mode=exclusive is used.
FossilOrigin-Name:
19cd8e2b056d7842ee39afb7160c901c9dc55a5bac8049cb0b5246210f6b920d
stephan [Mon, 22 Jul 2024 19:52:02 +0000 (19:52 +0000)]
wasm build: resolve a circular dep and do some minor tidying up.
FossilOrigin-Name:
9df3f1f24c6346dc94695bf533501c54379bb6e3cf492b67dda8a64a6a1eb495
drh [Sun, 21 Jul 2024 23:34:52 +0000 (23:34 +0000)]
Fixes to TreeView debugging output for VALUES clauses.
FossilOrigin-Name:
b6aed8bcb06edc7f0221fd707d5adc227856fe62dbcaae5ffe1fb4faa5c542e1
drh [Sun, 21 Jul 2024 23:10:55 +0000 (23:10 +0000)]
Improved debugging output when using PRAGMA vdbe_addoptrace:
Show the range of opcodes being checked for Column-to-Copy conversion.
FossilOrigin-Name:
2c122026db979a099a3d1a14ae1e01a0a64a559905ea414b2d80ed7dc3e04846
dan [Sat, 20 Jul 2024 16:11:12 +0000 (16:11 +0000)]
Fix an oversized allocation in sqlite3ExprCodeIN().
FossilOrigin-Name:
d7be326a80e7b3aa8fd6e5e059c04e6ad3feaffcb20b1e3c251d7195ddc1be8b
stephan [Thu, 18 Jul 2024 19:17:29 +0000 (19:17 +0000)]
Minor typo fixes in test-script-interpreter.md.
FossilOrigin-Name:
bf54b26092ded2e6acc779acfb960364f05c665c7626c38ffae61caae5636184
drh [Thu, 18 Jul 2024 18:44:44 +0000 (18:44 +0000)]
Fix a problem in FTS5 where it reports the wrong error code following an OOM.
FossilOrigin-Name:
0c1cc4071edcd3e465779bbb17ea3ee6ddaa7c93c4fde55e5f3e07aa4b45783b
dan [Wed, 17 Jul 2024 18:38:34 +0000 (18:38 +0000)]
Fixes for platforms with 32-bit pointers that require 64-bit values to be aligned.
FossilOrigin-Name:
539e4f661767ef90aef8d995f1f75fd5f550703bba1517cd3caff84a4afe2b37
dan [Wed, 17 Jul 2024 16:27:36 +0000 (16:27 +0000)]
Add extra assert() statements to the fixes on this branch.
FossilOrigin-Name:
81b6360050eea95e4367de1b41b5864a640b4d1c5c8fc3bea3b96ed770cb0325
stephan [Mon, 15 Jul 2024 10:11:21 +0000 (10:11 +0000)]
stephan [Sat, 13 Jul 2024 18:16:40 +0000 (18:16 +0000)]
dan [Sat, 13 Jul 2024 16:53:56 +0000 (16:53 +0000)]
Fixes for platforms with 32-bit pointers that require 64-bit values to be aligned.
FossilOrigin-Name:
2212d7488ed4ec2839ffa45cb9567056b36519434834634e4ecc441c330694d7
stephan [Sat, 13 Jul 2024 15:42:30 +0000 (15:42 +0000)]
Add JS binding for sqlite3_column_decltype().
FossilOrigin-Name:
5252d292b14f6ed99b09f6330b19effd488c2b23ff6ea33311321a065d3f6ce2
stephan [Sat, 13 Jul 2024 15:21:35 +0000 (15:21 +0000)]
stephan [Sat, 13 Jul 2024 14:07:47 +0000 (14:07 +0000)]
Add JS bindings for sqlite3_stmt_busy() and sqlite3_stmt_explain().
FossilOrigin-Name:
b772edfb44143107d4993bde600d0f4c45184f29a4deee403105c64748c36523
stephan [Sat, 13 Jul 2024 13:22:32 +0000 (13:22 +0000)]
Add missing sqlite3_bind_parameter_name() binding to JS.
FossilOrigin-Name:
6dcfcc7e1c0772b11aec750bb75899a5c8e452735ecf5028c001fbaa7aa6fda0
stephan [Sat, 13 Jul 2024 12:50:42 +0000 (12:50 +0000)]
Add JS bindings and tests for sqlite3_interrupted(), is_interrupted(), and db_readonly().
FossilOrigin-Name:
5589ba5651d80479ae555429340fc74390ff07d3e05ba770bb7d82490211e00d
stephan [Sat, 13 Jul 2024 11:47:44 +0000 (11:47 +0000)]
Remove a stray/harmless duplicate wasm function export entry.
FossilOrigin-Name:
5402e4fb1cbd7a2c3dee6ebfb492a076d05daa66f747d18602338874405829df
stephan [Sat, 13 Jul 2024 01:40:36 +0000 (01:40 +0000)]
Add several convenience links to the OPFS VFS concurrency tester app for launching it with various combinations of options.
FossilOrigin-Name:
397d6a18f173a46b60a867fc45611045c76316d6602a3df8b4dc4ba45e1348ce
stephan [Sat, 13 Jul 2024 01:02:57 +0000 (01:02 +0000)]
Add an option to the opfs-sahpool VFS which tells it to ignore a previous init failure and retry, as an opt-in workaround for a browser quirk which occasionally denies OPFS access on the first attempt and permits it on subsequent attempts. This resolves [https://github.com/sqlite/sqlite-wasm/issues/79|issue #79 of the npm distribution].
FossilOrigin-Name:
fbf3948a4ba27c6ebf55b24e7463b20026439f04d1974bafe78df5c5bc958f59