[RDBO] unexpected fetchrow_array in scalar context

2007-03-07 Thread Michael Reece
this is not necessarily a bug in Rose::DB::Object::Manager, but it is questionable so i will raise the issue anyway. :) when calling get_foos_count, Rose::DB::Object::Manager->get_objects does: $count = $sth->fetchrow_array; this was causing me problems (always getting counts of 1) b

Re: [RDBO] unexpected fetchrow_array in scalar context

2007-03-07 Thread John Siracusa
On 3/7/07, Michael Reece <[EMAIL PROTECTED]> wrote: > this was causing me problems (always getting counts of 1) because my > DBI abstraction layer re-implements fetchrow_array, only ever > returning a list. Well there's your problem :) > "[...] For these reasons you should exercise some caution i

Re: [RDBO] unexpected fetchrow_array in scalar context

2007-03-07 Thread Michael Reece
On Mar 7, 2007, at 12:17 PM, John Siracusa wrote: > On 3/7/07, Michael Reece <[EMAIL PROTECTED]> wrote: >> this was causing me problems (always getting counts of 1) because my >> DBI abstraction layer re-implements fetchrow_array, only ever >> returning a list. > > Well there's your problem :) i