Merge pull request #6384 from taosdata/xiaoping/add_test_case

add jdbc test case
This commit is contained in:
huili 2021-06-07 16:05:37 +08:00 committed by GitHub
commit 5e9859fdf6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -295,6 +295,14 @@ public class TSDBPreparedStatementTest {
assertAllNullExceptTimestamp(rs, ts);
}
}
@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 {