add test case

This commit is contained in:
Ping Xiao 2021-06-05 17:58:06 +08:00
parent 15aecd4882
commit 5da8332573
1 changed files with 8 additions and 0 deletions

View File

@ -388,6 +388,14 @@ public class TSDBPreparedStatementTest {
Assert.assertEquals(numOfRows, rows);
}
@Test
public void createTwoSameDbTest() throws SQLException {
Statement stmt = conn.createStatement();
stmt.execute("create database dbtest");
Assert.assertThrows(SQLException.class, () -> stmt.execute("create database dbtest"));
}
@Test
public void setBoolean() throws SQLException {