]> granicus.if.org Git - postgresql/commit
Allow empty string object keys in json_object().
authorAndrew Dunstan <andrew@dunslane.net>
Tue, 22 Jul 2014 15:22:47 +0000 (11:22 -0400)
committerAndrew Dunstan <andrew@dunslane.net>
Tue, 22 Jul 2014 15:27:31 +0000 (11:27 -0400)
commit4ebe3519e1c12fe02f734aa00f824833181840c7
tree7ad188490974888365b2f00b5535ed3006d8b4fd
parentd7cdf6ee36adeac9233678fb8f2a112e6678a770
Allow empty string object keys in json_object().

This makes the behaviour consistent with the json parser, other
json-generating functions, and the JSON standards.
src/backend/utils/adt/json.c
src/test/regress/expected/json.out
src/test/regress/expected/json_1.out
src/test/regress/sql/json.sql