提交 5b354fdf authored 作者: Evgenij Ryazanov's avatar Evgenij Ryazanov

Add test for LocalTime with nanoseconds

上级 4c49e016
...@@ -621,6 +621,13 @@ public class TestPreparedStatement extends TestBase { ...@@ -621,6 +621,13 @@ public class TestPreparedStatement extends TestBase {
Object localTime2 = rs.getObject(1, LocalDateTimeUtils.getLocalTimeClass()); Object localTime2 = rs.getObject(1, LocalDateTimeUtils.getLocalTimeClass());
assertEquals(localTime, localTime2); assertEquals(localTime, localTime2);
rs.close(); rs.close();
localTime = LocalDateTimeUtils.parseLocalTime("04:05:06.123456789");
prep.setObject(1, localTime);
rs = prep.executeQuery();
rs.next();
localTime2 = rs.getObject(1, LocalDateTimeUtils.getLocalTimeClass());
assertEquals(localTime, localTime2);
rs.close();
} }
private void testDateTime8(Connection conn) throws SQLException { private void testDateTime8(Connection conn) throws SQLException {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论