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

    • Type: Technical task
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      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

            Assignee:
            Unassigned
            Reporter:
            bar Alexander Barkov
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:

                Git Integration