use of java.sql.CallableStatement in project druid by alibaba.
the class FilterChainImplTest2 method test_getBoolean_1.
public void test_getBoolean_1() 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_getFloat.
public void test_getFloat() throws Exception {
Connection conn = dataSource.getConnection();
CallableStatement stmt = conn.prepareCall("select ?");
stmt.registerOutParameter(1, Types.VARCHAR);
Assert.assertTrue(0F == stmt.getFloat(1));
stmt.close();
conn.close();
}
use of java.sql.CallableStatement in project druid by alibaba.
the class FilterChainImplTest2 method test_getString_1.
public void test_getString_1() 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_getDouble.
public void test_getDouble() throws Exception {
Connection conn = dataSource.getConnection();
CallableStatement stmt = conn.prepareCall("select ?");
stmt.registerOutParameter(1, Types.VARCHAR);
Assert.assertTrue(0D == stmt.getDouble(1));
stmt.close();
conn.close();
}
use of java.sql.CallableStatement in project druid by alibaba.
the class FilterChainImplTest2 method test_getNCharacterStream.
public void test_getNCharacterStream() throws Exception {
Connection conn = dataSource.getConnection();
CallableStatement stmt = conn.prepareCall("select ?");
stmt.registerOutParameter(1, Types.VARCHAR);
Assert.assertNull(stmt.getNCharacterStream(1));
stmt.close();
conn.close();
}
Aggregations