mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
fixed derived table visibility scope for derived tables with union
mysql-test/r/derived.result: test of error messages mysql-test/t/derived.test: SELECT 1 as a FROM (SELECT 1 UNION SELECT a) b;
This commit is contained in:
@ -1,3 +1,7 @@
|
||||
SELECT 1 as a FROM (SELECT 1 UNION SELECT a) b;
|
||||
Unknown column 'a' in 'field list'
|
||||
SELECT 1 as a FROM (SELECT a UNION SELECT 1) b;
|
||||
Unknown column 'a' in 'field list'
|
||||
drop table if exists t1,t2,t3;
|
||||
CREATE TABLE t1 (a int not null, b char (10) not null);
|
||||
insert into t1 values(1,'a'),(2,'b'),(3,'c'),(3,'c');
|
||||
|
@ -1,3 +1,7 @@
|
||||
-- error 1054
|
||||
SELECT 1 as a FROM (SELECT 1 UNION SELECT a) b;
|
||||
-- error 1054
|
||||
SELECT 1 as a FROM (SELECT a UNION SELECT 1) b;
|
||||
drop table if exists t1,t2,t3;
|
||||
CREATE TABLE t1 (a int not null, b char (10) not null);
|
||||
insert into t1 values(1,'a'),(2,'b'),(3,'c'),(3,'c');
|
||||
|
Reference in New Issue
Block a user