Commit 5265a165 authored by unknown's avatar unknown

added FROM DUAL for derived tables

parent 717656bb
select * from (select 2 from DUAL) b;
2
2
SELECT 1 as a FROM (SELECT 1 UNION SELECT a) b; SELECT 1 as a FROM (SELECT 1 UNION SELECT a) b;
Unknown column 'a' in 'field list' Unknown column 'a' in 'field list'
SELECT 1 as a FROM (SELECT a UNION SELECT 1) b; SELECT 1 as a FROM (SELECT a UNION SELECT 1) b;
......
select * from (select 2 from DUAL) b;
-- error 1054 -- error 1054
SELECT 1 as a FROM (SELECT 1 UNION SELECT a) b; SELECT 1 as a FROM (SELECT 1 UNION SELECT a) b;
-- error 1054 -- error 1054
......
...@@ -997,6 +997,7 @@ merge_insert_types: ...@@ -997,6 +997,7 @@ merge_insert_types:
opt_select_from: opt_select_from:
opt_limit_clause {} opt_limit_clause {}
| FROM DUAL_SYM {}
| select_from select_lock_type; | select_from select_lock_type;
udf_func_type: udf_func_type:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment