mirror of
https://github.com/MariaDB/server.git
synced 2025-11-15 09:02:33 +03:00
Better emulation correct SELECT tree for fields expressions of merging view during name resolving (BUG#6394)
mysql-test/r/view.result: added test with subquery in the FROM clause mysql-test/t/view.test: added test with subquery in the FROM clause sql/table.cc: use SELECT in which view is merging as main SELECT for nameresolving to make correct support for subqueries in the view.
This commit is contained in:
@@ -1744,6 +1744,9 @@ c1
|
||||
select * from v2;
|
||||
c1
|
||||
1
|
||||
select * from (select c1 from v2) X;
|
||||
c1
|
||||
1
|
||||
drop view v2, v1;
|
||||
drop table t1, t2;
|
||||
CREATE TABLE t1 (C1 INT, C2 INT);
|
||||
|
||||
Reference in New Issue
Block a user