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

Keywords UNBOUNDED, PRECEDING, FOLLOWING, TIES, OTHERS should be non-reserved

    XMLWordPrintable

Details

    • 10.2.4-1, 10.2.4-2

    Description

      These queries:

      SELECT 1 AS UNBOUNDED;
      SELECT 1 AS PRECEDING;
      SELECT 1 AS FOLLOWING;
      SELECT 1 AS TIES;
      SELECT 1 AS OTHERS;
      SELECT 1 FROM EXCLUDE;
      

      return a syntax error:

      ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNBOUNDED' at line 1
      

      This is wrong. According to the standard, these keywords must be non-reserved.

      All these queries worked fine in 10.1. So this is a regression.

      This query correctly fails:

      SELECT 1 FROM WINDOW;
      

      as WINDOW is a reserved keyword, according to the standard.

      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.