change
This commit is contained in:
parent
a8b2c03c32
commit
e8019d4a61
|
@ -152,12 +152,12 @@ public class RestfulStatementTest {
|
|||
public void getResultSet() {
|
||||
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);
|
||||
|
|
Loading…
Reference in New Issue