mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
A fix for a bug in fix_fields in case like this:
select .. UNION select some_column; This is exhibited in sub-selects and derived tables.
This commit is contained in:
@ -123,3 +123,5 @@ SELECT * FROM (SELECT (SELECT * FROM (SELECT 1 as a) as a )) as b;
|
||||
select * from (select 1 as a) b left join (select 2 as a) c using(a);
|
||||
a a
|
||||
1 NULL
|
||||
SELECT * FROM (SELECT 1 UNION SELECT a) b;
|
||||
Unknown column 'a' in 'field list'
|
||||
|
Reference in New Issue
Block a user