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

[Regression] Bug #26115 (resolution label is fixed) still causes a crash

    XMLWordPrintable

Details

    • Not for Release Notes

    Description

      Hey, I noticed that the bugs with the Resolution label set to "fixed" are still triggering on 12.1.1-rc and 11.8.3. It's most likely a regression issue.
      description:
      MariaDB [test]> CREATE OR REPLACE FUNCTION cnt()
      -> RETURNS INTEGER
      -> NO SQL
      -> BEGIN
      -> RETURN 1;
      -> END;
      -> //
      Query OK, 0 rows affected (0.004 sec)

      MariaDB [test]>
      MariaDB [test]> CREATE OR REPLACE PROCEDURE p1()
      -> NO SQL
      -> BEGIN
      -> DECLARE i INTEGER;
      -> FOR i IN 1..cnt() DO
      -> SELECT i;
      -> END FOR;
      -> END;
      -> //
      Query OK, 0 rows affected (0.005 sec)

      MariaDB [test]> delimiter ;
      MariaDB [test]> CALL p1();
      ---
      i
      ---
      1
      ---
      1 row in set (0.001 sec)

      Query OK, 0 rows affected (0.001 sec)

      MariaDB [test]>
      MariaDB [test]>
      MariaDB [test]> CALL p1();
      imchifan@imchifan-vm:~/bugforge$

      delimiter //
      CREATE OR REPLACE FUNCTION cnt()
      RETURNS INTEGER
      NO SQL
      BEGIN
         RETURN 1;
      END;
      //
      CREATE OR REPLACE PROCEDURE p1()
      NO SQL
      BEGIN
         DECLARE i INTEGER;
         FOR i IN 1..cnt() DO
            SELECT i;
         END FOR;
      END;
      //
      delimiter ;
      CALL p1();
      CALL p1();
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              imchifan 刘启帆
              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.