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 if you use
> fetchrow_array in a scalar context."
>
> [...] the last sentence does provide a warning, so perhaps you can be
> convinced to change RDBOM line 1500 to
>
>         ($count) = $sth->fetchrow_array;

In this case, I know that I'm only ever fetching one column
(COUNT(*)), so there's no ambiguity.  I admit no wrongdoing; I'm
following the letter of the DBI spec! :)  But I'll change it just for
you... ;)

(in SVN)
-John

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Rose-db-object mailing list
Rose-db-object@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rose-db-object

Reply via email to