[MDEV-4924] Error 1645: RESIGNAL when handler not active Created: 2013-08-19 Updated: 2013-08-20 Resolved: 2013-08-20 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 10.0.4 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | Federico Razzoli | Assignee: | Unassigned |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Description |
|
RESIGNAL can only be used "when handler is active" (like the error message says). In 5.5, if a condition handler contains "CALL x()", then x() could contain a RESIGNAL, and it worked as expected. But in MariaDB 10 and MySQL 5.6, an error is produced at runtime: Example:
Let's try it:
(I'm reporting this to MariaDB because Oracle registration requires too many personal data) |
| Comments |
| Comment by Elena Stepanova [ 2013-08-20 ] |
|
Hi Federico, If I understand correctly, it's documented as an intentional change between 5.5 and 5.6. Could you please take a look and confirm (or not confirm) that it's the same case? |
| Comment by Federico Razzoli [ 2013-08-20 ] |
|
Ouch! That's a bad change for me. |
| Comment by Elena Stepanova [ 2013-08-20 ] |
|
No problem, it was enlightening to find out. |