X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 9D8433A5947 for ; Thu, 13 Jan 2005 14:15:36 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 48529-07 for ; Thu, 13 Jan 2005 14:15:26 +0000 (GMT) Received: from mail63.csoft.net (leary3.csoft.net [63.111.22.74]) by svr1.postgresql.org (Postfix) with SMTP id A32E03A5129 for ; Thu, 13 Jan 2005 14:15:14 +0000 (GMT) Received: (qmail 6313 invoked by uid 1112); 13 Jan 2005 14:18:09 -0000 Date: Thu, 13 Jan 2005 09:18:09 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: Oliver Siegmar Cc: pgsql-jdbc@postgresql.org Subject: Re: Problems with infinity In-Reply-To: <200501131452.31209.o.siegmar@vitrado.de> Message-ID: References: <200501131419.00993.o.siegmar@vitrado.de> <200501131452.31209.o.siegmar@vitrado.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.012 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200501/100 X-Sequence-Number: 11980 On Thu, 13 Jan 2005, Oliver Siegmar wrote: > On Thursday 13 January 2005 14:42, Kris Jurka wrote: > > > > This is indeed a bug in the 7.4 drivers. > > Will you fix it? ;-) Sure, but you should be aware that the driver only does this conversion on output (rs.getTimestamp()). No conversion is done for setTimestamp, so it's a one way solution. This was part of my reasoning for removing it. > Couldn't you make it configurable (like 'convert_infinite_to_min_max = true')? > That could be done, but how do you define min/max. There are at least three possible definitions I can think of: Java's min/max value for Timestamp and pg's min/max, but pg's depends on how it was compiled (--enable-integer-datetimes). So how do you pick which one? You've got to pick the one with the smallest range, so it fits inside the other's range, which kind of sucks because then you have a special magic value that isn't even at the extremes of the type range. The user level code to manipulate such a thing will certainly be ugly. Kris Jurka