]> 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:16 +0000 (17:31 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 9 Aug 2014 21:31:16 +0000 (17:31 -0400)
commit2591e623f5fc80a49347fb5e106aa1e03f713429
tree81eb72ca8cbeff09df9def1850d62717aa381301
parent84dd042a51e702a3761250e2ce801b3fb2b879c3
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