1
0
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:
Sinisa@sinisa.nasamreza.org
2002-12-17 20:15:15 +02:00
parent e56fb1962f
commit a83ed34f83
3 changed files with 12 additions and 0 deletions

View File

@ -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'