1
0
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:
unknown
2005-02-10 23:01:59 +02:00
parent 592ee68568
commit 615616b700
3 changed files with 29 additions and 16 deletions

View File

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