Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-jdbc by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group