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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
84e55cfc
Commit
84e55cfc
authored
Jun 10, 2004
by
igor@rurik.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sql_yacc.yy:
Correction for nested joins.
parent
356cbe4f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
sql/sql_yacc.yy
sql/sql_yacc.yy
+4
-4
No files found.
sql/sql_yacc.yy
View file @
84e55cfc
...
@@ -4223,9 +4223,9 @@ join_table:
...
@@ -4223,9 +4223,9 @@ join_table:
'(' using_list ')'
'(' using_list ')'
{ add_join_on($3,$7); $$=$3; }
{ add_join_on($3,$7); $$=$3; }
| table_ref LEFT opt_outer JOIN_SYM table_
ref
ON expr
| table_ref LEFT opt_outer JOIN_SYM table_
factor
ON expr
{ add_join_on($5,$7); $5->outer_join|=JOIN_TYPE_LEFT; $$=$5; }
{ add_join_on($5,$7); $5->outer_join|=JOIN_TYPE_LEFT; $$=$5; }
| table_ref LEFT opt_outer JOIN_SYM table_
ref
| table_ref LEFT opt_outer JOIN_SYM table_
factor
{
{
SELECT_LEX *sel= Select;
SELECT_LEX *sel= Select;
sel->save_names_for_using_list($1, $5);
sel->save_names_for_using_list($1, $5);
...
@@ -4238,14 +4238,14 @@ join_table:
...
@@ -4238,14 +4238,14 @@ join_table:
$6->outer_join|=JOIN_TYPE_LEFT;
$6->outer_join|=JOIN_TYPE_LEFT;
$$=$6;
$$=$6;
}
}
| table_ref RIGHT opt_outer JOIN_SYM table_
ref
ON expr
| table_ref RIGHT opt_outer JOIN_SYM table_
factor
ON expr
{
{
LEX *lex= Lex;
LEX *lex= Lex;
if (!($$= lex->current_select->convert_right_join()))
if (!($$= lex->current_select->convert_right_join()))
YYABORT;
YYABORT;
add_join_on($$, $7);
add_join_on($$, $7);
}
}
| table_ref RIGHT opt_outer JOIN_SYM table_
ref
| table_ref RIGHT opt_outer JOIN_SYM table_
factor
{
{
SELECT_LEX *sel= Select;
SELECT_LEX *sel= Select;
sel->save_names_for_using_list($1, $5);
sel->save_names_for_using_list($1, $5);
...
...
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