提交 0cd0c6ca authored 作者: Thomas Mueller's avatar Thomas Mueller

Formatting

上级 08748cc1
...@@ -1711,7 +1711,7 @@ public class Function extends Expression implements FunctionCall { ...@@ -1711,7 +1711,7 @@ public class Function extends Expression implements FunctionCall {
Calendar calendar = Calendar.getInstance(); Calendar calendar = Calendar.getInstance();
int nanos = d.getNanos() % 1000000; int nanos = d.getNanos() % 1000000;
calendar.setTime(d); calendar.setTime(d);
calendar.add(field, (int)count); calendar.add(field, (int) count);
long t = calendar.getTime().getTime(); long t = calendar.getTime().getTime();
Timestamp ts = new Timestamp(t); Timestamp ts = new Timestamp(t);
ts.setNanos(ts.getNanos() + nanos); ts.setNanos(ts.getNanos() + nanos);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论