use of java.sql.CallableStatement in project druid by alibaba.
the class FilterChainImplTest2 method test_getDate_1.
public void test_getDate_1() throws Exception {
Connection conn = dataSource.getConnection();
CallableStatement stmt = conn.prepareCall("select ?");
stmt.registerOutParameter(1, Types.VARCHAR);
Assert.assertNull(stmt.getDate("1"));
stmt.close();
conn.close();
}
use of java.sql.CallableStatement in project druid by alibaba.
the class FilterChainImplTest2 method test_getBlob.
public void test_getBlob() throws Exception {
Connection conn = dataSource.getConnection();
CallableStatement stmt = conn.prepareCall("select ?");
stmt.registerOutParameter(1, Types.VARCHAR);
Assert.assertNull(stmt.getBlob(1));
stmt.close();
conn.close();
}
use of java.sql.CallableStatement in project druid by alibaba.
the class FilterChainImplTest2 method test_getTime.
public void test_getTime() throws Exception {
Connection conn = dataSource.getConnection();
CallableStatement stmt = conn.prepareCall("select ?");
stmt.registerOutParameter(1, Types.VARCHAR);
Assert.assertNull(stmt.getTime(1));
stmt.close();
conn.close();
}
use of java.sql.CallableStatement in project druid by alibaba.
the class FilterChainImplTest2 method test_getLong_1.
public void test_getLong_1() throws Exception {
Connection conn = dataSource.getConnection();
CallableStatement stmt = conn.prepareCall("select ?");
stmt.registerOutParameter(1, Types.VARCHAR);
Assert.assertEquals(0, stmt.getLong("1"));
stmt.close();
conn.close();
}
use of java.sql.CallableStatement in project druid by alibaba.
the class FilterChainImplTest2 method test_getRowId_1.
public void test_getRowId_1() throws Exception {
Connection conn = dataSource.getConnection();
CallableStatement stmt = conn.prepareCall("select ?");
stmt.registerOutParameter(1, Types.VARCHAR);
Assert.assertNull(stmt.getRowId("1"));
stmt.close();
conn.close();
}
Aggregations