Re: Something wrong with binding timestamp values

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Mark Lewis <mark(dot)lewis(at)mir3(dot)com>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Something wrong with binding timestamp values
Date: 2006-12-06 15:57:11
Message-ID: 200612061657.13005.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Am Mittwoch, 6. Dezember 2006 15:38 schrieb Mark Lewis:
> It's to work around the fact that JDBC only knows about one Timestamp
> type, while PG knows about more. It ends up being better in most cases
> to send the type as unknown and let the server disambiguate to the
> correct type than to guess about the type and maybe guess wrong.

OK, I found out that it used to bind such values as timestamptz, which failed
when the receiving type was a timestamp (without time zone). But it should
work the other way around, namely binding them as timestamp without time
zone, because that can be casted implicitly to timestamptz.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Tom Lane 2006-12-06 19:27:54 Re: Something wrong with binding timestamp values
Previous Message Vit Timchishin 2006-12-06 14:46:28 Re: Something wrong with binding timestamp values