feature request

From: "Jan Blok" <jblok(at)profdata(dot)nl>
To: <pgsql-jdbc(at)postgresql(dot)org>
Subject: feature request
Date: 2002-05-20 19:35:36
Message-ID: 000501c1b493$bd512b10$0201000a@BLOKS3
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Hi

I did find the following:

If I have a table with a timestamp column it is not allowed to do the
following

Date start_date = new java.util.Date(); //now
ps4.setObject(2,start_date); //this throws exception "cannot map class
java.util.Date"

but I have todo:

ps4.setTimestamp(2,new java.sql.Timestamp( start_date.getTime()));

which is ugly in my opinion and other database driver do support this...
(under the hood every thing is a java.util.Date right? all classes
java.sql.Date/Time/TimeStamp extend java.util.Date.)

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Tim Lucia 2002-05-20 20:42:13 Re: SocketException: "catch me if you can"
Previous Message Jan Blok 2002-05-20 19:35:09 timestamp exception in driver