1
0
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:
bell@sanja.is.com.ua
2004-09-01 23:27:40 +03:00
parent d38bd725ef
commit d1b667bdd1
3 changed files with 48 additions and 10 deletions

View File

@@ -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;