pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter_e@gmx.net>
To: Mark Lewis <mark.lewis@mir3.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Something wrong with binding timestamp values
Date: Wed, 6 Dec 2006 16:57:11 +0100
Message-ID: <200612061657.13005.peter_e@gmx.net> (raw)
In-Reply-To: <1165415895.9734.286.camel@archimedes>
References: <200612061458.32156.peter_e@gmx.net>
	<1165415895.9734.286.camel@archimedes>

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/



view thread (5+ messages)  latest in thread

Message-ID: <200612061657.13005.peter_e@gmx.net>
Permalink:  ../200612061657.13005.peter_e@gmx.net/
Also on:    postgresql.org/message-id/200612061657.13005.peter_e@gmx.net

 · 

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: peter_e@gmx.net, mark.lewis@mir3.com
  Subject: Re: Something wrong with binding timestamp values
  In-Reply-To: <200612061657.13005.peter_e@gmx.net>
  References: <200612061458.32156.peter_e@gmx.net> <1165415895.9734.286.camel@archimedes> <200612061657.13005.peter_e@gmx.net>

* 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