X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 02C0B52A37 for ; Thu, 5 May 2005 06:21:13 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 22322-02 for ; Thu, 5 May 2005 09:21:08 +0000 (GMT) Received: from mail63.csoft.net (leary3.csoft.net [63.111.22.74]) by svr1.postgresql.org (Postfix) with SMTP id F41BB53672 for ; Thu, 5 May 2005 06:21:07 -0300 (ADT) Received: (qmail 12352 invoked by uid 1112); 5 May 2005 09:21:09 -0000 Date: Thu, 5 May 2005 04:21:09 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: Donald Fraser Cc: "[pgsql-jdbc]" Subject: Re: Infinity and beyond In-Reply-To: <008001c55151$ccc99150$0264a8c0@demolish1> Message-ID: References: <008001c55151$ccc99150$0264a8c0@demolish1> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.011 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200505/23 X-Sequence-Number: 12854 On Thu, 5 May 2005, Donald Fraser wrote: > 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. How can clients not have any reliance on pg driver specifics? If these new classes are added to the driver, won't that just move the dependence from PGStatement to PGTimestamp? Have you seen what the 8.0+ driver does for infinity or are you only familiar with 7.4's handling? In any case, I'm interested to see what you have done. Kris Jurka