From: Mark Lewis <mark.lewis@mir3.com>
To: Paul Tomblin <ptomblin@xcski.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: What changed?
Date: Fri, 13 Apr 2007 13:13:26 -0700
Message-ID: <1176495206.8630.113.camel@archimedes> (raw)
In-Reply-To: <20070413193355.GA13445@allhats.xcski.com>
References: <20070413184748.GA6562@allhats.xcski.com>
<1176491774.8630.101.camel@archimedes>
<20070413193355.GA13445@allhats.xcski.com>
On Fri, 2007-04-13 at 15:33 -0400, Paul Tomblin wrote:
> Quoting Mark Lewis (mark.lewis@mir3.com):
> > This is addressed in the FAQ, look at the section titled, "I upgraded
> > from 7.x to 8.x. Why did my application break?"
> >
> > http://jdbc.postgresql.org/documentation/faq.html#upgradeTo80
>
> Except neither of the two categories documented there apply to me. The
> problem I'm having is that I'm calling either
> stmt.setNull(p, java.sql.Types.TIMESTAMP);
> or
> stmt.setTimestamp(p, startDBDate);
> and it's staying that it can't tell the type, in spite of the fact that I
> do specify it in both cases.
Sorry, guess I was reading a little too quickly the first time around :)
More recent versions of the driver send UNSPECIFIED for timestamps
(except in the setNull case where they always send TIMESTAMPTZ, but I
don't think that matters), which allows the server to "do the right
thing" most of the time. I don't have time to really dig into it right
now but I'm guessing that you're hitting a case where it fails to do the
right thing.
-- Mark
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: mark.lewis@mir3.com, ptomblin@xcski.com
Subject: Re: What changed?
In-Reply-To: <1176495206.8630.113.camel@archimedes>
References: <20070413184748.GA6562@allhats.xcski.com> <1176491774.8630.101.camel@archimedes> <20070413193355.GA13445@allhats.xcski.com> <1176495206.8630.113.camel@archimedes>
* 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