getvalue_byname (PGresult)

    /*
     * call-seq:
     *    res.value_byname( tup_num, field_name )
     *
     * Returns the value in tuple number <i>tup_num</i>, for the field named <i>field_name</i>.
     *
     * Equivalent to (but faster than) either of:
     *    res.result[<i>tup_num</i>][ res.fieldnum(<i>field_name</i>) ]
     *    res.value( <i>tup_num</i>, res.fieldnum(<i>field_name</i>) )
     *
     * <i>(This method internally calls #value as like the second example above; it is slower than using the field index directly.)</i>
     */
    static VALUE
    pgresult_getvalue_byname(obj, tup_num, field_name)
        VALUE obj, tup_num, field_name;
    {
        return pgresult_getvalue(obj, tup_num, pgresult_fieldnum(obj, field_name));
    }