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

LP:1001506 - Crash on a query with GROUP BY and user variables

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      The following simple test case causes a crash of the server in MariaDB 5.2/5.3/5.5:

      CREATE TABLE t1(a int);
      INSERT INTO t1 VALUES (1), (2);
      SELECT DISTINCT @a:=MIN(t1.a) FROM t1, t1 AS t2
      GROUP BY @b:=(SELECT COUNT > t2.a);
      DROP TABLE t1;

      (See also bug #57197 from bugs.mysql.com)

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            ratzpo Rasmus Johansson added a comment -

            Launchpad bug id: 1001506

            Show
            ratzpo Rasmus Johansson added a comment - Launchpad bug id: 1001506

              People

              • Assignee:
                timour Timour Katchaounov
                Reporter:
                igor Igor Babaev
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: