Bug #17724 | Proper Runtime Error Management for SP's, Triggers and Functions | ||
---|---|---|---|
Submitted: | 26 Feb 2006 10:54 | Modified: | 27 Feb 2006 13:48 |
Reporter: | Roland Bouman | Email Updates: | |
Status: | Duplicate | Impact on me: | |
Category: | MySQL Server | Severity: | S2 (Serious) |
Version: | 5.1, 5.0 | OS: | NA |
Assigned to: | CPU Architecture: | Any |
[26 Feb 2006 10:54]
Roland Bouman
[26 Feb 2006 10:58]
Roland Bouman
I already mentioned bug 11660 in and earlier comment. I also put upt feature request 11661 (support for the SIGNAL syntax), which has not even been verified.
[26 Feb 2006 21:43]
Markus Popp
I also think that the implementation of error handling would be very important.
[27 Feb 2006 13:48]
Valeriy Kravchuk
Thank you for a problem report. I agree that all these features are needed (and our developers are already working on them). Please, wait for 5.2 and you'll see the results. In the meantime, I have to mark this report as a duplicate of your Bug #11661 and Bug #11660 (both are verified already, and being worked on for some time).
[29 May 2007 23:43]
Igor Cherny
This is extremely needed feature. It exists in Oracle and MS SQL. I am very surprised that MySQL doesn't have it. Right now as a work around - we had to create a table, fill it with MySQL Error Codes and corresponding messages and get the messages by the code in a huge CASE statement (one for each of the possible errors). This is insane, but that's the only way we could find to preserve the error message if we were to preserve transaction integrity. Please fix this!!! Give me the @@ERROR and @@ERROR_MESSAGE and we can rule the world with MySQL! :)