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

"MEMBER" was not a keyword, while now using it as alias returns error

    XMLWordPrintable

Details

    • Can result in hang or crash

    Description

      SELECT 1 member;
      SELECT 1 AS member;
      CREATE TABLE t1 (x INT);
      SELECT x member FROM t1;
      DROP TABLE t1;
      

      Server version: 13.1.0-MariaDB-asan-debug-log source revision: 7dbc4bef9e3d3dda83e39065f570d97cb8cca66f

      ER_PARSE_ERROR (1064): 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 '' at line 1
      

      Please detect if the next token is OF, so that if somebody had it before as alias - there will be no regression after upgrade
      JarirBob FYI

      Attachments

        Issue Links

          Activity

            People

              danblack Daniel Black
              alice Alice Sherepa
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.