public void testSetNull() throws Exception {
// valid: fully qualified type to setNull()
PreparedStatement pstmt = getConnection().prepareStatement("INSERT INTO texttable (te) VALUES (?)");
if(pstmt instanceof PGStatement) {
PGStatement pgp = (PGStatement) pstmt;
pgp.setPrepareThreshold(2);
}
pstmt.setNull(1, Types.VARCHAR);
pstmt.executeUpdate();