From: drh <> Date: Sat, 22 Nov 2025 21:47:48 +0000 (+0000) Subject: Add the --no-limits option to the .mode command in the CLI. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=eeb38d3665f89eefa77b36ada6f1476a3da3ae0e;p=thirdparty%2Fsqlite.git Add the --no-limits option to the .mode command in the CLI. FossilOrigin-Name: 3cee168e8801481f6d909fb5d20a773b9c6ca0b8daedfc301c9d762a17f9d839 --- diff --git a/manifest b/manifest index 5d9e5bfcaa..5d4bc27f48 100644 --- a/manifest +++ b/manifest @@ -1,5 +1,5 @@ -C In\sQRF,\schange\sthe\sname\sof\sthe\sbWrapSnglCol\sflag\sto\sbSplitColumn.\nSimilar\schanges\sto\sthe\sTCL\sinterface. -D 2025-11-22T21:34:33.872 +C Add\sthe\s--no-limits\soption\sto\sthe\s.mode\scommand\sin\sthe\sCLI. +D 2025-11-22T21:47:48.856 F .fossil-settings/binary-glob 61195414528fb3ea9693577e1980230d78a1f8b0a54c78cf1b9b24d0a409ed6a x F .fossil-settings/empty-dirs dbb81e8fc0401ac46a1491ab34a7f2c7c0452f2f06b54ebb845d024ca8283ef1 F .fossil-settings/ignore-glob 35175cdfcf539b2318cb04a9901442804be81cd677d8b889fcc9149c21f239ea @@ -735,7 +735,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 49dde03ed4d62877d1f53317122a7d153a8227c47bad499c361d55c5f2092ac0 +F src/shell.c.in bbd55e63e9ae9f33e96a9511dc21a4be3f9be3b1fb7a492bdd1c725258a69682 F src/sqlite.h.in f1363321ca55cc2feaa289e9fe6dfb08102a28c54edf005564711a2348b06eef F src/sqlite3.rc 015537e6ac1eec6c7050e17b616c2ffe6f70fca241835a84a4f0d5937383c479 F src/sqlite3ext.h 5d5330f5f8461f5ce74960436ddcfa53ecd09c2b8b23901e22ae38aec3243998 @@ -2178,8 +2178,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 e86e5723d778721b10c1c908545c56233d4d5549a7ca3b7cf8ca649c70450add -R c278c68620939f77d4c5109a74d315c3 +P 76512b3b80fdcaae22340cde0b69857e2a4d7e86a63c6759465bd8a0bcbf82bc +R fd59072a32f0d4099969082466a9a77e U drh -Z 8f5356e6748187a83683b995483e2110 +Z 8f5059e4a9fa8586168b58aff36d75e6 # Remove this line to create a well-formed Fossil manifest. diff --git a/manifest.uuid b/manifest.uuid index 3134b65b77..0a8421cd6c 100644 --- a/manifest.uuid +++ b/manifest.uuid @@ -1 +1 @@ -76512b3b80fdcaae22340cde0b69857e2a4d7e86a63c6759465bd8a0bcbf82bc +3cee168e8801481f6d909fb5d20a773b9c6ca0b8daedfc301c9d762a17f9d839 diff --git a/src/shell.c.in b/src/shell.c.in index 043629b4de..7d4bb269cd 100644 --- a/src/shell.c.in +++ b/src/shell.c.in @@ -7667,6 +7667,8 @@ static int modeTitleDsply(ShellState *p, int bAll){ ** truncated. Zero means "no limit". Only works ** in "line" mode and in columnar modes. ** --list List available modes +** --no-limits Shorthand to turn off --linelimit, --charlimit, +** and --screenwidth. ** --null STRING Render SQL NULL values as the given string ** --once Setting changes to the right are reverted after ** the next SQL command. @@ -7812,6 +7814,21 @@ static int dotCmdMode(ShellState *p){ cli_printf(p->out, " %s", p->aSavedModes[ii].zTag); } cli_puts(" batch tty\n", p->out); + }else if( optionMatch(z,"once") ){ + p->nPopMode = 0; + modePush(p); + p->nPopMode = 1; + }else if( optionMatch(z,"noquote") ){ + /* (undocumented legacy) --noquote always turns quoting off */ + p->mode.spec.eText = QRF_TEXT_Plain; + p->mode.spec.eBlob = QRF_BLOB_Text; + chng = 1; + }else if( optionMatch(z,"no-limits") ){ + p->mode.spec.nLineLimit = 0; + p->mode.spec.nCharLimit = 0; + p->mode.spec.nScreenWidth = 0; + p->mode.bAutoScreenWidth = 0; + chng = 1; }else if( optionMatch(z,"quote") ){ if( i+1nPopMode = 0; - modePush(p); - p->nPopMode = 1; - }else if( optionMatch(z,"noquote") ){ - /* (undocumented legacy) --noquote always turns quoting off */ - p->mode.spec.eText = QRF_TEXT_Plain; - p->mode.spec.eBlob = QRF_BLOB_Text; - chng = 1; }else if( optionMatch(z,"reset") ){ int saved_eMode = p->mode.eMode; modeFree(&p->mode);