Uploaded image for project: 'MariaDB MaxScale'
  1. MariaDB MaxScale
  2. MXS-4147

multi-statement detection is not working for create procedure

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Not a Bug
    • 2.4
    • N/A
    • N/A
    • None

    Description

      select 1; CREATE PROCEDURE doiterate(p1 INT)
      BEGIN
      label1: LOOP
      SET p1 = p1 + 1;
      IF p1 < 10 THEN ITERATE label1; END IF;
      LEAVE label1;
      END LOOP label1;
      END;

      The create procedure has multiple statements, and there's `if else end if` clause.
      The current logic seems not correct in handling SQL above.

      Attachments

        Activity

          People

            markus makela markus makela
            daniel_xu_forever danielforever
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

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