Re: Timestamp Conversion Woes Redux - Mailing list pgsql-jdbc

From Oliver Jowett
Subject Re: Timestamp Conversion Woes Redux
Date
Msg-id 42DC37AC.5030704@opencloud.com
Whole thread Raw
In response to Re: Timestamp Conversion Woes Redux  (Dave Cramer <pg@fastcrypt.com>)
Responses Re: Timestamp Conversion Woes Redux  (Dave Cramer <pg@fastcrypt.com>)
List pgsql-jdbc
Dave Cramer wrote:

> You are correct, the driver is binding it to a timestamptz. The
> underlying data is without
> timezone so the server probably attempts to remove it
>
> I'm starting to think that binding the type to "unknown" might be
> better as you suggested earlier.

Yeah, given that we can't work out which of the two types is intended
ahead of time, this might be the best idea..

Christian, you should be able to test this easily enough by modifying
setTimestamp() to pass Oid.UNKNOWN instead of Oid.TIMESTAMPTZ to
bindString().

-O

pgsql-jdbc by date:

Previous
From: Oliver Jowett
Date:
Subject: Re: Timestamp Conversion Woes Redux
Next
From: Senthoorkumaran Punniamoorthy
Date:
Subject: org.postgresql.util.PSQLException: ERROR: current transaction is aborted, commands ignored until end of transaction block