pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Donald Fraser <postgres@kiwi-fraser.net>
To: [pgsql-jdbc] <pgsql-jdbc@postgresql.org>
Subject: Infinity and beyond
Date: Thu, 5 May 2005 10:07:01 +0100
Message-ID: <008001c55151$ccc99150$0264a8c0@demolish1> (raw)

A while back I noted in this thread that some people were having issues with timestamps and infinity.
I have been using a modified version of the 7.4 driver for some time now and have had no real issues with these modifications. The modifications that I made involve adding two additional classes to the driver package. They are simple classes that extend java.sql.Date and java.sql.Timestamp. In my opinion this solution is much more elegant than relying on some magic number used in the underlying java.util.Date class.
The main beauty of these modification are that you do not need to rely any PostgreSQL driver specifics to detect values of infinity, and on a similar note the driver doesn't have to rely on its own implementations of infinity, it can handle third party implementations.
If anyone is interested in these modification I will post them on this thread, just ask.
Cheers
Donald Fraser.

view thread (6+ messages)  latest in thread

Message-ID: <008001c55151$ccc99150$0264a8c0@demolish1>
Permalink:  ../008001c55151$ccc99150$0264a8c0@demolish1/
Also on:    postgresql.org/message-id/008001c55151$ccc99150$0264a8c0@demolish1

 · 

reply

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: postgres@kiwi-fraser.net
  Subject: Re: Infinity and beyond
  In-Reply-To: <008001c55151$ccc99150$0264a8c0@demolish1>
  References: <008001c55151$ccc99150$0264a8c0@demolish1>

* 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