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

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 5.5(EOL), 10.0(EOL), 10.1(EOL), 10.2(EOL)
    • 10.2.1
    • Parser
    • None
    • 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

              bar Alexander Barkov
              bar Alexander Barkov
              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.