ResultSetrs=stmt.executeQuery("select sum(f1) from "+ns_timestamp_db+".weather where ts >= '"+date2+"' and ts <= '"+date3+"' interval(10000000b) sliding(10000000b)");
ResultSetrs=stmt.executeQuery("select sum(f1) from "+ns_timestamp_db+".weather where ts >= '"+date2+"' and ts <= '"+date3+"' interval(10000000b) sliding(10000000b)");
rs.next();
rs.next();
...
@@ -486,13 +434,11 @@ public class TimestampPrecisionInNanoInJniTest {
...
@@ -486,13 +434,11 @@ public class TimestampPrecisionInNanoInJniTest {
ResultSetrs=stmt.executeQuery("select sum(f1) from "+ns_timestamp_db+".weather where ts2 >= '"+date2+"' and ts <= '"+date3+"' interval(10000000b) sliding(10000000b)");
ResultSetrs=stmt.executeQuery("select sum(f1) from "+ns_timestamp_db+".weather where ts2 >= '"+date2+"' and ts <= '"+date3+"' interval(10000000b) sliding(10000000b)");
rs.next();
rs.next();
...
@@ -501,8 +447,6 @@ public class TimestampPrecisionInNanoInJniTest {
...
@@ -501,8 +447,6 @@ public class TimestampPrecisionInNanoInJniTest {
rs.next();
rs.next();
sum=rs.getLong(2);
sum=rs.getLong(2);
Assert.assertEquals(128l,sum);
Assert.assertEquals(128l,sum);
}catch(SQLExceptione){
e.printStackTrace();
}
}
}
}
...
@@ -525,46 +469,38 @@ public class TimestampPrecisionInNanoInJniTest {
...
@@ -525,46 +469,38 @@ public class TimestampPrecisionInNanoInJniTest {