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

Re: row_to_json() Bug

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: "David E(dot) Wheeler" <david(at)justatheory(dot)com>
Cc: pgsql-hackers Hackers <pgsql-hackers(at)postgreSQL(dot)org>
Subject: Re: row_to_json() Bug
Date: 2012-02-24 02:09:21
Message-ID: 4F46F151.1030303@dunslane.net (view raw or flat)
Thread:
Lists: pgsql-hackers

On 02/23/2012 08:35 PM, David E. Wheeler wrote:
> Looks like row_to_json() thinks 0s are nulls:
>
>      postgres=# select row(0);
>       row
>      -----
>       (0)
>      (1 row)
>
>      postgres=# SELECT row_to_json(row(0));
>       row_to_json
>      -------------
>       {"f1":null}
>      (1 row)
>


Yeah, ouch, will fix.

cheers

andrew

In response to

Responses

pgsql-hackers by date

Next:From: Daniel FarinaDate: 2012-02-24 02:53:05
Subject: Re: Runtime SHAREDIR for testing CREATE EXTENSION
Previous:From: David E. WheelerDate: 2012-02-24 01:35:09
Subject: row_to_json() Bug

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