feature request - Mailing list pgsql-jdbc

From Jan Blok
Subject feature request
Date
Msg-id 000501c1b493$bd512b10$0201000a@BLOKS3
Whole thread Raw
Responses Re: feature request
List 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.)






pgsql-jdbc by date:

Previous
From: "Jan Blok"
Date:
Subject: timestamp exception in driver
Next
From: Thomas O'Dowd
Date:
Subject: Re: timestamp exception in driver