Re: Why should not rely on $sth->rows() ?

2001-06-17 Thread Paul DuBois
At 3:28 PM +0900 6/17/01, Batara Kesuma wrote: >Hi all, > >I read in DuBois's MySQL, Perl DBI API Reference part, it is written: >$rv = $sth->rows(); >Return the number of rows affected by the statement associated with $sth >or -1 if an error occured. This method is used primarily for statements >

Why should not rely on $sth->rows() ?

2001-06-16 Thread Batara Kesuma
Hi all, I read in DuBois's MySQL, Perl DBI API Reference part, it is written: $rv = $sth->rows(); Return the number of rows affected by the statement associated with $sth or -1 if an error occured. This method is used primarily for statements that do not return rows. For SELECT statements, you sh