From: emergency.shower@gmail.com <emergency.shower@gmail.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: Timestamp weirdness
Date: Tue, 26 Jul 2005 00:02:16 +0200
Message-ID: <bdf1a0980507251502f4b68af@mail.gmail.com> (raw)
In-Reply-To: <14992.1122245290@sss.pgh.pa.us>
References: <bdf1a09805072414582d75b940@mail.gmail.com>
<42E4158D.3020902@opencloud.com>
<14992.1122245290@sss.pgh.pa.us>
On 7/25/05, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> [...]
> The difficulty with both 2 and 3 is that the driver has no very good way
> of knowing whether it's writing to a timestamp with tz or one without.
> We can know the parameter datatype we send, but if that gets converted
> to the other type within the server, you're going to get burnt.
If I TIMESTAMP WITH TIME ZONE is implemented on the server as a
(timestamp, time zone)-pair, the server should be able to cast
TIMESTAMP WITH TIME ZONE correctly to TIMESTAMP WITHOUT TIME ZONE as
described in the SQL standard:
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: emergency.shower@gmail.com
Subject: Re: Timestamp weirdness
In-Reply-To: <bdf1a0980507251502f4b68af@mail.gmail.com>
References: <bdf1a09805072414582d75b940@mail.gmail.com> <42E4158D.3020902@opencloud.com> <14992.1122245290@sss.pgh.pa.us> <bdf1a0980507251502f4b68af@mail.gmail.com>
* 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