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

wrong result (extra rows) on the query with UNION and brackets

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.4
    • Fix Version/s: 10.4.0
    • Component/s: Parser
    • Labels:
      None

      Description

      MariaDB [test]> (select 1) union (select 1) union (select 1);
      +---+
      | 1 |
      +---+
      | 1 |
      +---+
      1 row in set (0.000 sec)
       
      MariaDB [test]> ((select 1) union (select 1) union (select 1));
      +---+
      | 1 |
      +---+
      | 1 |
      | 1 |
      +---+
      2 rows in set (0.000 sec)
      
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              igor Igor Babaev
              Reporter:
              alice Alice Sherepa
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: