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 8E6D33A2190 for ; Tue, 18 Jan 2005 07:12:35 +0000 (GMT) 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 56936-08 for ; Tue, 18 Jan 2005 07:12:24 +0000 (GMT) Received: from mx.vitrado.de (mx.vitrado.de [194.97.5.172]) by svr1.postgresql.org (Postfix) with ESMTP id 4AA9E3A414A for ; Tue, 18 Jan 2005 07:12:24 +0000 (GMT) Received: from morpheus.vitrado.de ([194.97.5.114] helo=vitrado-011.intranet.de) by mx.vitrado.de with asmtp (Exim 4.34 and XAMS pre-0.0.16) id 1CqnXJ-0007fW-Q6; Tue, 18 Jan 2005 08:12:22 +0100 From: Oliver Siegmar Organization: Vitrado GmbH To: Kris Jurka Subject: Re: Problems with infinity Date: Tue, 18 Jan 2005 08:12:20 +0100 User-Agent: KMail/1.7.1 Cc: pgsql-jdbc@postgresql.org References: <200501131419.00993.o.siegmar@vitrado.de> <200501171408.32936.o.siegmar@vitrado.de> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200501180812.20571.o.siegmar@vitrado.de> X-VITRADO-MailScanner: Not scanned X-MailScanner-From: o.siegmar@vitrado.de X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.05 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200501/173 X-Sequence-Number: 12053 On Tuesday 18 January 2005 01:50, Kris Jurka wrote: > The counter argument is that eventually the todo item will be done and > that the supposed "cleanliness" is just an illusion because no other > database is going to allow you store a timestamp of Long.MAX_VALUE so > there is already an implicit assumption of using pg, why not make it > explicit? I did some research to find other databases / jdbc drivers that are able to set infinity values for timestamps. Unfortunately I haven't found one. Oracle seems to support infinity values but I couldn't find any driver implementation details. Does someone here has kwnoledge about different jdbc implementations and their infinity usage? The current infinity implementation in pgjdbc is a hack, because you have to set/get magic values that represents '-infinity' and 'infinity', but it is imho the best way to do until there might be an NEGATIVE_INFINITY and POSITIVE_INFINTIY for java.util.Date like the one for java.lang.Double. Oliver