From: Oliver Siegmar <o.siegmar@vitrado.de>
To: Kris Jurka <books@ejurka.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Interval support for Postgres
Date: Thu, 21 Apr 2005 22:02:32 +0200
Message-ID: <200504212202.32460.o.siegmar@vitrado.de> (raw)
In-Reply-To: <Pine.BSO.4.56.0504211440270.4065@leary.csoft.net>
References: <200504211107.01028.o.siegmar@vitrado.de>
<200504212137.23827.o.siegmar@vitrado.de>
<Pine.BSO.4.56.0504211440270.4065@leary.csoft.net>
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
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: o.siegmar@vitrado.de, books@ejurka.com
Subject: Re: Interval support for Postgres
In-Reply-To: <200504212202.32460.o.siegmar@vitrado.de>
References: <200504211107.01028.o.siegmar@vitrado.de> <200504212137.23827.o.siegmar@vitrado.de> <Pine.BSO.4.56.0504211440270.4065@leary.csoft.net> <200504212202.32460.o.siegmar@vitrado.de>
* 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