Re: Interval support for Postgres

From: Kris Jurka <books(at)ejurka(dot)com>
To: Oliver Siegmar <o(dot)siegmar(at)vitrado(dot)de>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Interval support for Postgres
Date: 2005-04-21 19:43:16
Message-ID: Pine.BSO.4.56.0504211440270.4065@leary.csoft.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

On Thu, 21 Apr 2005, Oliver Siegmar wrote:

> On Thursday 21 April 2005 20:32, Kris Jurka wrote:
> > On Thu, 21 Apr 2005, Oliver Siegmar wrote:
> > > here's a patch that adds functionality to the PGInterval class. I'd be
> > > happy to see this in upstream.
> >
> > You cannot use regex code in this class because it must compile with 1.2
> > and 1.3 JDKs.
>
> Can it be placed in the JDBC3 package, then? This requires JDK 1.4 anyway,
> right?
>

It could, but I'd be against it. Having a different PGInterval behavior
for JDBC2 and JDBC3 builds would be rather odd. While regex may be
convenient here it certainly isn't essential. If you want to get this in
I'd recommend rewriting to do the parsing manually.

Kris Jurka

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Oliver Siegmar 2005-04-21 20:02:32 Re: Interval support for Postgres
Previous Message Oliver Siegmar 2005-04-21 19:37:23 Re: Interval support for Postgres