Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-10764 PL/SQL parser - Phase 2
  3. MDEV-12085

sql_mode=ORACLE: allow derived tables not to have aliases

    XMLWordPrintable

Details

    • Technical task
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None

    Description

      Oracle does not require derived tables to have aliases:

      SQL> SELECT * FROM (SELECT * FROM t1) WHERE a=20;
       
      	 A
      ----------
      	20
      

      MariaDB returns an error for the same query:

      MariaDB [test]> SELECT * FROM (SELECT * FROM t1) WHERE a=20;
      ERROR 1248 (42000): Every derived table must have its own alias
      

      When running in sql_mode=ORACLE, we'll allow derived tables not to have aliases.

      Attachments

        Activity

          People

            Unassigned Unassigned
            bar Alexander Barkov
            Votes:
            1 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.