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

SQL_MODE=ORACLE for INTERSECT doesn't work for view

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Critical
    • Resolution: Unresolved
    • 10.5, 10.6, 10.7, 10.8, 10.9
    • 10.5, 10.6, 10.11
    • None

    Description

      Test:

      set SQL_MODE=ORACLE;
       
      create table t12(c1 int);
      insert into t12 values(1);
      insert into t12 values(2);
      create table t13(c1 int);
      insert into t13 values(1);
      insert into t13 values(3);
      create table t234(c1 int);
      insert into t234 values(2);
      insert into t234 values(3);
      insert into t234 values(4);
       
      create view v1 as select * from t13 union select * from t234 intersect select * from t12;
      select * from v1;
      drop view v1;
       
      drop table t12,t13, t234;
      

      Expected result:

      c1
      1
      2
      

      Actual result:

      c1
      1
      3
      2
      

      Attachments

        Issue Links

          Activity

            People

              sanja Oleksandr Byelkin
              lstartseva Lena Startseva
              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.