aboutsummaryrefslogtreecommitdiff
path: root/contrib/postgres_fdw/postgres_fdw.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:44:48 -0500
commit55c8807978e86f615623eb7922c114b841f14557 (patch)
tree12b1947890f2545d8f1b8f509ecfe905612d352b /contrib/postgres_fdw/postgres_fdw.c
parent5c9a4a866efcc15ec041134538e01f25c2e2bd88 (diff)
downloadpostgresql-55c8807978e86f615623eb7922c114b841f14557.tar.gz
postgresql-55c8807978e86f615623eb7922c114b841f14557.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 'contrib/postgres_fdw/postgres_fdw.c')
0 files changed, 0 insertions, 0 deletions