Skip to content

Commit 9e05f3b

Browse files
committed
Fix backpatching error in commit 55c8807
1 parent 55c8807 commit 9e05f3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/utils/adt/json.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1363,7 +1363,7 @@ datum_to_json(Datum val, bool is_null, StringInfo result,
13631363
* Don't call escape_json for a non-key if it's a valid JSON
13641364
* number.
13651365
*/
1366-
if (!key_scalar && IsValidJsonNumber(outputstr, strlen(outputstr)))
1366+
if (IsValidJsonNumber(outputstr, strlen(outputstr)))
13671367
appendStringInfoString(result, outputstr);
13681368
else
13691369
escape_json(result, outputstr);

0 commit comments

Comments
 (0)