Bug #12384 | Stored procedure HANDLER can't handle "table not found" errors | ||
---|---|---|---|
Submitted: | 4 Aug 2005 14:26 | Modified: | 28 Aug 2005 16:55 |
Reporter: | Anders Karlsson | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server | Severity: | S3 (Non-critical) |
Version: | 5.0.10 | OS: | Linux (Linux) |
Assigned to: | CPU Architecture: | Any |
[4 Aug 2005 14:26]
Anders Karlsson
[4 Aug 2005 14:45]
Anders Karlsson
Sorry, I forgot that table t1 needs to be created first. But really, you are seeing the problem itself here. The SQLEXCEPTION for a non-existing table isn't caught. Add the following before creating the procedures and running the reproduction statements: DROP TABLE IF EXISTS t1; CREATE TABLE t1(c1 CHAR(1)); And you will see that myproc3a() and myproc3b() behave differently, and that the fact that column "nosuchcol" doesn't exist in table t1 is handled by the handler. But the fact that table "nosuchtab" is not handled by the defined handler.
[16 Aug 2005 8:02]
Anders Karlsson
I tried it on 5.0.10. Please check on that. If it reproduces there and not in 5.0.12, then we can close this one. If not, I need to find more reproduction data.
[28 Aug 2005 16:55]
Hartmut Holzgraefe
Thank you for your bug report. This issue has already been fixed in the latest released version of that product, which you can download at http://www.mysql.com/downloads/ Additional info: verified with 5.0.10, ok in 5.0.11