]> 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:25:40 +0000 (11:25 -0400)
commita61f63df7d19006b36adf7ee402999aa5243097d
tree95288389fe7cbf098221fa44c3e3cc15b11e5fa4
parentfd18965e33da9dc7326803e61cf28d82237e3bba
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