diff options
author | drh <> | 2023-07-25 15:43:01 +0000 |
---|---|---|
committer | drh <> | 2023-07-25 15:43:01 +0000 |
commit | 4bca1248455c6b8c4c79ac953461f4726429ed02 (patch) | |
tree | 5ea1408c5906d8beb943358d4a1a81c6b5d6ce6b /src/json.c | |
parent | f02cc9a3248b07095847f9a5e93e092e4fa6e116 (diff) | |
download | sqlite-4bca1248455c6b8c4c79ac953461f4726429ed02.tar.gz sqlite-4bca1248455c6b8c4c79ac953461f4726429ed02.zip |
Fix a minor problem with error reporting in JSON.
FossilOrigin-Name: c456e4a8999066cd96246327101b3cca78294511a71a2ac07939bb702bfcb5f4
Diffstat (limited to 'src/json.c')
-rw-r--r-- | src/json.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/json.c b/src/json.c index 3bfa0c748..18c472145 100644 --- a/src/json.c +++ b/src/json.c @@ -530,7 +530,7 @@ static void jsonResult(JsonString *p){ (void(*)(void*))sqlite3RCStrUnref, SQLITE_UTF8); } - }else{ + }else if( p->bErr==1 ){ sqlite3_result_error_nomem(p->pCtx); } jsonReset(p); |