mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
added FROM DUAL for derived tables
This commit is contained in:
@ -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;
|
||||
|
@ -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
|
||||
|
@ -997,6 +997,7 @@ merge_insert_types:
|
||||
|
||||
opt_select_from:
|
||||
opt_limit_clause {}
|
||||
| FROM DUAL_SYM {}
|
||||
| select_from select_lock_type;
|
||||
|
||||
udf_func_type:
|
||||
|
Reference in New Issue
Block a user