From: Tom Lane <tgl@sss.pgh.pa.us>
To: Peter Eisentraut <peter_e@gmx.net>
Cc: Mark Lewis <mark.lewis@mir3.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Something wrong with binding timestamp values
Date: Wed, 06 Dec 2006 14:27:54 -0500
Message-ID: <216.1165433274@sss.pgh.pa.us> (raw)
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>
Peter Eisentraut <peter_e@gmx.net> 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
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: tgl@sss.pgh.pa.us, peter_e@gmx.net, mark.lewis@mir3.com
Subject: Re: Something wrong with binding timestamp values
In-Reply-To: <216.1165433274@sss.pgh.pa.us>
References: <200612061458.32156.peter_e@gmx.net> <1165415895.9734.286.camel@archimedes> <200612061657.13005.peter_e@gmx.net> <216.1165433274@sss.pgh.pa.us>
* 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