From: stephan Date: Sun, 9 Nov 2025 06:51:32 +0000 (+0000) Subject: CLI shell: ensure that .dump propagates its error code on error. Problem reported... X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=41822949873debbd7623a84fb4f796e5236777de;p=thirdparty%2Fsqlite.git CLI shell: ensure that .dump propagates its error code on error. Problem reported in [forum:a4f3873b0a8503cc|forum post a4f3873b0a]. FossilOrigin-Name: 850b92b6347187d702736bf5a574b9b4a49854a33799875f24fc75c50a6bf908 --- diff --git a/manifest b/manifest index 2c255631d9..5e17a10b7e 100644 --- a/manifest +++ b/manifest @@ -1,5 +1,5 @@ -C In\ssqlite3.wasm.allocFromTypedArray(),\sswap\sthe\sorder\sof\sthe\sallocation\sand\sthe\saccess\sto\sthe\sheap\sview\sobject\sto\swork\saround\san\sobscure\sissue\swhen\sallocating\shuge\sblobs.\sThe\sheap\sview\sobject\scould\spreviously\sbecome\sstale\svia\sthe\sfollowing\sallocation\sif\sthe\sunderlying\sWebAssembly.Memory\sobject\sneeded\sto\sgrow.\sEssentially\sa\srealloc()-moves-the-pointer\ssituation\sbut\sit\sonly\scomes\sup\swith\shuge\sallocations\sunder\sthe\sright\scircumstances\sand\swould\strigger\sa\sJS\sexception\s(as\sopposed\sto\scorrupting\sthe\sWASM\sheap).\sProblem\sreported\sin\s[forum:05b77273be104532|forum\spost\s05b77273be104532]. -D 2025-11-09T06:32:10.051 +C CLI\sshell:\sensure\sthat\s.dump\spropagates\sits\serror\scode\son\serror.\sProblem\sreported\sin\s[forum:a4f3873b0a8503cc|forum\spost\sa4f3873b0a]. +D 2025-11-09T06:51:32.761 F .fossil-settings/binary-glob 61195414528fb3ea9693577e1980230d78a1f8b0a54c78cf1b9b24d0a409ed6a x F .fossil-settings/empty-dirs dbb81e8fc0401ac46a1491ab34a7f2c7c0452f2f06b54ebb845d024ca8283ef1 F .fossil-settings/ignore-glob 35175cdfcf539b2318cb04a9901442804be81cd677d8b889fcc9149c21f239ea @@ -732,7 +732,7 @@ F src/random.c 606b00941a1d7dd09c381d3279a058d771f406c5213c9932bbd93d5587be4b9c F src/resolve.c 5616fbcf3b833c7c705b24371828215ad0925d0c0073216c4f153348d5753f0a F src/rowset.c 8432130e6c344b3401a8874c3cb49fefe6873fec593294de077afea2dce5ec97 F src/select.c ba9cd07ffa3277883c1986085f6ddc4320f4d35d5f212ab58df79a7ecc1a576a -F src/shell.c.in 265015aaec4580a0bef50ff570ec8d2813498ee49dcfdf9757e76f3b2a59fc97 +F src/shell.c.in 223e3703657f5e66c136521a32fc8cc9a7dbbe6b1ade6fd47457e78c38f33e6e F src/sqlite.h.in 43f60117ce68847b9d4e7fa43c2ac42bb324185e66b924d3114b24d4037fc263 F src/sqlite3.rc 015537e6ac1eec6c7050e17b616c2ffe6f70fca241835a84a4f0d5937383c479 F src/sqlite3ext.h 7f236ca1b175ffe03316d974ef57df79b3938466c28d2f95caef5e08c57f3a52 @@ -2167,8 +2167,8 @@ F tool/version-info.c 33d0390ef484b3b1cb685d59362be891ea162123cea181cb8e6d2cf6dd F tool/warnings-clang.sh bbf6a1e685e534c92ec2bfba5b1745f34fb6f0bc2a362850723a9ee87c1b31a7 F tool/warnings.sh d924598cf2f55a4ecbc2aeb055c10bd5f48114793e7ba25f9585435da29e7e98 F tool/win/sqlite.vsix deb315d026cc8400325c5863eef847784a219a2f -P 620434a4a276ecaf2ee56d325815ac4e33c95e1190b420a341e376e54ef60278 -R 53d28760a0461217c0f72e5bc36cfc54 +P 0f712b6b0516dc151d3bcbb63497661c82e11eae368e639bbdf197e1b3467195 +R 044807217965408148f79cfdcd7bca35 U stephan -Z 24490223412a84dd2d1d927424abf9e6 +Z 3d7e3b8f3dad8bd5cd921278664692af # Remove this line to create a well-formed Fossil manifest. diff --git a/manifest.uuid b/manifest.uuid index 14eda329ac..a75b659566 100644 --- a/manifest.uuid +++ b/manifest.uuid @@ -1 +1 @@ -0f712b6b0516dc151d3bcbb63497661c82e11eae368e639bbdf197e1b3467195 +850b92b6347187d702736bf5a574b9b4a49854a33799875f24fc75c50a6bf908 diff --git a/src/shell.c.in b/src/shell.c.in index bd44a32510..23aed0de5d 100644 --- a/src/shell.c.in +++ b/src/shell.c.in @@ -9261,6 +9261,7 @@ static int do_meta_command(char *zLine, ShellState *p){ } p->showHeader = savedShowHeader; p->shellFlgs = savedShellFlags; + rc = p->nErr>0; }else if( c=='e' && cli_strncmp(azArg[0], "echo", n)==0 ){