Details

    Description

      For Oracle compatibility, we'll allow NOT NULL constraint for routine variables in sql_mode=ORACLE

      DECLARE
        a NOT NULL INT;
      BEGIN
        a:=1;
        a:=NULL; -- This should return an error
      END;
      

      and in the default sql_mode:

      BEGIN
        DECLARE a NOT NULL INT;
        SET a=1;
        SET a=NULL; -- This should return an error
      END;
      

      Attachments

        Activity

          bar Alexander Barkov created issue -
          bar Alexander Barkov made changes -
          Field Original Value New Value
          Description For Oracle compatibility, we'll allow {{NOT NULL}} constraint for routine variables in {{sql_mode=ORACLE}}
          {code:sql}
          DECLARE
            a NOT NULL INT;
          BEGIN
            a:=1;
            a:=NULL;
          END;
          {code}
          and in the default {{sql_mode}}:
          {code:sql}
          BEGIN
            DECLARE a NOT NULL INT;
            a:=1;
            a:=NULL;
          END;
          {code}
          For Oracle compatibility, we'll allow {{NOT NULL}} constraint for routine variables in {{sql_mode=ORACLE}}
          {code:sql}
          DECLARE
            a NOT NULL INT;
          BEGIN
            a:=1;
            a:=NULL;
          END;
          {code}
          and in the default {{sql_mode}}:
          {code:sql}
          BEGIN
            DECLARE a NOT NULL INT;
            SET a=1;
            SET a=NULL;
          END;
          {code}
          bar Alexander Barkov made changes -
          Description For Oracle compatibility, we'll allow {{NOT NULL}} constraint for routine variables in {{sql_mode=ORACLE}}
          {code:sql}
          DECLARE
            a NOT NULL INT;
          BEGIN
            a:=1;
            a:=NULL;
          END;
          {code}
          and in the default {{sql_mode}}:
          {code:sql}
          BEGIN
            DECLARE a NOT NULL INT;
            SET a=1;
            SET a=NULL;
          END;
          {code}
          For Oracle compatibility, we'll allow {{NOT NULL}} constraint for routine variables in {{sql_mode=ORACLE}}
          {code:sql}
          DECLARE
            a NOT NULL INT;
          BEGIN
            a:=1;
            a:=NULL; -- This should return an error
          END;
          {code}
          and in the default {{sql_mode}}:
          {code:sql}
          BEGIN
            DECLARE a NOT NULL INT;
            SET a=1;
            SET a=NULL; -- This should return an error
          END;
          {code}
          serg Sergei Golubchik made changes -
          Fix Version/s 10.3 [ 22126 ]
          ralf.gebhardt Ralf Gebhardt made changes -
          Assignee Alexander Barkov [ bar ]
          bar Alexander Barkov made changes -
          Labels Compatibility
          serg Sergei Golubchik made changes -
          Workflow MariaDB v3 [ 81220 ] MariaDB v4 [ 140340 ]

          People

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