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

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

    Details

      Description

      In Oracle these keywords work in assignments:

      • CONTAINS
      • LANGUAGE
      • NO
      • CHARSET
      • FOLLOWS
      • PRECEDES

      In MariaDB this script returns a syntax error:

      SET sql_mode=ORACLE;
      DELIMITER /
       
      DECLARE
        CONTAINS INT;
      BEGIN
        CONTAINS:=10;
      END;
      /
       
      DECLARE
        LANGUAGE INT;
      BEGIN
        LANGUAGE:=10;
      END;
      /
       
      DECLARE
        NO INT;
      BEGIN
        NO:=10;
      END;
      /
       
      DECLARE
        CHARSET INT;
      BEGIN
        CHARSET:=10;
      END;
      /
       
      DECLARE
        FOLLOWS INT;
      BEGIN
        FOLLOWS:=10;
      END;
      /
       
      DECLARE
        PRECEDES INT;
      BEGIN
        PRECEDES:=10;
      END;
      /
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated: