row_to_json() Bug - Mailing list pgsql-hackers

From David E. Wheeler
Subject row_to_json() Bug
Date
Msg-id 1B70BD5A-B70A-471B-8AF5-371FFE2647D3@justatheory.com
Whole thread Raw
Responses Re: row_to_json() Bug  (Andrew Dunstan <andrew@dunslane.net>)
List pgsql-hackers
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)

Best,

David



pgsql-hackers by date:

Previous
From: Harold Giménez
Date:
Subject: Reviewing patch "URI connection string support for libpq"
Next
From: Andrew Dunstan
Date:
Subject: Re: row_to_json() Bug