Re: what does $dbh->execute return for a select?

2006-05-19 Thread Tim Bunce
On Fri, May 19, 2006 at 07:24:13PM +0100, Martin J. Evans wrote: > > but I'm doing a select * from table and getting back a true value > which is 1. I thought for a successful select, execute would return > 0E0 (which is true) but not 1. I was hoping to use true but not > 0E0 to identify a non-sel

what does $dbh->execute return for a select?

2006-05-19 Thread Martin J. Evans
According to the DBI docs: == Perform whatever processing is necessary to execute the prepared statement. An undef is returned if an error occurs. A successful execute always returns true regardless of the number of rows affected, even if it's zero (see below). It is always important t