use of java.sql.CallableStatement in project druid by alibaba.
the class FilterChainImplTest2 method test_getTimestamp_3.
public void test_getTimestamp_3() throws Exception {
Connection conn = dataSource.getConnection();
CallableStatement stmt = conn.prepareCall("select ?");
stmt.registerOutParameter(1, Types.VARCHAR);
Assert.assertNull(stmt.getTimestamp("1", null));
stmt.close();
conn.close();
}
use of java.sql.CallableStatement in project druid by alibaba.
the class FilterChainImplTest2 method test_getObject_1.
public void test_getObject_1() throws Exception {
Connection conn = dataSource.getConnection();
CallableStatement stmt = conn.prepareCall("select ?");
stmt.registerOutParameter(1, Types.VARCHAR);
Assert.assertNull(stmt.getObject("1"));
stmt.close();
conn.close();
}
use of java.sql.CallableStatement in project druid by alibaba.
the class FilterChainImplTest2 method test_getObject_2.
public void test_getObject_2() throws Exception {
Connection conn = dataSource.getConnection();
CallableStatement stmt = conn.prepareCall("select ?");
stmt.registerOutParameter(1, Types.VARCHAR);
Assert.assertNull(stmt.getObject(1, Collections.<String, Class<?>>emptyMap()));
stmt.close();
conn.close();
}
use of java.sql.CallableStatement in project druid by alibaba.
the class FilterChainImplTest2 method test_getSQLXML_1.
public void test_getSQLXML_1() throws Exception {
Connection conn = dataSource.getConnection();
CallableStatement stmt = conn.prepareCall("select ?");
stmt.registerOutParameter(1, Types.VARCHAR);
Assert.assertNull(stmt.getSQLXML("1"));
stmt.close();
conn.close();
}
use of java.sql.CallableStatement in project druid by alibaba.
the class FilterChainImplTest2 method test_getObject_3.
public void test_getObject_3() throws Exception {
Connection conn = dataSource.getConnection();
CallableStatement stmt = conn.prepareCall("select ?");
stmt.registerOutParameter(1, Types.VARCHAR);
Assert.assertNull(stmt.getObject("1", Collections.<String, Class<?>>emptyMap()));
stmt.close();
conn.close();
}
Aggregations