MySQL Forums
Forum List  »  Stored Procedures

Re: Inserting errors into logs
Posted by: matthew Baynham
Date: April 22, 2020 06:58AM

I'm going to guess that "SQLSTATE '23000'" means it only works for one specific type of error.

I want to have an error handler that will work for any type of error and write in my error log table a text description of what type of error it is or write an error number into my error log table.

So how do I get a error number or an error description from inside the error handler?

Options: ReplyQuote

Written By
April 20, 2020 07:10AM
April 20, 2020 11:29AM
Re: Inserting errors into logs
April 22, 2020 06:58AM
April 22, 2020 02:45PM
April 23, 2020 12:38AM

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.