select_one (PGconn)

    /*
     * call-seq:
     *   conn.select_one(query, *bind_values)
     *
     * Return the first row of the query results.
     * Equivalent to conn.query(query, *bind_values).first
     */
    static VALUE
    pgconn_select_one(argc, argv, self)
        int argc;
        VALUE *argv;
        VALUE self;
    {
        VALUE result = pgconn_exec(argc, argv, self);
        VALUE row = fetch_pgrow(result, pgresult_fields(result), 0);
        pgresult_clear(result);
        return row;
    }