mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
Fix backpatching error in commit 55c88079
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user