提交 fbe1fd95 编写于 作者: A avalon566

Fix read date value

上级 7737b5e6
......@@ -89,7 +89,8 @@ public abstract class AbstractJdbcReader extends AbstractRunner implements JdbcR
record.setType("bootstrap-insert");
record.setFullTableName(String.format("%s.%s", conn.getCatalog(), rdbmsConfiguration.getTableName()));
for (int i = 1; i <= metaData.getColumnCount(); i++) {
if (Types.TIME == rs.getMetaData().getColumnType(i)) {
if (Types.TIME == rs.getMetaData().getColumnType(i)
|| Types.DATE == rs.getMetaData().getColumnType(i)) {
// fix: jdbc Time objects represent a wall-clock time and not a duration as MySQL treats them
record.addColumn(new Column(rs.getString(i), true));
} else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册