提交 5d87ce34 编写于 作者: S Serge Rider

#313 SQLite datetime value extraction workaround

上级 b7ffde4b
......@@ -71,6 +71,15 @@ public class JDBCDateTimeValueHandler extends DateTimeValueHandler {
}
}
catch (SQLException e) {
if (e.getCause() instanceof ParseException) {
// [SQLite] workaround.
try {
return ((JDBCResultSet) resultSet).getObject(index + 1);
} catch (SQLException e1) {
// Ignore
log.debug("Can't retrieve datetime object");
}
}
throw new DBCException(e, session.getDataSource());
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册