Skip site navigation (1) Skip section navigation (2)

pgsql: Fix a couple of cases of JSON output.

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix a couple of cases of JSON output.
Date: 2012-02-20 20:06:09
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-committers
Fix a couple of cases of JSON output.

First, as noted by Itagaki Takahiro, a datum of type JSON doesn't
need to be escaped. Second, ensure that numeric output not in
the form of a legal JSON number is quoted and escaped.



Modified Files
src/backend/utils/adt/json.c       |   25 +++++++++++++++++++++----
src/test/regress/expected/json.out |   30 ++++++++++++++++++++++++++++++
src/test/regress/sql/json.sql      |   15 +++++++++++++++
3 files changed, 66 insertions(+), 4 deletions(-)

pgsql-committers by date

Next:From: Tom LaneDate: 2012-02-20 21:22:22
Subject: pgsql: Don't reject threaded Python on FreeBSD.
Previous:From: Tom LaneDate: 2012-02-20 05:53:40
Subject: pgsql: Fix regex back-references that are directly quantified with *.

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group