Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 3FC019FA1DE for ; Wed, 6 Dec 2006 15:28:21 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-new, port 10024) with ESMTP id 77649-05 for ; Wed, 6 Dec 2006 15:28:03 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 722199F9386 for ; Wed, 6 Dec 2006 15:28:04 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id kB6JRsvj000217; Wed, 6 Dec 2006 14:27:54 -0500 (EST) To: Peter Eisentraut cc: Mark Lewis , pgsql-jdbc@postgresql.org Subject: Re: Something wrong with binding timestamp values In-reply-to: <200612061657.13005.peter_e@gmx.net> References: <200612061458.32156.peter_e@gmx.net> <1165415895.9734.286.camel@archimedes> <200612061657.13005.peter_e@gmx.net> Comments: In-reply-to Peter Eisentraut message dated "Wed, 06 Dec 2006 16:57:11 +0100" Date: Wed, 06 Dec 2006 14:27:54 -0500 Message-ID: <216.1165433274@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200612/42 X-Sequence-Number: 16274 Peter Eisentraut writes: > 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. Only for rather small values of "work" I'm afraid --- in particular, that would cause any timezone specification in the input string to be ignored, which is OK for timestamp without tz but surely not OK for the other. regards, tom lane