The thing to realize is that an UPDATE or DELETE that affects 0 rows is not an error, as far as both DBI and MySQL are concerned. This is why you get the 0E0 return value instead of 0: the operation succeeded, but didn't affect any rows.
Having said all that, you should still be using placeholders for UPDATE/DELETE/INSERT statements. You can do that with do() if you want.
Michael
In reply to Re: Return values from $dbh->do vs. $sth->execute();
by mpeppler
in thread Return values from $dbh->do vs. $sth->execute();
by injunjoel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |