Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-15422

LEAVE statement without loop name

    XMLWordPrintable

Details

    • Task
    • Status: Open (View Workflow)
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • 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).

      Attachments

        Activity

          People

            Unassigned Unassigned
            rdyas Robert Dyas
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.