mirror of
https://github.com/MariaDB/server.git
synced 2025-09-02 09:41:40 +03:00
fixed staistic of subquery if outer field resolved in merged view (BUG#5247)
This commit is contained in:
@@ -1230,3 +1230,11 @@ c
|
||||
<EFBFBD>
|
||||
drop view v<>;
|
||||
drop table t<>;
|
||||
create table t1 (a int, b int);
|
||||
insert into t1 values (1,2), (1,3), (2,4), (2,5), (3,10);
|
||||
create view v1(c) as select a+1 from t1 where b >= 4;
|
||||
select c from v1 where exists (select * from t1 where a=2 and b=c);
|
||||
c
|
||||
4
|
||||
drop view v1;
|
||||
drop table t1;
|
||||
|
Reference in New Issue
Block a user