Subject | ResultSetMetaData strange behavior |
---|---|
Author | Ruslan Cheremin |
Post date | 2005-03-25T14:42:34Z |
Hello,
I'm using JBird 1.5.5 with Firebird 1.5 in my production enviroment,
and obtain strange ResultSetMetaData behavior -- When I
have TIMESTAMP field in my query, metadata returns column
type as java.sql.Timestamp, but rs.getObject() returns java.sql.Date
-- this types are incompatible with each other, but, as far as I know,
jdbc spec tells us, that rs.getObject() should be subclass (or implementation)
of class/interface, which name returned by metadata.getColumnClassName(int).
Am I right, and, if so, is it a know bug?
Thanks in advance!
Cheremin Ruslan.
I'm using JBird 1.5.5 with Firebird 1.5 in my production enviroment,
and obtain strange ResultSetMetaData behavior -- When I
have TIMESTAMP field in my query, metadata returns column
type as java.sql.Timestamp, but rs.getObject() returns java.sql.Date
-- this types are incompatible with each other, but, as far as I know,
jdbc spec tells us, that rs.getObject() should be subclass (or implementation)
of class/interface, which name returned by metadata.getColumnClassName(int).
Am I right, and, if so, is it a know bug?
Thanks in advance!
Cheremin Ruslan.