Hi everyone,
Has anyone come across a problem where on Linux using DB2 9.1 Express-
C with the packaged jcc-JDBC driver that it fails correctly to parse a
returned date value? I'm simply calling
resultSet.getDa te(paramIndex)
and it's giving me a date that's way off.
The reason that I find this bizarre is that I can see the correct date
value being transferred over the wire (localhost) using the Wireshark
packet-sniffer; also because it parses timestamp values correctly from
the same statement.
This is exposed in a unit-test which is run with a classpath that
includes the following files:
DB2_HOME/java/db2jcc.jar
DB2_HOME/java/db2jcc_licence_ cu.jar
The result-set is returned as a cursor from a stored procedure which
reads from a temporary table. The value is read from a column in that
table declared as type DATE.
I'm sure I'm missing something pretty obvious so I thought I'd ask
first before getting to involved in rooting out the problem!
Cheers
Michael