return context.runtime.newFixnum(columns[index].getFormat());
}
@JRubyMethod(required = 1, argTypes = {RubyFixnum.class})
public IRubyObject ftype(ThreadContext context, IRubyObject fieldNumber) {
RowDescription description = jdbcResultSet.getDescription();
int field = (int) ((RubyFixnum) fieldNumber).getLongValue();
if (field >= description.getColumns().length) {
throw context.runtime.newIndexError("field " + field + " is out of range");
}
return context.runtime.newFixnum(description.getColumns()[field].getOid());
}