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
Views: Raw Message | Whole Thread | Download mbox | Resend email
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

Browse pgsql-hackers by date

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