Fix backpatching error in commit 55c88079
This commit is contained in:
parent
55c8807978
commit
9e05f3b97e
@ -1363,7 +1363,7 @@ datum_to_json(Datum val, bool is_null, StringInfo result,
|
||||
* Don't call escape_json for a non-key if it's a valid JSON
|
||||
* number.
|
||||
*/
|
||||
if (!key_scalar && IsValidJsonNumber(outputstr, strlen(outputstr)))
|
||||
if (IsValidJsonNumber(outputstr, strlen(outputstr)))
|
||||
appendStringInfoString(result, outputstr);
|
||||
else
|
||||
escape_json(result, outputstr);
|
||||
|
Loading…
x
Reference in New Issue
Block a user