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 202663A4AC8 for ; Thu, 13 Jan 2005 13:19:14 +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 42262-06 for ; Thu, 13 Jan 2005 13:19:01 +0000 (GMT) Received: from mx.vitrado.de (mx.vitrado.de [194.97.5.172]) by svr1.postgresql.org (Postfix) with ESMTP id A39763A449A for ; Thu, 13 Jan 2005 13:19:03 +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 1Cp4sP-0005MS-VJ for pgsql-jdbc@postgresql.org; Thu, 13 Jan 2005 14:19:02 +0100 From: Oliver Siegmar Organization: Vitrado GmbH To: pgsql-jdbc@postgresql.org Subject: Problems with infinity Date: Thu, 13 Jan 2005 14:19:00 +0100 User-Agent: KMail/1.7.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200501131419.00993.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=FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200501/97 X-Sequence-Number: 11977 Hi, I'm using PostgreSQL 7.4.6 with pg74.215.jdbc3.jar and have trouble with infinite timestamp values. org.postgres relevant Trace: Caused by: org.postgresql.util.PSQLException: Bad Timestamp Format at 0 in 9999-01-01 at org.postgresql.jdbc1.AbstractJdbc1ResultSet.toTimestamp(AbstractJdbc1ResultSet.java:1188) at org.postgresql.jdbc1.AbstractJdbc1ResultSet.getTimestamp(AbstractJdbc1ResultSet.java:381) at org.postgresql.jdbc1.AbstractJdbc1ResultSet.getTimestamp(AbstractJdbc1ResultSet.java:541) Furthermore, in your TODO list I read "The conversion to/from datatypes supporting infinity is silly because Java doesn't have a similar concept. Throw an exception instead.". That's really bad. I can't change the database content because several stored procedures are based on infinite timestamp values. Of course I understand that conversion infinite from/to 9999-01-01 or 0001-01-01 is silly...but its better than being forced to use another language to talk to the database, isn't it? Cheers, Oliver