MySQL Forums
Forum List  »  Stored Procedures

Get the code and description of an error within a stored procedure
Posted by: Claudinei Silva
Date: October 31, 2017 07:32PM

Friends

As I am using the command below and it is working correctly, I just need to get the error code and also the error description, how do I get this information inside a stored procedure?



declare pv_ic_Error smallint default 0;
declare continue handler FOR SQLEXCEPTION set pv_ic_Error = 1;


- versão 5.5.20 do MySQL

Options: ReplyQuote


Subject
Views
Written By
Posted
Get the code and description of an error within a stored procedure
3066
October 31, 2017 07:32PM


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.