[MDEV-18031] Allow to create EVENT using compound statements out of stored programs Created: 2018-12-18 Updated: 2022-04-28 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Events |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major |
| Reporter: | Chris Wilson | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 1 |
| Labels: | None | ||
| Description |
|
I fear this is going to get reclassified as a documentation bug rather than the behaviour being changed, but worth a shot:- At present if one tries to create an EVENT within a compound statement but outside of a stored routine, the attempt fails with: ERROR 1576 (HY000): Recursion of EVENT DDL statements is forbidden when body is present For example: DELIMITER // |
| Comments |
| Comment by Elena Stepanova [ 2018-12-28 ] | ||||
|
Can you explain what you mean by behaviour being changed? Has it ever worked before? If it did and it stopped working, it is a code bug, otherwise I indeed tend to see it as a documentation shortage:
And for the note, the error message "Recursion of EVENT DDL statements is forbidden when body is present" is really awful for any situation, and not suitable for this one (either within or outside an SP) at all. | ||||
| Comment by Chris Wilson [ 2019-01-02 ] | ||||
|
No; I don't believe that the behaviour has ever changed - I was just hoping that this report might trigger this new feature rather than a fix to the documentation! | ||||
| Comment by Elena Stepanova [ 2019-01-02 ] | ||||
|
I'm converting it to a feature request, then. | ||||
| Comment by markus makela [ 2022-04-28 ] | ||||
|
This also affects creation of events inside stored procedures:
|