add test case
This commit is contained in:
parent
15aecd4882
commit
5da8332573
|
@ -389,6 +389,14 @@ public class TSDBPreparedStatementTest {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@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
|
@Test
|
||||||
public void setBoolean() throws SQLException {
|
public void setBoolean() throws SQLException {
|
||||||
pstmt_insert.setTimestamp(1, new Timestamp(System.currentTimeMillis()));
|
pstmt_insert.setTimestamp(1, new Timestamp(System.currentTimeMillis()));
|
||||||
|
|
Loading…
Reference in New Issue