Re: Does PGInterval class handle iso_8601 intervalstyle?

From: Kris Jurka <books(at)ejurka(dot)com>
To: Adam Mackler <psql-jdbc(at)mackler(dot)org>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Does PGInterval class handle iso_8601 intervalstyle?
Date: 2015-03-27 14:59:02
Message-ID: alpine.BSO.2.03.1503271051340.13625@ejurka.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

On Thu, 26 Mar 2015, Adam Mackler wrote:

> Is is possible to use the PGInterval class to parse interval literals
> in the format that a server with intervalstyle set to iso_8601
> produces? If so, how? If not, why not, and why is no exception
> raised when trying to do so?
>

No it's not currently possible. The PGInterval class was written prior to
the intervalstyle parameter being added in 8.4 and was never updated to
account for intervals in 8601 format.

Kris Jurka

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Dave Cramer 2015-03-28 18:01:47 Re: Resurrected thread: Speed improvement - Group batch Insert - Rewrite the INSERT at the driver level (using a parameter)
Previous Message Jeremy Whiting 2015-03-27 11:26:05 Re: Multi insert statement and getUpdateCount().