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 B1E9D3A5876 for ; Tue, 25 Jan 2005 20:38:18 +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 16883-08 for ; Tue, 25 Jan 2005 20:38:08 +0000 (GMT) Received: from mail63.csoft.net (leary3.csoft.net [63.111.22.74]) by svr1.postgresql.org (Postfix) with SMTP id B42C23A55DB for ; Tue, 25 Jan 2005 20:37:57 +0000 (GMT) Received: (qmail 27768 invoked by uid 1112); 25 Jan 2005 20:40:45 -0000 Date: Tue, 25 Jan 2005 15:40:45 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: Oliver Siegmar Cc: pgsql-jdbc@postgresql.org Subject: Re: Problems with infinity In-Reply-To: <200501251607.59539.o.siegmar@vitrado.de> Message-ID: References: <200501131419.00993.o.siegmar@vitrado.de> <200501210907.45214.o.siegmar@vitrado.de> <200501251607.59539.o.siegmar@vitrado.de> 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.009 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200501/246 X-Sequence-Number: 12126 On Tue, 25 Jan 2005, Oliver Siegmar wrote: > On Tuesday 25 January 2005 09:35, Kris Jurka wrote: > > I was getting ready to apply this patch when I decided to add a couple > > more tests and I'm getting a failure for getDate() that I do not have time > > at the momemnt to investigate. Could you take a look at the attached > > patch and see what's going on. > > I applied the patch and run the tests. No problems were detected. I'm willing > to help, but a little more information would be very helpful :) > runtest: [junit] Testsuite: org.postgresql.test.jdbc2.Jdbc2TestSuite [junit] Tests run: 176, Failures: 1, Errors: 0, Time elapsed: 151.39 sec [junit] Testcase: testInfinity(org.postgresql.test.jdbc2.TimestampTest): FAILED [junit] expected:<9223372036825200000> but was:<9223372036767600000> [junit] junit.framework.AssertionFailedError: expected:<9223372036825200000> but was:<9223372036767600000> [junit] at org.postgresql.test.jdbc2.TimestampTest.runInfinityTests(TimestampTest.java:93) [junit] at org.postgresql.test.jdbc2.TimestampTest.testInfinity(TimestampTest.java:53) [junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [junit] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) So it appears the constant you have selected only works as a date for your timezone. Kris Jurka