]>
git.ipfire.org Git - thirdparty/sqlite.git/log
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
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
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
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
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
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
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
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
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
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
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
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
drh [Mon, 7 Oct 2024 12:19:23 +0000 (12:19 +0000)]
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
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
drh [Sun, 6 Oct 2024 15:01:31 +0000 (15:01 +0000)]
New SQL function for testing/debugging use only: parseuri().
FossilOrigin-Name:
37d3b6b17e92b2c760239c3053bbc7fb85091acd688c54a73af7611fe9501312
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
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
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
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
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
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
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
drh [Thu, 3 Oct 2024 09:53:44 +0000 (09:53 +0000)]
Fix missing return value from the new dbpageRollbackTo() callback.
FossilOrigin-Name:
d1e0992e1f2885be9725d872b8688806e06788f3d66a70de86255179d93f74d3
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
dan [Wed, 2 Oct 2024 17:43:06 +0000 (17:43 +0000)]
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
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
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
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
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
dan [Wed, 2 Oct 2024 11:11:29 +0000 (11:11 +0000)]
Merge latest trunk changes into this branch.
FossilOrigin-Name:
2b3945e6a597e6853cac567052e92926c8cb6d7a029ac64c2d45c321bbe2e94d
dan [Wed, 2 Oct 2024 11:11:00 +0000 (11:11 +0000)]
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
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
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
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
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
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
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
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
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
dan [Sat, 28 Sep 2024 15:20:13 +0000 (15:20 +0000)]
stephan [Sat, 28 Sep 2024 15:13:49 +0000 (15:13 +0000)]
Add another missing mkdir to the wasm build process.
FossilOrigin-Name:
e815055b321085deda8607ac3279ef1a1c890fe3bf9d9b9c0a74028e87857a7d
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
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
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
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
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
stephan [Sat, 28 Sep 2024 00:39:19 +0000 (00:39 +0000)]
Minor makefile doc fixes. No functional changes.
FossilOrigin-Name:
b3ad58e1fc73941f2d32bab0e0fac0b95849ae69f84788a431e65bb072e42db5
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
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
dan [Fri, 27 Sep 2024 19:21:09 +0000 (19:21 +0000)]
Extra test cases for UPDATEs of contentless tables.
FossilOrigin-Name:
4d11d844de3edd82f022c36381ca7f14a546a608293c329b91e7f041cec82ff5
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
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
stephan [Fri, 27 Sep 2024 16:20:03 +0000 (16:20 +0000)]
dan [Fri, 27 Sep 2024 11:35:22 +0000 (11:35 +0000)]
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
drh [Thu, 26 Sep 2024 22:25:13 +0000 (22:25 +0000)]
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
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
stephan [Thu, 26 Sep 2024 18:13:10 +0000 (18:13 +0000)]
Resolve a harmless compiler warning in QNX builds.
FossilOrigin-Name:
2916460179c6089375188c6e4e3cff1fca5bbbbb7280a10c919e09e75d1f11f8
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
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
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
drh [Wed, 25 Sep 2024 16:11:27 +0000 (16:11 +0000)]
Always show HTML table headers in ".www" output mode.
FossilOrigin-Name:
660ca5ce6600d897cc2b00b9d39e5d993c1c0e71ec0d5dc706246c053a163281
drh [Wed, 25 Sep 2024 15:55:52 +0000 (15:55 +0000)]
Add the --plain option to the ".www" dot-command.
FossilOrigin-Name:
a9209519f612e66cfe11c89e70efd8285a0185ac0d3e5795846aafbd05d7a21f
drh [Wed, 25 Sep 2024 15:26:37 +0000 (15:26 +0000)]
Have the zipfile and fileio extensions use sqlite3_stdio.c when it is
available - such as when those extensions are preloaded into the CLI.
FossilOrigin-Name:
74bbb2b2b4507d9acbd91209a2ce341968e9ff64f3aebe9e817bfe488d39ae03
drh [Wed, 25 Sep 2024 14:09:47 +0000 (14:09 +0000)]
Redirect timer output just like any other text.
FossilOrigin-Name:
3b5ae21074958788b23ccf449e52fbbad1f81779e07a6ca62ad8395f88a37286
drh [Wed, 25 Sep 2024 13:56:05 +0000 (13:56 +0000)]
Improvements to ".www" and ".output -w" so that text that is not part of
query output is shown using <pre>.
FossilOrigin-Name:
f8ef65c52305b2180ec56760f5762ac5638584cd504c79d57e86f61736901aa4
drh [Wed, 25 Sep 2024 13:29:03 +0000 (13:29 +0000)]
Add the "www" output mode that include <table> in the HTML output.
Add the ".www" command and the "-w" option to ".once".
FossilOrigin-Name:
b06fd9e6bcce09f12c994dc34f329a8d267ea0601bb07c9b00903c5017d55d42
drh [Wed, 25 Sep 2024 12:56:44 +0000 (12:56 +0000)]
Always include a UTF-8 BOM at the beginning of the output CSV when using
the ".excel" command on Windows, as the actual Excel program requires the
BOM in order to work correctly.
FossilOrigin-Name:
04727fc00207325a76a5d5f20549c00232810ac727dedb70bc9e8112e60b3f56
dan [Wed, 25 Sep 2024 12:03:08 +0000 (12:03 +0000)]
Prevent regular DELETE and UPDATE statements from running against contentless_unindexed=1 tables that are not also contentless_delete=1.
FossilOrigin-Name:
21539e9d0d57fdc762affbce9220d1bb1ca009d9dc751b4ccfe63eecbbe2f575
drh [Wed, 25 Sep 2024 11:38:00 +0000 (11:38 +0000)]
drh [Wed, 25 Sep 2024 11:27:59 +0000 (11:27 +0000)]
Use sqlite3_fgets() instead of fgetc() to end the startup debugging pause
in the CLI.
FossilOrigin-Name:
869b3c05e852a797b5801a81d30a1f7955c31afad0274327f7af2284b555f23a
drh [Wed, 25 Sep 2024 09:43:05 +0000 (09:43 +0000)]
Merge trunk enhancements, and especially the zero- and double-width character
processing for columnar outputs into the cli-stdlib branch.
FossilOrigin-Name:
d6262a4bcd7b0334b23ae4d194ca2bce7c6554ee6c678666b24c830e4c14a467
drh [Wed, 25 Sep 2024 09:39:11 +0000 (09:39 +0000)]
In the CLI, for columnar output formats, try to account for the presence of
zero-width and double-width characters in the output and adjust column widths
accordingly.
FossilOrigin-Name:
9592b9ba3ad7a842cdd4c4010da278485a6fdec7e811bda01ebe640162a8c3b6
drh [Wed, 25 Sep 2024 09:33:14 +0000 (09:33 +0000)]
Improvements to comments on data structures and subroutines.
FossilOrigin-Name:
b217e3004b58af0e777726bdd652b999ad41815261299ef4ce8f8d2f6b0afe8d
stephan [Tue, 24 Sep 2024 21:54:37 +0000 (21:54 +0000)]
Minor wasmfs speedtest1 build tweaks. Disable one wasmfs demo which was broken by Emscripten-side changes.
FossilOrigin-Name:
5ccc85d8f5809d961602dff557dca1ed34f5db61203912387272034e4da02614
drh [Tue, 24 Sep 2024 19:47:12 +0000 (19:47 +0000)]
Fix over-length lines in the shell source code.
FossilOrigin-Name:
f3fdf76a0d3abeb5202f2b6f26318815396da7df680073955bde60b13f84e797
drh [Tue, 24 Sep 2024 19:19:53 +0000 (19:19 +0000)]
drh [Tue, 24 Sep 2024 18:01:50 +0000 (18:01 +0000)]
drh [Tue, 24 Sep 2024 17:49:06 +0000 (17:49 +0000)]
Port sqlite3_analyzer.exe to use sqlite3_stdio.
FossilOrigin-Name:
7c1c1226d803dbaf8e75085b1cc2aad88aef4c3168288e587c8c736633d09054
drh [Tue, 24 Sep 2024 17:40:54 +0000 (17:40 +0000)]
drh [Tue, 24 Sep 2024 16:09:50 +0000 (16:09 +0000)]
Get output redirection working again in the CLI.
FossilOrigin-Name:
086034c3508d95e4f620c5e0580fae770e85410b0c8bd94f600fc0fd25088947
dan [Tue, 24 Sep 2024 15:11:34 +0000 (15:11 +0000)]
Fix a memory leak in sqlite3expert.c introduced by [
f1d76c86 ].
FossilOrigin-Name:
42bb941584a1ac922ee6b0b6ecadce71c9259555563cf49913a6f820f3f9b887
drh [Tue, 24 Sep 2024 13:46:32 +0000 (13:46 +0000)]
Add the sqlite3_stdio.h library for Windows console I/O.
FossilOrigin-Name:
fcd0ecffc9889f8c855ea340f075ec42cdca482df82d6e67dc9c32613e8d5846
stephan [Tue, 24 Sep 2024 13:00:21 +0000 (13:00 +0000)]
stephan [Tue, 24 Sep 2024 12:16:05 +0000 (12:16 +0000)]
Wasm build cleanups. Fix the wasm speedtest1 builds broken by yesterday's refactoring.
FossilOrigin-Name:
5d4a090230d1d7609e70b9c28d662dc8b0f8dd4d70a254f3ce6e449c68a25897
dan [Tue, 24 Sep 2024 11:26:21 +0000 (11:26 +0000)]
Avoid an error in sqlite3expert if the database has existing indexes on expressions.
FossilOrigin-Name:
f1d76c8636866424fe0b57d8814b8bb1a0ed4e2ca1b75d8e308d4b962ad8dc3b
drh [Tue, 24 Sep 2024 10:30:07 +0000 (10:30 +0000)]
Use _wfopen() instead of fopen() on Windows in the CLI.
FossilOrigin-Name:
21a8cac5e9a0d5ead29ca1114be7520d182348f7e2e2e2416852b827d7e09f21
drh [Tue, 24 Sep 2024 09:51:53 +0000 (09:51 +0000)]
Always use fputws() for output to a Windows command-line prompt.
FossilOrigin-Name:
33950a8c3f3e48e5107fe56647da05147aa84f9c3eccbe7c8671f5b502ebb70b
drh [Tue, 24 Sep 2024 00:53:27 +0000 (00:53 +0000)]
Remove an ALWAYS() that can sometimes be false, with wildly incorrect SQL
inputs. dbsqlfuzz
707afcf73930de2624cdeca0ad1f0deea982dfea
FossilOrigin-Name:
766cf5535b9f51decd88c1736b988def929a90f68eb6a52bcaa21bb321586a08
stephan [Tue, 24 Sep 2024 00:31:08 +0000 (00:31 +0000)]
Further wasm build cleanups and tweaks. No functional changes.
FossilOrigin-Name:
3b72a143431537ec275aefae739e56330c1d445c9ea80885882a2b9aa2201179
drh [Tue, 24 Sep 2024 00:01:47 +0000 (00:01 +0000)]
In the CLI, when displaying results in a columnar format, take into account
zero-width and double-width Unicode characters.
FossilOrigin-Name:
47cfad71eddc6fc4414ff853ee172da72527620eee743721806072c6e0a80caa
stephan [Mon, 23 Sep 2024 22:56:54 +0000 (22:56 +0000)]
stephan [Mon, 23 Sep 2024 21:22:09 +0000 (21:22 +0000)]
wasm: replace much of the eval makefile spaghetti with equivalent code generated from a small C app. It turns out that's easier to read and write than doing the same thing from shell or tcl code, due entirely to C's lack of need for escaping dollar signs.
FossilOrigin-Name:
5440de48903e94f91090e2df65702ec0c504e33dd5cbd50f684cf30988f20b02
drh [Mon, 23 Sep 2024 20:23:43 +0000 (20:23 +0000)]
CLI uses only lib-c for I/O on Windows. No calls to Win32. Works on Win11,
at least. Reads and writes unicode to/from the console and UTF-8 to/from files.
Prototype code only - must testing and additional work required.
FossilOrigin-Name:
5c54530d5a0a4125a1ba44f22537c4f63d5e5708f347c43cbac3e1832c4335da
dan [Mon, 23 Sep 2024 19:32:06 +0000 (19:32 +0000)]
Fix a couple of problems with the sessions streaming interfaces.
FossilOrigin-Name:
9a1fc8d36b5b262f9d17a4743b4b9bb54510cf257d2d9778ebc42d5224856b1e
stephan [Mon, 23 Sep 2024 17:06:06 +0000 (17:06 +0000)]