[MDEV-29553] SQL_MODE=ORACLE for INTERSECT doesn't work for view Created: 2022-09-16  Updated: 2023-11-28

Status: Open
Project: MariaDB Server
Component/s: None
Affects Version/s: 10.5, 10.6, 10.7, 10.8, 10.9
Fix Version/s: 10.5, 10.6, 10.11

Type: Bug Priority: Critical
Reporter: Lena Startseva Assignee: Oleksandr Byelkin
Resolution: Unresolved Votes: 0
Labels: view-protocol

Issue Links:
PartOf
is part of MDEV-27691 make working view-protocol Open

 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



 Comments   
Comment by Oleksandr Byelkin [ 2022-12-01 ]

The problem is that ORACLE priority do not reflects in view prints.

Generated at Thu Feb 08 10:09:29 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.