MySQL Forums
Forum List  »  Stored Procedures

Re: is sqlstate value availableinside the procedure ?
Posted by: Roland Bouman
Date: February 11, 2006 12:52PM

Yeah, but you'd have to enumerate all the sqlstates of you want that to work (wich is insane - if you could enumerate the set, you could probably handle it accordingly.). You really want to just have the internal sqlstate (or mysql errno or other equivalent) available.

But hey, maybe you can all add a comment to the existing bug report/feature request:
http://bugs.mysql.com/bug.php?id=11660

It was verified quite quickly, but that's all the response I got sofar.


The other way around (raising an error yourself) is just as impossible, althought there are some workarounds for that.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: is sqlstate value availableinside the procedure ?
1337
February 11, 2006 12:52PM


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.