> >     def fetch_result(querystring)
> >       result=[]
> >       qres = dbhandle.query(qstr)
> >       while row = fetch_result.fetch_row # deliver next row
> >         result.push row # add row to the result array - is this OK?
> >       end
> >       result # return result array
> >     end

> Your sample seems to be missing something: Where does "fetch_result" 
> come into existence?  And why don't you use "qres"?

Sorry, my fault when condensing the original code to a form better
useful for discussing this issue (and during which I also renamed
variables to make understanding easier in this context). The
line should say:

  while row = qres.fetch_row ....
  
> Attempting to answer your question, if you just append rows without 
> modification you might as well do fetch_result.to_a.

Given my corrections, I guess you would propose

  result = qres.to_a

Right? But this would give:

   warning: default `to_a' will be obsolete

and not return the result. The reason is that qres is, in my case, the
result object for a MySql query, so I think to_a is not applicable here.

Ronald
-- 
Ronald Fischer <ronald.fischer / venyon.com>
Phone: +49-89-452133-162