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

          bar Alexander Barkov created issue -
          alvinr Alvin Richards (Inactive) made changes -
          Field Original Value New Value
          Parent MDEV-10142 [ 56873 ] MDEV-10764 [ 57940 ]
          serg Sergei Golubchik made changes -
          Labels Compatibility
          ralf.gebhardt Ralf Gebhardt made changes -
          Support case ID not-26307
          ralf.gebhardt Ralf Gebhardt made changes -
          NRE Projects AC-2610/DEFERRED
          ralf.gebhardt Ralf Gebhardt made changes -
          Assignee Alexander Barkov [ bar ]
          serg Sergei Golubchik made changes -
          Workflow MariaDB v3 [ 79686 ] MariaDB v4 [ 140222 ]

          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.