pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kris Jurka <books@ejurka.com>
To: Oliver Siegmar <o.siegmar@vitrado.de>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Problems with infinity
Date: Tue, 25 Jan 2005 15:40:45 -0500 (EST)
Message-ID: <Pine.BSO.4.56.0501251310390.7880@leary.csoft.net> (raw)
In-Reply-To: <200501251607.59539.o.siegmar@vitrado.de>
References: <200501131419.00993.o.siegmar@vitrado.de>
	<200501210907.45214.o.siegmar@vitrado.de>
	<Pine.BSO.4.56.0501250333160.27017@leary.csoft.net>
	<200501251607.59539.o.siegmar@vitrado.de>



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



view thread (27+ messages)  latest in thread

Message-ID: <Pine.BSO.4.56.0501251310390.7880@leary.csoft.net>
Permalink:  ../Pine.BSO.4.56.0501251310390.7880@leary.csoft.net/
Also on:    postgresql.org/message-id/Pine.BSO.4.56.0501251310390.7880@leary.csoft.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: books@ejurka.com, o.siegmar@vitrado.de
  Subject: Re: Problems with infinity
  In-Reply-To: <Pine.BSO.4.56.0501251310390.7880@leary.csoft.net>
  References: <200501131419.00993.o.siegmar@vitrado.de> <200501210907.45214.o.siegmar@vitrado.de> <Pine.BSO.4.56.0501250333160.27017@leary.csoft.net> <200501251607.59539.o.siegmar@vitrado.de> <Pine.BSO.4.56.0501251310390.7880@leary.csoft.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox