KxSystems / kdb

Companion files to kdb+ and q
https://code.kx.com/q
Apache License 2.0
417 stars 163 forks source link

jdbc datetime$ ClassCastException #8

Closed s-b-u closed 5 years ago

s-b-u commented 6 years ago

ResultSetMetaData reports SQL-Type 93 = java.sql.Types.TIMESTAMP for a column of type datatime$. Therefore it should be possible to retrieve the data by ResultSet#getTimestamp at this column, but the underlying object is of type java.util.Date and can't be cast to java.sql.Timestamp and a ClassCastException is thrown instead.

sv commented 6 years ago

Could you provide reproducer/test? Feel free to submit PR if you have a fix ready