summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <>2026-11-22 10:10:48 +0000
committerdrh <>2026-11-22 10:10:48 +0000
commit67d976a007c80251ba0df7ff22fb85e6964c8314 (patch)
tree810ac2ad1e598f2b1949bf2768bf1cb0f7b92918 /src
parent9e7e99e39356aabd9148a102a11bf1573691d2c1 (diff)
downloadsqlite-master.tar.gz
sqlite-master.zip
Improvements to "json" mode in QRF.HEADlocal/sqlitemaster
[bugs:/info/2026-11-22T07:30:35Z|Bug 2026-11-22T07:30:35Z] FossilOrigin-Name: ac22af8bd58cb1f6190438cae90f607fe10b96094526b855cafeb84f8855ce05
Diffstat (limited to 'src')
-rw-r--r--src/shell.c.in8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/shell.c.in b/src/shell.c.in
index aab6a445a2..d76114526a 100644
--- a/src/shell.c.in
+++ b/src/shell.c.in
@@ -4188,7 +4188,13 @@ static int shell_exec(
if( pArg->mode.bAutoScreenWidth ){
spec.nScreenWidth = shellScreenWidth();
}
- if( spec.eBlob==QRF_BLOB_Auto ){
+ if( spec.eBlob==QRF_BLOB_Auto
+ && eStyle!=QRF_STYLE_Json
+ && eStyle!=QRF_STYLE_JObject
+ && eStyle!=QRF_STYLE_Insert
+ ){
+ /* The JSON and INSERT styles override eText, so for them the blob
+ ** format is chosen later, within QRF. */
switch( spec.eText ){
case QRF_TEXT_Relaxed: /* fall through */
case QRF_TEXT_Sql: spec.eBlob = QRF_BLOB_Sql; break;