Re: Bug in storing Timestamp - Mailing list pgsql-jdbc

From Kris Jurka
Subject Re: Bug in storing Timestamp
Date
Msg-id Pine.BSO.4.56.0504140407320.17685@leary.csoft.net
Whole thread Raw
In response to Bug in storing Timestamp  (Boris Kirzner <borisk@mainsoft.com>)
Responses Re: Bug in storing Timestamp
List pgsql-jdbc

On Mon, 11 Apr 2005, Boris Kirzner wrote:

> Short description :
> Storing java.sql.Timestamp with specified milliseconds value results to
> wrong value stored in db.
>
> PostgreSQL version : 8.0.1
> Driver version : 8.0 build 310
>
> Detailed description :
> In order to reproduce the bug run the following code.
> Create the table in the db.
> The code creates a timestamp of "0001-01-01 02:02:02.0" and stores it
> into the db.
> The actual value stored is "02:22:42".

I am not able to reproduce this problem.  The attached test case shows a
problem with storing java.sql.Time into a timetz type because the correct
offset is not saved, but that's not what you've described.  Perhaps it is
something specific to your timezone?

Kris Jurka

Attachment

pgsql-jdbc by date:

Previous
From: Kris Jurka
Date:
Subject: Re: Pam Authentication is supported?
Next
From: Kris Jurka
Date:
Subject: Re: Data type for array of byte