aboutsummaryrefslogtreecommitdiff
path: root/src/json.c
diff options
context:
space:
mode:
authordrh <>2023-11-21 18:23:43 +0000
committerdrh <>2023-11-21 18:23:43 +0000
commit664fe310b5749c18fceb7c249f45b2b8cfc7dc21 (patch)
tree0f972d7053189ceecefc4b04fd9973fd878a916d /src/json.c
parente97f295783b79b323159a1c1f5fa7a2d38a2611f (diff)
downloadsqlite-664fe310b5749c18fceb7c249f45b2b8cfc7dc21.tar.gz
sqlite-664fe310b5749c18fceb7c249f45b2b8cfc7dc21.zip
Fix the translation of JSON5 numeric values from BLOB into text.
FossilOrigin-Name: 40c4fb441f220982e4d61fd42597cf18546791a302fbcc8eec2eed29ee15ef35
Diffstat (limited to 'src/json.c')
-rw-r--r--src/json.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/json.c b/src/json.c
index def5e63d3..69950766d 100644
--- a/src/json.c
+++ b/src/json.c
@@ -3375,6 +3375,8 @@ static u32 jsonXlateBlobToText(
if( zIn[0]=='-' ){
jsonAppendChar(pOut, '-');
k++;
+ }else if( zIn[0]=='+' ){
+ k++;
}
for(; k<sz; k++){
if( !sqlite3Isxdigit(zIn[k]) ){