pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <pgman@candle.pha.pa.us>
To: Palle Girgensohn <girgen@partitur.se>
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: Tue, 8 May 2001 12:44:24 -0400 (EDT)
Message-ID: <200105081644.f48GiPH09382@candle.pha.pa.us> (raw)
In-Reply-To: <3AF82237.95BFE0BA@partitur.se>

> 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



view thread (13+ messages)  latest in thread

Message-ID: <200105081644.f48GiPH09382@candle.pha.pa.us>
Permalink:  ../200105081644.f48GiPH09382@candle.pha.pa.us/
Also on:    postgresql.org/message-id/200105081644.f48GiPH09382@candle.pha.pa.us

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: pgman@candle.pha.pa.us, girgen@partitur.se, juhan@cc.ioc.ee, pgsql-jdbc@postgresql.org
  Subject: Re: [JDBC] Re: Trouble with JDBC2 ResultSet.getDate()
  In-Reply-To: <200105081644.f48GiPH09382@candle.pha.pa.us>

* 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