pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: yoonghm@gmail.com
To: pgsql-bugs@postgresql.org
Subject: BUG #12578: row_to_json() and to_json() add 'T' in timestamp field.
Date: Sat, 17 Jan 2015 09:55:00 +0000
Message-ID: <20150117095500.1983.35606@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

The following bug has been logged on the website:

Bug reference:      12578
Logged by:          Yoong Hor Meng
Email address:      yoonghm@gmail.com
PostgreSQL version: 9.4.0
Operating system:   Linux Ubuntu
Description:        

I built the binary manually instead of apt-get instal

row_to_json and to_json replace the space between date and time.

However a post in
http://www.postgresql.org/message-id/CACfv+pLDzZji5C3iS=arBmq074Yi3Ez-+g8pzYF+Qr0dwU=cnQ@mail.gmail....

shows that other wanted 'T' separater in the date-time string.

To simulate the problem with to_json():

postgres=# select to_json(now());
              to_json              
-----------------------------------
 "2015-01-17T17:35:19.47211+08:00"
(1 row)

postgres=# select row_to_json(row(now()));
row_to_json
{"f1":"2015-01-17T17:52:57.387618+08:00"}
(1 row)




-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (4+ messages)  latest in thread

Message-ID: <20150117095500.1983.35606@wrigleys.postgresql.org>
Permalink:  ../20150117095500.1983.35606@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/20150117095500.1983.35606@wrigleys.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: yoonghm@gmail.com
  Subject: Re: BUG #12578: row_to_json() and to_json() add 'T' in timestamp field.
  In-Reply-To: <20150117095500.1983.35606@wrigleys.postgresql.org>
  References: <20150117095500.1983.35606@wrigleys.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox