fetchrow_arrayref vs fetchall_arrayref: memory management?
am 17.06.2006 22:43:44 von epaulson
Hello -
fetchrow_arrayref has a big warning that you need to copy the data
in the array before using it, because the next call to fetchrow_arrayref
will reuse the array.
Does fetchall_arrayref have similiar limitations, and if so do they
just apply to the array of arrarys, or the arrays in the array of
arrays as well?
Thanks!
-Erik
Re: fetchrow_arrayref vs fetchall_arrayref: memory management?
am 19.06.2006 15:32:51 von Tim.Bunce
On Sat, Jun 17, 2006 at 03:43:44PM -0500, Erik Paulson wrote:
> Hello -
>
> fetchrow_arrayref has a big warning that you need to copy the data
> in the array before using it, because the next call to fetchrow_arrayref
> will reuse the array.
>
> Does fetchall_arrayref have similiar limitations, and if so do they
> just apply to the array of arrarys, or the arrays in the array of
> arrays as well?
No (an no).
Tim.