Re: parsing mysql error messages

Jan Kratochvil <[email protected]>
Newsgroups gmane.comp.db.mysql.perl
Message-ID <[email protected]>
Hi,

On Thu, 25 Aug 2005 21:27:42 +0900, Dave Howorth wrote:
...
> It's not the error code I'm looking for. It's details such as which 
> field(s) failed a UNIQUE constraint, for example.

In such case you just want to check it before by SELECT, all properly enclosed
by the transactions. In such case the UNIQUE violation error SHOULD NOT HAPPEN
(OK, you should generally check any errore but you should not be able to invoke
such error yourself).


Regards,
Lace

-- 
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.