Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 7E3959FA17D for ; Wed, 6 Dec 2006 11:57:17 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-new, port 10024) with ESMTP id 67564-07 for ; Wed, 6 Dec 2006 11:57:10 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from gauss.credativ.com (ipx11302.ipxserver.de [212.112.227.254]) by postgresql.org (Postfix) with ESMTP id E4EA59F9F46 for ; Wed, 6 Dec 2006 11:57:16 -0400 (AST) Received: from bell.credativ.de (p50896577.dip.t-dialin.net [80.137.101.119]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by gauss.credativ.com (Postfix) with ESMTP id 0ABECD7603; Wed, 6 Dec 2006 16:57:15 +0100 (CET) From: Peter Eisentraut To: Mark Lewis Subject: Re: Something wrong with binding timestamp values Date: Wed, 6 Dec 2006 16:57:11 +0100 User-Agent: KMail/1.9.5 Cc: pgsql-jdbc@postgresql.org References: <200612061458.32156.peter_e@gmx.net> <1165415895.9734.286.camel@archimedes> In-Reply-To: <1165415895.9734.286.camel@archimedes> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200612061657.13005.peter_e@gmx.net> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200612/41 X-Sequence-Number: 16273 Am Mittwoch, 6. Dezember 2006 15:38 schrieb Mark Lewis: > It's to work around the fact that JDBC only knows about one Timestamp > type, while PG knows about more. It ends up being better in most cases > to send the type as unknown and let the server disambiguate to the > correct type than to guess about the type and maybe guess wrong. OK, I found out that it used to bind such values as timestamptz, which failed when the receiving type was a timestamp (without time zone). But it should work the other way around, namely binding them as timestamp without time zone, because that can be casted implicitly to timestamptz. -- Peter Eisentraut http://developer.postgresql.org/~petere/