提交 c96e0ea4 编写于 作者: Z zyyang

change

上级 16069460
......@@ -73,104 +73,101 @@ public class PreparedStatementTest {
@Test
public void case004_testUnsupport() throws SQLException {
TSDBPreparedStatement tsdbStatement = statement;
Assert.assertNotNull(tsdbStatement.unwrap(TSDBPreparedStatement.class));
try {
tsdbStatement.isWrapperFor(null);
} catch (SQLException e) {
}
Assert.assertNotNull(statement.unwrap(TSDBPreparedStatement.class));
Assert.assertTrue(statement.isWrapperFor(TSDBPreparedStatement.class));
try {
tsdbStatement.getMaxFieldSize();
statement.getMaxFieldSize();
} catch (SQLException e) {
}
try {
tsdbStatement.setMaxFieldSize(0);
statement.setMaxFieldSize(0);
} catch (SQLException e) {
}
try {
tsdbStatement.setEscapeProcessing(true);
statement.setEscapeProcessing(true);
} catch (SQLException e) {
}
try {
tsdbStatement.cancel();
statement.cancel();
} catch (SQLException e) {
}
try {
tsdbStatement.getWarnings();
statement.getWarnings();
} catch (SQLException e) {
}
try {
tsdbStatement.clearWarnings();
statement.clearWarnings();
} catch (SQLException e) {
}
try {
tsdbStatement.setCursorName(null);
statement.setCursorName(null);
} catch (SQLException e) {
}
try {
tsdbStatement.getMoreResults();
statement.getMoreResults();
} catch (SQLException e) {
}
try {
tsdbStatement.setFetchDirection(0);
statement.setFetchDirection(0);
} catch (SQLException e) {
}
try {
tsdbStatement.getFetchDirection();
statement.getFetchDirection();
} catch (SQLException e) {
}
try {
tsdbStatement.getResultSetConcurrency();
statement.getResultSetConcurrency();
} catch (SQLException e) {
}
try {
tsdbStatement.getResultSetType();
statement.getResultSetType();
} catch (SQLException e) {
}
try {
tsdbStatement.getConnection();
statement.getConnection();
} catch (SQLException e) {
}
try {
tsdbStatement.getMoreResults();
statement.getMoreResults();
} catch (SQLException e) {
}
try {
tsdbStatement.getGeneratedKeys();
statement.getGeneratedKeys();
} catch (SQLException e) {
}
try {
tsdbStatement.executeUpdate(null, 0);
statement.executeUpdate(null, 0);
} catch (SQLException e) {
}
try {
tsdbStatement.executeUpdate(null, new int[]{0});
statement.executeUpdate(null, new int[]{0});
} catch (SQLException e) {
}
try {
tsdbStatement.executeUpdate(null, new String[]{"str1", "str2"});
statement.executeUpdate(null, new String[]{"str1", "str2"});
} catch (SQLException e) {
}
try {
tsdbStatement.getResultSetHoldability();
statement.getResultSetHoldability();
} catch (SQLException e) {
}
try {
tsdbStatement.setPoolable(true);
statement.setPoolable(true);
} catch (SQLException e) {
}
try {
tsdbStatement.isPoolable();
statement.isPoolable();
} catch (SQLException e) {
}
try {
tsdbStatement.closeOnCompletion();
statement.closeOnCompletion();
} catch (SQLException e) {
}
try {
tsdbStatement.isCloseOnCompletion();
statement.isCloseOnCompletion();
} catch (SQLException e) {
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册