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-select statement that affected rows.

You can use $sth->{NUM_OF_FIELDS} to tell if it's a SELECT statement.

Tim.

Reply via email to