{
CallableStatement cstmt = con.prepareCall("{ call bigint_proc(?,?,?) }");
cstmt.registerOutParameter(1,java.sql.Types.BIGINT);
cstmt.registerOutParameter(2,java.sql.Types.BIGINT);
cstmt.registerOutParameter(3,java.sql.Types.BIGINT);
cstmt.executeUpdate();
assertTrue(cstmt.getLong( 1 ) == 9223372036854775807l );
assertTrue( cstmt.getLong(2) == -9223372036854775808l );
cstmt.getLong(3);
assertTrue( cstmt.wasNull() );
}