提交 63ff8730 编写于 作者: Z zyyang

change

上级 013d6693
......@@ -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) {
......
......@@ -7,7 +7,7 @@
<update id="createUsingSuperTable">
CREATE table IF NOT EXISTS ${database}.${name} USING ${supertable} TAGS
<foreach collection="tags" item="tag" index="index" open="(" close=")" separator=",">
${tag.value}
#{tag.value}
</foreach>
</update>
......@@ -17,7 +17,7 @@
VALUES
<foreach collection="values" item="value">
<foreach collection="value.fields" item="field" open="(" close=")" separator=",">
${field.value}
#{field.value}
</foreach>
</foreach>
</insert>
......@@ -26,12 +26,12 @@
<insert id="insertOneTableMultiValuesUsingSuperTable">
INSERT INTO ${database}.${name} USING ${supertable} TAGS
<foreach collection="tags" item="tag" index="index" open="(" close=")" separator=",">
${tag.value}
#{tag.value}
</foreach>
VALUES
<foreach collection="values" item="value">
<foreach collection="value.fields" item="field" open="(" close=")" separator=",">
${field.value}
#{field.value}
</foreach>
</foreach>
</insert>
......@@ -48,7 +48,7 @@
VALUES
<foreach collection="table.values" item="value">
<foreach collection="value.fields" item="field" open="(" close=")" separator=",">
${field.value}
#{field.value}
</foreach>
</foreach>
</foreach>
......@@ -60,12 +60,12 @@
<foreach collection="tables" item="table">
${table.database}.${table.name} USING ${table.supertable} TAGS
<foreach collection="table.tags" item="tag" index="index" open="(" close=")" separator=",">
${tag.value}
#{tag.value}
</foreach>
VALUES
<foreach collection="table.values" item="value">
<foreach collection="value.fields" item="field" open="(" close=")" separator=",">
${field.value}
#{field.value}
</foreach>
</foreach>
</foreach>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册