aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/numeric.c
diff options
context:
space:
mode:
authorAndrew Dunstan <andrew@dunslane.net>2014-12-01 11:28:45 -0500
committerAndrew Dunstan <andrew@dunslane.net>2014-12-01 11:28:45 -0500
commite09996ff8dee3f70b0a027cffebccef4388ed5b7 (patch)
tree0ce2c82f697591a5114bc41b8029e3825d402791 /src/backend/utils/adt/numeric.c
parent4e86f1b16da85ba0a99c592dc7b977b3be80a483 (diff)
downloadpostgresql-e09996ff8dee3f70b0a027cffebccef4388ed5b7.tar.gz
postgresql-e09996ff8dee3f70b0a027cffebccef4388ed5b7.zip
Fix hstore_to_json_loose's detection of valid JSON number values.
We expose a function IsValidJsonNumber that internally calls the lexer for json numbers. That allows us to use the same test everywhere, instead of inventing a broken test for hstore conversions. The new function is also used in datum_to_json, replacing the code that is now moved to the new function. Backpatch to 9.3 where hstore_to_json_loose was introduced.
Diffstat (limited to 'src/backend/utils/adt/numeric.c')
0 files changed, 0 insertions, 0 deletions