Subject | Re: PreparedStatement with Date as Object |
---|---|
Author | Steven Jardine |
Post date | 2004-06-11T02:14:42Z |
> Driver simply does not know what to do with java.util.Date. JDBCFor some reason I thought I tried that but upon trying it again I find
> specification defines what to do with the java.sql.Date, java.sql.Time
> and java.sql.Timestamp, but it does not tell what to do with
> java.util.Date. Also JDBC specs do not require driver to do
> serialization/deserialization.
>
> So you either convert that stuff to java.sql.Date/Time/Timestamp, or
> you find some other way to set your parameter.
>
> Roman
that it works when I convert to java.sql.Date. Thanks for your help.
Steve