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

sql_mode=ORACLE: Keywords from keyword_verb_clause do not work in assignments

    XMLWordPrintable

Details

    Description

      In Oracle these keywords can be used in SP assignments:

      • DO
      • HANDLER
      • REPAIR
      • SHUTDOWN
      • TRUNCATE

      In MariaDB this script fails on syntax error:

      SET sql_mode=ORACLE;
      DELIMITER /
       
      DECLARE
        DO INT;
      BEGIN
        DO :=10;
      END;
      /
       
      DECLARE
        HANDLER INT;
      BEGIN
        HANDLER :=10;
      END;
      /
       
      DECLARE
        REPAIR INT;
      BEGIN
        REPAIR :=10;
      END;
      /
       
      DECLARE
        SHUTDOWN INT;
      BEGIN
        SHUTDOWN :=10;
      END;
      /
       
      DECLARE
        TRUNCATE INT;
      BEGIN
        TRUNCATE :=10;
      END;
      /
      

      Attachments

        Issue Links

          Activity

            People

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