From: | Oliver Siegmar <o(dot)siegmar(at)vitrado(dot)de> |
---|---|
To: | Kris Jurka <books(at)ejurka(dot)com> |
Cc: | pgsql-jdbc(at)postgresql(dot)org |
Subject: | Re: Interval support for Postgres |
Date: | 2005-04-21 20:02:32 |
Message-ID: | 200504212202.32460.o.siegmar@vitrado.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
On Thursday 21 April 2005 21:43, Kris Jurka wrote:
> 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.
Well, actually there is almost no implementation at all. Parsing strings in
Java in 2005 is a royal pain in the ass - doing that for 0.x% users suck even
more.
Let's assume I'd write a JDBC2 version with old-school string parsing - would
you apply it to upstream, or are there any other show stoppers?
Oliver
From | Date | Subject | |
---|---|---|---|
Next Message | Kris Jurka | 2005-04-21 21:00:59 | Re: Interval support for Postgres |
Previous Message | Kris Jurka | 2005-04-21 19:43:16 | Re: Interval support for Postgres |