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

Blank table alias weirdness

    XMLWordPrintable

Details

    • Bug
    • Status: Stalled (View Workflow)
    • Minor
    • Resolution: Unresolved
    • 10.4(EOL), 10.5, 10.6, 10.7(EOL), 10.8(EOL), 10.9(EOL), 10.10(EOL), 10.11, 11.0(EOL), 11.1(EOL)
    • 10.6, 10.11
    • None
    • None

    Description

      Oddly, this is valid.

      select * from (select * from t1) as ``;
      

      The SQL standard (2016) states this
      Syntax Rules
        1) An <identifier start> is any character in the Unicode General Category classes “Lu”, “Ll”, “Lt”, “Lm”,“Lo”, or “Nl”.
          NOTE 126 — The Unicode General Category classes “Lu”, “Ll”, “Lt”, “Lm”, “Lo”, and “Nl” are assigned to Unicode
          characters that are, respectively, upper-case letters, lower-case letters, title-case letters, modifier letters, other letters, and
          letter numbers.
      

      further https://mariadb.com/kb/en/identifier-names/ states

      _Identifiers are not permitted to contain the ASCII NUL character (U+0000) and supplementary characters (U+10000 and higher). _

      Attachments

        Issue Links

          Activity

            People

              Johnston Rex Johnston
              Johnston Rex Johnston
              Votes:
              0 Vote for this issue
              Watchers:
              2 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.