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

Using aggregate and window function in unexpected places can crash the server

    XMLWordPrintable

    Details

      Description

      These examples crash the server:

      CREATE OR REPLACE PROCEDURE p1 (a TEXT) BEGIN END;
      CALL p1(RANK() OVER (ORDER BY 1));
      

      CREATE OR REPLACE PROCEDURE p1 (a TEXT) BEGIN END;
      CALL p1(ROW_NUMBER() OVER ());
      

      CREATE OR REPLACE PROCEDURE p1 (a TEXT) BEGIN END;
      CALL p1(SUM(1));
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              bar Alexander Barkov
              Reporter:
              bar Alexander Barkov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: