pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Philippe Marschall <pm@netcetera.ch>
To: pgsql-jdbc@postgresql.org
Cc: Vladimir Sitnikov <sitnikov.vladimir@gmail.com>
Subject: Re: timestamp with time zone wire format
Date: Tue, 15 Dec 2015 09:01:35 +0100
Message-ID: <566FC8DF.3010705@netcetera.ch> (raw)
In-Reply-To: <CAB=Je-FY5i3wECa9afZgJDczfggCT7p-o2t5mQyPrp0w81XK2Q@mail.gmail.com>
References: <566EC314.7030109@netcetera.ch>
	<CAB=Je-FY5i3wECa9afZgJDczfggCT7p-o2t5mQyPrp0w81XK2Q@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>

On 14.12.15 14:43, Vladimir Sitnikov wrote:
>> I can write parse code
>
> Parse code for timestampTZ is probably there. The missing part is
> conversion from-to JSR-310.

The only thing I could find is TimestampUtils#toTimestampBin [1] there 
the time zone either comes from the caller or the system default, never 
the database. Form reading the docs I get the impression the time zone 
isn't stored so there's nothing to parse.

>> for backwards compatibility with older Java/JDBC versions a dedicated class would probably be better
>
> Things will get much easier after
> https://github.com/pgjdbc/pgjdbc/pull/435 is merged in.

Is there an ETA for this?

  [1] 
https://github.com/pgjdbc/pgjdbc/blob/master/org/postgresql/jdbc2/TimestampUtils.java#L623

Cheers
Philippe



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



view thread (5+ messages)  latest in thread

Message-ID: <566FC8DF.3010705@netcetera.ch>
Permalink:  ../566FC8DF.3010705@netcetera.ch/
Also on:    postgresql.org/message-id/566FC8DF.3010705@netcetera.ch

 · 

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-jdbc@postgresql.org
  Cc: pm@netcetera.ch, sitnikov.vladimir@gmail.com
  Subject: Re: timestamp with time zone wire format
  In-Reply-To: <566FC8DF.3010705@netcetera.ch>
  References: <566EC314.7030109@netcetera.ch> <CAB=Je-FY5i3wECa9afZgJDczfggCT7p-o2t5mQyPrp0w81XK2Q@mail.gmail.com> <566FC8DF.3010705@netcetera.ch>

* 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