Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 2A2A59FB3B5 for ; Tue, 26 Sep 2006 19:47:29 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 23668-02 for ; Tue, 26 Sep 2006 19:47:23 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from pjetlic.mobart.hr (pjetlic.mobart.hr [80.80.51.10]) by postgresql.org (Postfix) with ESMTP id 59F469FB33B for ; Tue, 26 Sep 2006 19:47:23 -0300 (ADT) Received: from localhost (localhost.localdomain [127.0.0.1]) by pjetlic.mobart.hr (Postfix) with ESMTP id 6FE3A17F21 for ; Wed, 27 Sep 2006 00:47:20 +0200 (CEST) Received: from pjetlic.mobart.hr ([127.0.0.1]) by localhost (pjetlic [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 08834-10 for ; Wed, 27 Sep 2006 00:47:17 +0200 (CEST) Received: from [192.168.10.164] (89-172-10-66.adsl.net.t-com.hr [89.172.10.66]) (using SSLv3 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by pjetlic.mobart.hr (Postfix) with ESMTP id 6CE0017F1E for ; Wed, 27 Sep 2006 00:47:17 +0200 (CEST) Subject: Storing and retreiving infinity timestamp values from postgres database From: Mario Splivalo Reply-To: mario.splivalo@mobart.hr To: pgsql-jdbc@postgresql.org Content-Type: text/plain Organization: Mob-Art Date: Wed, 27 Sep 2006 00:47:16 +0200 Message-Id: <1159310836.18217.5.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by OpenSource AV+AS Mail Server X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200609/132 X-Sequence-Number: 15850 I have read some posts on this mailinglist concerning the infinity value of the timestamp data type, where it was stated that an exception is thrown when one attempts to read infinity value. Now, on the postgresql jdbc there is an entry in TODO list wich mentions adding handling of 'infinity' values to the jdbc documentation. Is it possible for someone to post some code here for reading/storing infinity timestamp values to and from postgres database? I'm using postgres 8.1 with latest JDBC drivers, and from the postgres JDBC web page can be concluded that the infinity support has been added to the driver. Mario -- Mario Splivalo Mob-Art mario.splivalo@mobart.hr "I can do it quick, I can do it cheap, I can do it well. Pick any two."