From: Ľubomír Varga <luvar@plaintext.sk>
To: pgsql-jdbc@postgresql.org
Subject: Possible bug in PGInterval class
Date: Mon, 31 Aug 2009 21:34:12 +0200
Message-ID: <200908312134.12661.luvar@plaintext.sk> (raw)
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.
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: luvar@plaintext.sk
Subject: Re: Possible bug in PGInterval class
In-Reply-To: <200908312134.12661.luvar@plaintext.sk>
References: <200908312134.12661.luvar@plaintext.sk>
* 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