From: Palle Girgensohn <girgen@partitur.se>
To: Bruce Momjian <pgman@candle.pha.pa.us>
Cc: Juhan-Peep Ernits <juhan@cc.ioc.ee>
Cc: pgsql-interfaces@postgresql.org
Cc: pgsql-jdbc@postgresql.org
Subject: Re: [JDBC] Re: Trouble with JDBC2 ResultSet.getDate()
Date: Wed, 09 May 2001 04:45:56 +0200
Message-ID: <3AF8AF64.DC970DA@partitur.se> (raw)
References: <200105081644.f48GiPH09382@candle.pha.pa.us>
Here's a patch that works fine for me.
Cheers,
Palle
Bruce Momjian wrote:
>
> > Well, I didn't see the patch, but my message (probably you just
> > received) points to the fact that getDate shall work on a
> > timestamp column, and some kind of patch shall be applied. I
> > something like this:
> >
> > if s.length() == 10
> > return java.sql.Date.valueOf(s)
> > else do the old 7.0.3 SimpleDateFormatter stuff.
> >
> > *or*
> >
> > try {
> > return java.sql.Date.valueOf(s)
> > } catch (SQLException e) {
> > do the old SimpleDateFormatter stuff...
> > }
> >
> > sort of... gotta go, or I'd have sent you a full patch.
>
> Would you, please? Thanks.
>
> --
> Bruce Momjian | http://candle.pha.pa.us
> pgman@candle.pha.pa.us | (610) 853-3000
> + If your life is a hard drive, | 830 Blythe Avenue
> + Christ can be your backup. | Drexel Hill, Pennsylvania 19026
Attachments:
patch-jdbc-getdate (application/octet-stream, 1007B) download
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 using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: girgen@partitur.se, pgman@candle.pha.pa.us, juhan@cc.ioc.ee, pgsql-jdbc@postgresql.org
Subject: Re: [JDBC] Re: Trouble with JDBC2 ResultSet.getDate()
In-Reply-To: <3AF8AF64.DC970DA@partitur.se>
* 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