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]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.