From: Oliver Siegmar <o.siegmar@vitrado.de>
To: Kris Jurka <books@ejurka.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Problems with infinity
Date: Tue, 18 Jan 2005 08:12:20 +0100
Message-ID: <200501180812.20571.o.siegmar@vitrado.de> (raw)
In-Reply-To: <Pine.BSO.4.56.0501171916210.15181@leary.csoft.net>
References: <200501131419.00993.o.siegmar@vitrado.de>
<200501171408.32936.o.siegmar@vitrado.de>
<Pine.BSO.4.56.0501171916210.15181@leary.csoft.net>
On Tuesday 18 January 2005 01:50, Kris Jurka wrote:
> The counter argument is that eventually the todo item will be done and
> that the supposed "cleanliness" is just an illusion because no other
> database is going to allow you store a timestamp of Long.MAX_VALUE so
> there is already an implicit assumption of using pg, why not make it
> explicit?
I did some research to find other databases / jdbc drivers that are able to
set infinity values for timestamps. Unfortunately I haven't found one. Oracle
seems to support infinity values but I couldn't find any driver
implementation details. Does someone here has kwnoledge about different jdbc
implementations and their infinity usage?
The current infinity implementation in pgjdbc is a hack, because you have to
set/get magic values that represents '-infinity' and 'infinity', but it is
imho the best way to do until there might be an NEGATIVE_INFINITY and
POSITIVE_INFINTIY for java.util.Date like the one for java.lang.Double.
Oliver
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: o.siegmar@vitrado.de, books@ejurka.com
Subject: Re: Problems with infinity
In-Reply-To: <200501180812.20571.o.siegmar@vitrado.de>
References: <200501131419.00993.o.siegmar@vitrado.de> <200501171408.32936.o.siegmar@vitrado.de> <Pine.BSO.4.56.0501171916210.15181@leary.csoft.net> <200501180812.20571.o.siegmar@vitrado.de>
* 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