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(EOL), 10.6, 10.7(EOL), 10.8(EOL), 10.9(EOL)
    • 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

              alice Alice Sherepa
              lstartseva Lena Startseva
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - 0d
                  0d
                  Remaining:
                  Remaining Estimate - 1d
                  1d
                  Logged:
                  Remaining Estimate - 1d
                  0.05h

                  Git Integration

                    Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.