pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Siegmar <o.siegmar@vitrado.de>
To: pgsql-jdbc@postgresql.org
Subject: Problems with infinity
Date: Thu, 13 Jan 2005 14:19:00 +0100
Message-ID: <200501131419.00993.o.siegmar@vitrado.de> (raw)

Hi,

I'm using PostgreSQL 7.4.6 with pg74.215.jdbc3.jar and have trouble with 
infinite timestamp values.

org.postgres relevant Trace:

Caused by: org.postgresql.util.PSQLException: Bad Timestamp Format at 0 in 
9999-01-01
at 
org.postgresql.jdbc1.AbstractJdbc1ResultSet.toTimestamp(AbstractJdbc1ResultSet.java:1188)
at 
org.postgresql.jdbc1.AbstractJdbc1ResultSet.getTimestamp(AbstractJdbc1ResultSet.java:381)
at 
org.postgresql.jdbc1.AbstractJdbc1ResultSet.getTimestamp(AbstractJdbc1ResultSet.java:541)


Furthermore, in your TODO list I read "The conversion to/from datatypes 
supporting infinity is silly because Java doesn't have a similar concept. 
Throw an exception instead.".

That's really bad. I can't change the database content because several stored 
procedures are based on infinite timestamp values.

Of course I understand that conversion infinite from/to 9999-01-01 or 
0001-01-01 is silly...but its better than being forced to use another 
language to talk to the database, isn't it?


Cheers,
Oliver



view thread (27+ messages)  latest in thread

Message-ID: <200501131419.00993.o.siegmar@vitrado.de>
Permalink:  ../200501131419.00993.o.siegmar@vitrado.de/
Also on:    postgresql.org/message-id/200501131419.00993.o.siegmar@vitrado.de

 · 

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: o.siegmar@vitrado.de
  Subject: Re: Problems with infinity
  In-Reply-To: <200501131419.00993.o.siegmar@vitrado.de>
  References: <200501131419.00993.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