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

sql_mode=ORACLE: Some keywords do not work as label names: history, system, versioning, without

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 10.3(EOL)
    • 10.3.11
    • Parser
    • None

    Description

      These scripts work fine in Oracle:

      BEGIN
      <<history>>
        NULL;
      END;
      /
      

      BEGIN
      <<system>>
        NULL;
      END;
      /
      

      BEGIN
      <<versioning>>
        NULL;
      END;
      /
      

      BEGIN
      <<without>>
        NULL;
      END;
      /
      

      If I try equivalent scripts in MariaDB:

      SET sql_mode=ORACLE;
      DELIMITER /
      BEGIN
      <<history>>
        NULL;
      END;
      /
      DELIMITER ;
      

      SET sql_mode=ORACLE;
      DELIMITER /
      BEGIN
      <<system>>
        NULL;
      END;
      /
      DELIMITER ;
      

      SET sql_mode=ORACLE;
      DELIMITER /
      BEGIN
      <<versioning>>
        NULL;
      END;
      /
      DELIMITER ;
      

      SET sql_mode=ORACLE;
      DELIMITER /
      BEGIN
      <<without>>
        NULL;
      END;
      /
      DELIMITER ;
      

      they fail, e.g.:

      ERROR 1064 (42000): 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 'history>>
      

      Attachments

        Issue Links

          Activity

            People

              bar Alexander Barkov
              bar Alexander Barkov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

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