From 63ff87309e087758416d75d4789171f1478da77f Mon Sep 17 00:00:00 2001 From: zyyang Date: Fri, 11 Dec 2020 15:25:12 +0800 Subject: [PATCH] change --- .../components/TaosDemoCommandLineRunner.java | 2 +- .../taosdata/taosdemo/mapper/SubTableMapper.xml | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/examples/JDBC/taosdemo/src/main/java/com/taosdata/taosdemo/components/TaosDemoCommandLineRunner.java b/tests/examples/JDBC/taosdemo/src/main/java/com/taosdata/taosdemo/components/TaosDemoCommandLineRunner.java index f7898d7649..e245c66fbe 100644 --- a/tests/examples/JDBC/taosdemo/src/main/java/com/taosdata/taosdemo/components/TaosDemoCommandLineRunner.java +++ b/tests/examples/JDBC/taosdemo/src/main/java/com/taosdata/taosdemo/components/TaosDemoCommandLineRunner.java @@ -81,7 +81,7 @@ public class TaosDemoCommandLineRunner implements CommandLineRunner { } } - private int insertTask(JdbcTaosdemoConfig config) { + private void insertTask(JdbcTaosdemoConfig config) { int numOfThreadsForInsert = config.numOfThreadsForInsert; int sleep = config.sleep; if (config.autoCreateTable) { diff --git a/tests/examples/JDBC/taosdemo/src/main/java/com/taosdata/taosdemo/mapper/SubTableMapper.xml b/tests/examples/JDBC/taosdemo/src/main/java/com/taosdata/taosdemo/mapper/SubTableMapper.xml index fd275bf216..2fb94e99b7 100644 --- a/tests/examples/JDBC/taosdemo/src/main/java/com/taosdata/taosdemo/mapper/SubTableMapper.xml +++ b/tests/examples/JDBC/taosdemo/src/main/java/com/taosdata/taosdemo/mapper/SubTableMapper.xml @@ -7,7 +7,7 @@ CREATE table IF NOT EXISTS ${database}.${name} USING ${supertable} TAGS - ${tag.value} + #{tag.value} @@ -17,7 +17,7 @@ VALUES - ${field.value} + #{field.value} @@ -26,12 +26,12 @@ INSERT INTO ${database}.${name} USING ${supertable} TAGS - ${tag.value} + #{tag.value} VALUES - ${field.value} + #{field.value} @@ -48,7 +48,7 @@ VALUES - ${field.value} + #{field.value} @@ -60,12 +60,12 @@ ${table.database}.${table.name} USING ${table.supertable} TAGS - ${tag.value} + #{tag.value} VALUES - ${field.value} + #{field.value} -- GitLab