MySQL Forums
Forum List  »  Newbie

MYSQL - Error Codes
Posted by: MuraliDharan V
Date: January 07, 2008 05:07AM

Hi All,

I just want to know onething.

Can i Write a UDF Function for getting the MYSQL Error Codes and the
MYSQL Error Messages for all available SQLSTATE?

My idea is to track the SQLSTATE(Error Code) With ERROR MESSAGE if any EXCEPTION occured in
my Stored Procedure.

Currently i hardcoded some basic SQLSTATE inside my stored procedure on assumption and tracking the
specific errors...If any other SQLSTATE occurred then also i need to track it with SQLSTATE and the
ERROR message.

Can some one suggest and give me a hint/example for this?

Thanks,
Murali.V

Options: Reply• Quote


Subject
Written By
Posted
MYSQL - Error Codes
January 07, 2008 05:07AM


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.