[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:

LEAVE `some_loop`;

an optional form would be simply:

LEAVE;

Also, while doing this, it might be nice to make BREAK a synonym for LEAVE so the more common form could be simply:

BREAK;

This would help make the language feel newer and remove one use case for labels in loops (e.g. WHILE loops).


Generated at Thu Feb 08 08:21:10 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.