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

Fix subselect to return a syntax error instead of "Incorrect usage of UNION and LIMIT"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.5, 10.1, 10.2, 10.0
    • Fix Version/s: 10.2.1
    • Component/s: Parser
    • Labels:
      None
    • Sprint:
      10.2.1-1, 10.2.1-2

      Description

      Queries like this:

      SELECT EXISTS (SELECT * FROM t1 LIMIT 1 UNION ALL SELECT * FROM t2);
      

      return

      ERROR 1221 (HY000): Incorrect usage of UNION and LIMIT
      

      We'll fix the grammar in sql_yacc.yy to return a syntax error instead.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: