[MDEV-15422] LEAVE statement without loop name Created: 2018-02-26 Updated: 2018-02-26 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Minor |
| Reporter: | Robert Dyas | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Description |
|
To modernize the procedural language, it would seem desirable to be able to use the key word LEAVE without a loop name to leave the current loop. So rather than:
an optional form would be simply:
Also, while doing this, it might be nice to make BREAK a synonym for LEAVE so the more common form could be simply:
This would help make the language feel newer and remove one use case for labels in loops (e.g. WHILE loops). |