Fix backpatching error in commit 55c88079

This commit is contained in:
Andrew Dunstan 2014-12-01 12:48:35 -05:00
parent 55c8807978
commit 9e05f3b97e

View File

@ -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);