Subject | Re: [Firebird-Java] PrepareStatement setObject() parameters |
---|---|
Author | Roman Rokytskyy |
Post date | 2004-11-22T15:38:38Z |
> Does Jaybird handle java.util.Date as a parameter?No, it is not part of the specification.
> I had to put in a workaround for MySQL, which required java.util.Date toThat's not a workaround, that's exactly how you should handle that with
> be converted to java.sql.Date before being sent to setParameter().
JDBC.
> I'd like to factor this part of the code out to a MySQL specificIt does not tell that java.util.Date should be supported by the driver, the
> implementation, but don't want to go through the work if Jaybird
> will require the same.
> Does the JDBC specification speak to this?
only known mappings are available for java.sql.Date, java.sql.Time and
java.sql.Timestamp. It is the responsibility of the application to do the
conversion.
Roman