From eac79edcc825818e7480e8271e0ee84d97c219dc Mon Sep 17 00:00:00 2001 From: zyyang Date: Tue, 22 Dec 2020 11:38:01 +0800 Subject: [PATCH] change --- .../java/com/taosdata/taosdemo/service/SubTableService.java | 4 ++-- .../java/com/taosdata/taosdemo/utils/TimeStampUtilTest.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/examples/JDBC/taosdemo/src/main/java/com/taosdata/taosdemo/service/SubTableService.java b/tests/examples/JDBC/taosdemo/src/main/java/com/taosdata/taosdemo/service/SubTableService.java index af96761331..94195c05e2 100644 --- a/tests/examples/JDBC/taosdemo/src/main/java/com/taosdata/taosdemo/service/SubTableService.java +++ b/tests/examples/JDBC/taosdemo/src/main/java/com/taosdata/taosdemo/service/SubTableService.java @@ -190,9 +190,9 @@ public class SubTableService extends AbstractService { SubTableValueGenerator.disrupt(data, rate, range); // insert if (autoCreateTable) - affectRows = insertAutoCreateTable(data); + affectRows += insertAutoCreateTable(data); else - affectRows = insert(data); + affectRows += insert(data); /***********************************************/ tableCnt += tableSize; } diff --git a/tests/examples/JDBC/taosdemo/src/test/java/com/taosdata/taosdemo/utils/TimeStampUtilTest.java b/tests/examples/JDBC/taosdemo/src/test/java/com/taosdata/taosdemo/utils/TimeStampUtilTest.java index 4e5a1a1492..a4845677c5 100644 --- a/tests/examples/JDBC/taosdemo/src/test/java/com/taosdata/taosdemo/utils/TimeStampUtilTest.java +++ b/tests/examples/JDBC/taosdemo/src/test/java/com/taosdata/taosdemo/utils/TimeStampUtilTest.java @@ -17,7 +17,7 @@ public class TimeStampUtilTest { @Test public void longToDatetime() { - System.out.println(TimeStampUtil.longToDatetime(1293161600069l)); + System.out.println(TimeStampUtil.longToDatetime(1293334499006l)); String datetime = TimeStampUtil.longToDatetime(1510000000000L); assertEquals("2017-11-07 04:26:40.000", datetime); -- GitLab