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

sql_mode=ORACLE does not include STRICT_TRANS_TABLES

Details

    Description

      This problem was originally reported by Jerome Brauge:

      STRICT_TRANS_TABLES is not set in sql_mode=ORACLE.
      It should be. The following script should return an error:

      set sql_mode=oracle;
      create table t1 (c1 integer not null,c2 integer not null);
      insert into t1 (c1) values(1);
      

      Query OK, 1 row affected, 1 warning
      

      Sergei also proposes to check if we should set additionally set TRADITIONAL when sql_mode=ORACLE.

      Attachments

        Activity

          bar Alexander Barkov created issue -
          bar Alexander Barkov made changes -
          Field Original Value New Value
          Description This problem was originally reported by Jerome Brauge:

          STRICT_TRANS_TABLES is not set in sql_mode=ORACLE.
          It should be. The following script should return an error:

          {code:sql}
          set sql_mode=oracle;
          create table t1 (c1 integer not null,c2 integer not null);
          insert into t1 (c1) values(1);
          {code}
          {noformat}
          Query OK, 1 row affected, 1 warning
          {noformat}
          This problem was originally reported by Jerome Brauge:

          STRICT_TRANS_TABLES is not set in sql_mode=ORACLE.
          It should be. The following script should return an error:

          {code:sql}
          set sql_mode=oracle;
          create table t1 (c1 integer not null,c2 integer not null);
          insert into t1 (c1) values(1);
          {code}
          {noformat}
          Query OK, 1 row affected, 1 warning
          {noformat}

          Sergei also proposes to check if we should set additionally set {{TRADITIONAL}} when {{sql_mode=ORACLE}}.

          bar Alexander Barkov made changes -
          Labels Compatibility

          and SIMULTANEOUS_ASSIGNMENT. But I don't think we can do it in 10.3

          serg Sergei Golubchik added a comment - and SIMULTANEOUS_ASSIGNMENT. But I don't think we can do it in 10.3
          serg Sergei Golubchik made changes -
          Fix Version/s 10.4 [ 22408 ]
          Fix Version/s 10.3 [ 22126 ]
          serg Sergei Golubchik made changes -
          Workflow MariaDB v3 [ 82042 ] MariaDB v4 [ 140383 ]

          People

            bar Alexander Barkov
            bar Alexander Barkov
            Votes:
            1 Vote for this issue
            Watchers:
            4 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.