Re: timestamp with time zone wire format

From: Vladimir Sitnikov <sitnikov(dot)vladimir(at)gmail(dot)com>
To: pm(at)netcetera(dot)ch
Cc: List <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: timestamp with time zone wire format
Date: 2015-12-14 13:43:33
Message-ID: CAB=Je-FY5i3wECa9afZgJDczfggCT7p-o2t5mQyPrp0w81XK2Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

> I can write parse code

Parse code for timestampTZ is probably there. The missing part is
conversion from-to JSR-310.

> 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.
It will enable pre-processor, so it would be possible to seamlessly
integrate java.time right into `statement.getObject` without failing
the build for older java versions.

Here's an example:
https://github.com/vlsi/pgjdbc/blob/2236505772e8d36640929b8a75fa3857f0bfbb94/core/src/main/java/org/postgresql/jdbc/PgResultSet.java#L3471-L3491

Vladimir

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Vladimir Sitnikov 2015-12-14 13:52:42 Re: [GENERAL] plpgsql function with RETURNS SETOF refcursor in JAVA
Previous Message Corradini, Carlos 2015-12-14 13:36:48 Re: [GENERAL] plpgsql function with RETURNS SETOF refcursor in JAVA