pgsql: Allow empty string object keys in json_object().

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Allow empty string object keys in json_object().
Date: 2014-07-22 15:27:47
Message-ID: E1X9byl-0006DX-7m@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/4ebe3519e1c12fe02f734aa00f824833181840c7

Modified Files
--------------
src/backend/utils/adt/json.c | 8 --------
src/test/regress/expected/json.out | 8 ++++++--
src/test/regress/expected/json_1.out | 8 ++++++--
src/test/regress/sql/json.sql | 2 +-
4 files changed, 13 insertions(+), 13 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2014-07-22 15:46:45 pgsql: Check block number against the correct fork in get_raw_page().
Previous Message Andrew Dunstan 2014-07-22 15:26:08 pgsql: Allow empty string object keys in json_object().