Re: Timestamp changes committed to HEAD - Mailing list pgsql-jdbc

From emergency.shower@gmail.com
Subject Re: Timestamp changes committed to HEAD
Date
Msg-id bdf1a09805080112302ec02576@mail.gmail.com
Whole thread Raw
In response to Timestamp changes committed to HEAD  (Oliver Jowett <oliver@opencloud.com>)
Responses Re: Timestamp changes committed to HEAD  (Oliver Jowett <oliver@opencloud.com>)
List pgsql-jdbc
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

pgsql-jdbc by date:

Previous
From: Kris Jurka
Date:
Subject: Re: Timestamp changes committed to HEAD
Next
From: Oliver Jowett
Date:
Subject: Re: Timestamp changes committed to HEAD