use of java.sql.CallableStatement in project druid by alibaba.
the class FilterChainImplTest2 method test_getString.
public void test_getString() throws Exception {
Connection conn = dataSource.getConnection();
CallableStatement stmt = conn.prepareCall("select ?");
stmt.registerOutParameter(1, Types.VARCHAR);
Assert.assertNull(stmt.getString(1));
stmt.close();
conn.close();
}
use of java.sql.CallableStatement in project druid by alibaba.
the class FilterChainImplTest2 method test_getBoolean.
public void test_getBoolean() throws Exception {
Connection conn = dataSource.getConnection();
CallableStatement stmt = conn.prepareCall("select ?");
stmt.registerOutParameter(1, Types.VARCHAR);
Assert.assertFalse(stmt.getBoolean(1));
stmt.close();
conn.close();
}
use of java.sql.CallableStatement in project druid by alibaba.
the class FilterChainImplTest2 method test_getShort.
public void test_getShort() throws Exception {
Connection conn = dataSource.getConnection();
CallableStatement stmt = conn.prepareCall("select ?");
stmt.registerOutParameter(1, Types.VARCHAR);
Assert.assertEquals(0, stmt.getShort(1));
stmt.close();
conn.close();
}
use of java.sql.CallableStatement in project druid by alibaba.
the class FilterChainImplTest2 method test_getRef.
public void test_getRef() throws Exception {
Connection conn = dataSource.getConnection();
CallableStatement stmt = conn.prepareCall("select ?");
stmt.registerOutParameter(1, Types.VARCHAR);
Assert.assertNull(stmt.getRef(1));
stmt.close();
conn.close();
}
use of java.sql.CallableStatement in project druid by alibaba.
the class FilterChainImplTest2 method test_getTime_2.
public void test_getTime_2() throws Exception {
Connection conn = dataSource.getConnection();
CallableStatement stmt = conn.prepareCall("select ?");
stmt.registerOutParameter(1, Types.VARCHAR);
Assert.assertNull(stmt.getTime(1, null));
stmt.close();
conn.close();
}
Aggregations