1
0
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:
bell@sanja.is.com.ua
2002-12-26 17:48:19 +02:00
parent 88e15cdbe8
commit d85a01db2c
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: