added FROM DUAL for derived tables

This commit is contained in:
unknown 2002-12-26 17:48:19 +02:00
parent 717656bb1c
commit 5265a1656e
3 changed files with 5 additions and 0 deletions

View File

@ -1,3 +1,6 @@
select * from (select 2 from DUAL) b;
2
2
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;

View File

@ -1,3 +1,4 @@
select * from (select 2 from DUAL) b;
-- error 1054
SELECT 1 as a FROM (SELECT 1 UNION SELECT a) b;
-- error 1054

View File

@ -997,6 +997,7 @@ merge_insert_types:
opt_select_from:
opt_limit_clause {}
| FROM DUAL_SYM {}
| select_from select_lock_type;
udf_func_type: