pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: emergency.shower@gmail.com <emergency.shower@gmail.com>
To: pgsql-jdbc@postgresql.org <pgsql-jdbc@postgresql.org>
Subject: Re: Timestamp changes committed to HEAD
Date: Mon, 1 Aug 2005 21:30:00 +0200
Message-ID: <bdf1a09805080112302ec02576@mail.gmail.com> (raw)
In-Reply-To: <42EDC90C.4040506@opencloud.com>
References: <42EDC90C.4040506@opencloud.com>

On 8/1/05, Oliver Jowett <oliver@opencloud.com> wrote:
> I've committed my Timestamp/Date/Time changes to CVS HEAD; here's the
> commit message. With these changes {get,set}{Timestamp,Date,Time} should
> respect Calendars properly and not make any assumptions about server
> timezone vs. JVM timezone.

This driver version works better with {get,set}Timestamp than any
other versions I've tested before.

My tests use three 8.03 severs with server timezones UTC, CET and
America/St_Johns (Newfoundland).

Timestamps 1970-01-01 00:00:00+0000, 2000-01-01 00:00:00+0000 and
2000-07-01 00:00:00+0000 are written to TIMESTAMP WITH TIME ZONE and
TIMESTAMP WITHOUT TIME ZONE fields, read, and then compared to the
original values. Additionally, the values in the database were checked
with pgAdmin III as a client.

Everything seems to be OK, except that read operations from the
America/St_Johns server lead to a deviation of minus half an hour,
probably due to a rounding error in the driver's getTimestamp
implementation.

Regards,
Alex



view thread (6+ messages)  latest in thread

Message-ID: <bdf1a09805080112302ec02576@mail.gmail.com>
Permalink:  ../bdf1a09805080112302ec02576@mail.gmail.com/
Also on:    postgresql.org/message-id/bdf1a09805080112302ec02576@mail.gmail.com

 · 

reply

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 changes committed to HEAD
  In-Reply-To: <bdf1a09805080112302ec02576@mail.gmail.com>
  References: <42EDC90C.4040506@opencloud.com> <bdf1a09805080112302ec02576@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