]> granicus.if.org Git - postgresql/commit
Clean up handling of unknown-type inputs in json_build_object and friends.
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 9 Aug 2014 21:31:13 +0000 (17:31 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 9 Aug 2014 21:31:13 +0000 (17:31 -0400)
commit92f57c9ae95668636bc77d3cda3edbdfd83320d9
tree7452851804daebbd8ce20ff81a8bf018aed42ae6
parent495cadda5ed55f63db9a91d174b6fad0e1816204
Clean up handling of unknown-type inputs in json_build_object and friends.

There's actually no need for any special case for unknown-type literals,
since we only need to push the value through its output function and
unknownout() works fine.  The code that was here was completely bizarre
anyway, and would fail outright in cases that should work, not to mention
suffering from some copy-and-paste bugs.
src/backend/utils/adt/json.c