MySQL Forums
Forum List  »  Perl

Trigger error or statement error?
Posted by: Rick Baer
Date: June 12, 2008 02:38PM

I have a table with a trigger for AFTER INSERT. If a Perl script attempts an INSERT and the $sth->execute fails, how can I programmatically tell if the failure was the INSERT statement or the trigger?

Using Perl 5.8.8, MySQL 5.0.45, DBD-mysql 3.0002

Options: ReplyQuote

Written By
Trigger error or statement error?
June 12, 2008 02:38PM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.