Errorcode in MySQL procedure -


we have been facing small problem in mysql procedure. have placed exception handlers inside procedure. want retrieve errorcode of error can occur inside procedure. there way exact errorcode using kind of function (in same way, use wsagetlasterror in socket apis)?

for example, suppose there select query inside procedure refers nonexisting table. in case, error generated ('table' donot exist). control transferred exception handlers without meaning information. can handle using exact error code in case (1146). if error else, havent mentioned in exception handler? want error code in case checking later. there show errors query how use in procedure processing? hope more clear.

i found question here also: http://www.eggheadcafe.com/software/aspnet/35923137/show-errors-question.aspx noone has answered yet.

at time, there no way examine current mysql error code or sqlstate code in store procedure. it's sql:2003 features not implemented on mysql stored program.

you should check this: http://www.docstoc.com/docs/687360/error-handling-in-stored-procedure


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -