From: Oliver Jowett <oliver@opencloud.com>
To: Dave Cramer <pg@fastcrypt.com>
Cc: pgsql-jdbc@postgresql.org <pgsql-jdbc@postgresql.org>
Subject: Re: work in progress: timestamp patch
Date: Tue, 26 Jul 2005 15:31:59 +1200
Message-ID: <42E5AEAF.2060809@opencloud.com> (raw)
In-Reply-To: <7E3F468F-93C8-4082-9248-B9B52020E5F9@fastcrypt.com>
References: <42E57D80.4040501@opencloud.com>
<F9D18D4E-C078-4791-896F-556D71A3D4CA@fastcrypt.com>
<42E5ABD8.1080608@opencloud.com>
<7E3F468F-93C8-4082-9248-B9B52020E5F9@fastcrypt.com>
Dave Cramer wrote:
> One of the times he is trying to stick in the db is a non-existant time
> if it is associated with a
> time zone
>
> stmt.execute("INSERT INTO Foo (t1) VALUES ('2005-04-03 02:29:43.0')");
>
> in any US timezone this time does not exist. In US/Mountain timezone this
> inserts as 2005-04-03 03:29:43.0' note the hour has incremented from 2
> to 3
What's the underlying column, timestamp or timestamptz?
How is the value represented on the Java side? Seems like if you used
Timestamp + a UTC calendar on both the set and get paths, it should work
fine with no need to mess with the server timezone (assuming untyped
parameters)?
-O
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: oliver@opencloud.com, pg@fastcrypt.com
Subject: Re: work in progress: timestamp patch
In-Reply-To: <42E5AEAF.2060809@opencloud.com>
References: <42E57D80.4040501@opencloud.com> <F9D18D4E-C078-4791-896F-556D71A3D4CA@fastcrypt.com> <42E5ABD8.1080608@opencloud.com> <7E3F468F-93C8-4082-9248-B9B52020E5F9@fastcrypt.com> <42E5AEAF.2060809@opencloud.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