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

    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

              • Assignee:
                bar Alexander Barkov
                Reporter:
                bar Alexander Barkov
              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: