From: | Ľubomír Varga <luvar(at)plaintext(dot)sk> |
---|---|
To: | pgsql-jdbc(at)postgresql(dot)org |
Subject: | Possible bug in PGInterval class |
Date: | 2009-08-31 19:34:12 |
Message-ID: | 200908312134.12661.luvar@plaintext.sk |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
Hi.
I have noticed imho bad behaviour of add methods for PGInterval class.
(org.postgresql.util.PGInterval)
First is unlogical adding sum to parameter and not to object on which is
method invoked. (this is also writen in javadoc, so I accept it)
Second, critical for me, is to not using modulo in addition. So if you add 55
minutes to 55 minutes, you get 110 minutes instead of 1 hour and 50 minutes.
Is this bug or feature? Should I use to postprocessing of sql query result
some other date classes? (joda time, or java date class...)
Thanks for answer.
PS: If it is not bug, please add some description to javadoc also to this
behaviour.
I am using 8.4-701 build and source...
--
Odborník na všetko je zlý odborník. Ja sa snažím byť výnimkou potvrdzujúcou
pravidlo.
From | Date | Subject | |
---|---|---|---|
Next Message | Kris Jurka | 2009-09-02 00:01:11 | Re: Possible bug in PGInterval class |
Previous Message | Thomas Kellerer | 2009-08-31 14:21:16 | Re: Search content within a bytea field |