mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
fixed bug of subselect in derived tables
mysql-test/r/subselect.result: test of subselect in derived table mysql-test/t/subselect.test: test of subselect in derived table
This commit is contained in:
@ -30,6 +30,8 @@ Unknown column 'a' in 'field list'
|
||||
SELECT 1 as a FROM (SELECT 1) HAVING (SELECT a)=1;
|
||||
a
|
||||
1
|
||||
SELECT 1 FROM (SELECT (SELECT a));
|
||||
Unknown column 'a' in 'field list'
|
||||
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8;
|
||||
create table t1 (a int);
|
||||
create table t2 (a int, b int);
|
||||
|
@ -13,6 +13,8 @@ SELECT 1 FROM (SELECT 1 as a) HAVING (SELECT a)=1;
|
||||
-- error 1054
|
||||
SELECT (SELECT 1), a;
|
||||
SELECT 1 as a FROM (SELECT 1) HAVING (SELECT a)=1;
|
||||
-- error 1054
|
||||
SELECT 1 FROM (SELECT (SELECT a));
|
||||
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8;
|
||||
create table t1 (a int);
|
||||
create table t2 (a int, b int);
|
||||
|
Reference in New Issue
Block a user