From a8b2c03c326e094b9d66a7013e123491c52e8552 Mon Sep 17 00:00:00 2001 From: zyyang Date: Tue, 23 Feb 2021 17:25:57 +0800 Subject: [PATCH] change --- .../test/java/com/taosdata/jdbc/rs/RestfulStatementTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/connector/jdbc/src/test/java/com/taosdata/jdbc/rs/RestfulStatementTest.java b/src/connector/jdbc/src/test/java/com/taosdata/jdbc/rs/RestfulStatementTest.java index eb22b1cedb..6d58c86be7 100644 --- a/src/connector/jdbc/src/test/java/com/taosdata/jdbc/rs/RestfulStatementTest.java +++ b/src/connector/jdbc/src/test/java/com/taosdata/jdbc/rs/RestfulStatementTest.java @@ -121,12 +121,12 @@ public class RestfulStatementTest { public void execute() { final String dbName = ("test_" + UUID.randomUUID()).replace("-", "_").substring(0, 32); try { - boolean isSelect = stmt.execute("create database " + dbName); + boolean isSelect = stmt.execute("create database if not exists " + dbName); Assert.assertEquals(false, isSelect); int affectedRows = stmt.getUpdateCount(); Assert.assertEquals(0, affectedRows); - isSelect = stmt.execute("create table " + dbName + ".weather(ts timestamp, temperature float) tags(loc nchar(64))"); + isSelect = stmt.execute("create table if not exists " + dbName + ".weather(ts timestamp, temperature float) tags(loc nchar(64))"); Assert.assertEquals(false, isSelect); affectedRows = stmt.getUpdateCount(); Assert.assertEquals(0, affectedRows); -- GitLab