Closed shawnzhu closed 3 years ago
Notice that the error message indicated it can not use PreparedStatement#setObject(index, LocalDateTime)
.
So I will need to try to customize an objectwritefunction to use a supported JDBC API. e.g., PreparedStatement#setTimestamp(index, LocalDateTime)
.
Fixed the error message when writing TIMESTAMP(9)
date type in https://github.com/IBM/trino-db2/pull/76/commits/58001c861ba85ed95acbacc543ce8c7c7e210eaa and tested locally by using a Db2 warehouse.
Supports #75
Progress
TIMESTAMP(9)
. see https://github.com/IBM/trino-db2/issues/75#issuecomment-833842286TIMESTAMP
with precision up to6
.Problem
It still can not write date in type
TIMESTAMP(9)
into any Db2 table b/c of this exception: