Re: Interval support for Postgres

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема Re: Interval support for Postgres
Дата
Msg-id Pine.BSO.4.56.0504211440270.4065@leary.csoft.net
обсуждение исходный текст
Ответ на Re: Interval support for Postgres  (Oliver Siegmar <o.siegmar@vitrado.de>)
Ответы Re: Interval support for Postgres  (Oliver Siegmar <o.siegmar@vitrado.de>)
Список 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

В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Oliver Siegmar
Дата:
Сообщение: Re: Interval support for Postgres
Следующее
От: Oliver Siegmar
Дата:
Сообщение: Re: Interval support for Postgres