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 A29555639D for ; Thu, 5 May 2005 06:07:52 -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 18169-10 for ; Thu, 5 May 2005 09:07:48 +0000 (GMT) Received: from smtp.nildram.co.uk (smtp.nildram.co.uk [195.112.4.54]) by svr1.postgresql.org (Postfix) with ESMTP id 04075563A7 for ; Thu, 5 May 2005 06:07:45 -0300 (ADT) Received: from demolish1 (82-133-112-14.dyn.gotadsl.co.uk [82.133.112.14]) by smtp.nildram.co.uk (Postfix) with SMTP id 1699E260289 for ; Thu, 5 May 2005 10:07:00 +0100 (BST) Message-ID: <008001c55151$ccc99150$0264a8c0@demolish1> From: "Donald Fraser" To: "[pgsql-jdbc]" Subject: Infinity and beyond Date: Thu, 5 May 2005 10:07:01 +0100 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_007D_01C5515A.2E204360" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.072 tagged_above=0 required=5 tests=AWL, HTML_30_40, HTML_MESSAGE X-Spam-Level: X-Archive-Number: 200505/22 X-Sequence-Number: 12853 This is a multi-part message in MIME format. ------=_NextPart_000_007D_01C5515A.2E204360 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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. ------=_NextPart_000_007D_01C5515A.2E204360 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
A while back I noted in this thread = that some=20 people were having issues with timestamps and infinity.
I have been using a modified version of = the 7.4=20 driver for some time now and have had no real issues with these = modifications.=20 The modifications that I made involve adding two additional classes to = the=20 driver package. They are simple classes that extend java.sql.Date and=20 java.sql.Timestamp. In my opinion this solution is much more elegant = than=20 relying on some magic number used in the underlying=20 java.util.Date class.
The main beauty of these modification = are that you=20 do not need to rely any PostgreSQL driver specifics to detect = values of=20 infinity, and on a similar note the driver doesn't have to rely on = its own=20 implementations of infinity, it can handle third party=20 implementations.
If anyone is interested in these = modification I=20 will post them on this thread, just ask.
Cheers
Donald = Fraser.
------=_NextPart_000_007D_01C5515A.2E204360--