From: Kris Jurka <books@ejurka.com>
To: Adam Mackler <psql-jdbc@mackler.org>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Does PGInterval class handle iso_8601 intervalstyle?
Date: Fri, 27 Mar 2015 10:59:02 -0400 (EDT)
Message-ID: <alpine.BSO.2.03.1503271051340.13625@ejurka.com> (raw)
In-Reply-To: <20150326231231.GG42707@scruffle.mackler.org>
References: <20150326231231.GG42707@scruffle.mackler.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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
--
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc
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: books@ejurka.com, psql-jdbc@mackler.org
Subject: Re: Does PGInterval class handle iso_8601 intervalstyle?
In-Reply-To: <alpine.BSO.2.03.1503271051340.13625@ejurka.com>
References: <20150326231231.GG42707@scruffle.mackler.org> <alpine.BSO.2.03.1503271051340.13625@ejurka.com>
* 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