Re: parsing mysql error messages
Jochen Wiedmann <[email protected]>
| Newsgroups | gmane.comp.db.mysql.perl |
|---|---|
| Message-ID | <[email protected]> |
Dave Howorth wrote: > But the detailed information, which users want and which my attempt at > automatic recovery needs, is buried in the MySQL mysql_error string, > AFAIK. So it seems like I need to parse that and I can't believe I'm the > first to want to do it :) Nonsense, check $dbh->err or $dbh->state (same for $sth). They should contain the error code as a number. Jochen -- MySQL Perl Mailing List For list archives: http://lists.mysql.com/perl To unsubscribe: http://lists.mysql.com/[email protected]