query (PGconn)

    /*
     * call-seq:
     *    conn.query(sql, *bind_values)
     *
     * Sends SQL query request specified by _sql_ to the PostgreSQL.
     * Returns an Array as the resulting tuple on success.
     * On failure, it returns +nil+, and the error details can be obtained by #error.
     *
     * +bind_values+ represents values for the PostgreSQL bind parameters found in the +sql+.  PostgreSQL bind parameters are presented as $1, $1, $2, etc.
     */
    static VALUE
    pgconn_query(argc, argv, obj)
        int argc;
        VALUE *argv;
        VALUE obj;
    {
        return pgresult_result_with_clear(pgconn_exec(argc, argv, obj));
    }