Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
d85a01db
Commit
d85a01db
authored
Dec 26, 2002
by
bell@sanja.is.com.ua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added FROM DUAL for derived tables
parent
88e15cdb
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
0 deletions
+5
-0
mysql-test/r/derived.result
mysql-test/r/derived.result
+3
-0
mysql-test/t/derived.test
mysql-test/t/derived.test
+1
-0
sql/sql_yacc.yy
sql/sql_yacc.yy
+1
-0
No files found.
mysql-test/r/derived.result
View file @
d85a01db
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;
...
...
mysql-test/t/derived.test
View file @
d85a01db
select
*
from
(
select
2
from
DUAL
)
b
;
--
error
1054
SELECT
1
as
a
FROM
(
SELECT
1
UNION
SELECT
a
)
b
;
--
error
1054
...
...
sql/sql_yacc.yy
View file @
d85a01db
...
...
@@ -997,6 +997,7 @@ merge_insert_types:
opt_select_from:
opt_limit_clause {}
| FROM DUAL_SYM {}
| select_from select_lock_type;
udf_func_type:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment