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
349da1d6
Commit
349da1d6
authored
May 21, 2016
by
Alexander Barkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sql_yacc.yy: Removing unnecessary init_nested_join() and end_nested_join()
from select_derived_init.
parent
c44b2e66
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
15 deletions
+1
-15
sql/sql_yacc.yy
sql/sql_yacc.yy
+1
-15
No files found.
sql/sql_yacc.yy
View file @
349da1d6
...
@@ -11247,32 +11247,18 @@ get_select_lex_derived:
...
@@ -11247,32 +11247,18 @@ get_select_lex_derived:
;
;
select_derived_init:
select_derived_init:
get_select_lex
{
{
LEX *lex= Lex;
LEX *lex= Lex;
if ($1->init_nested_join(lex->thd))
MYSQL_YYABORT;
if (! lex->parsing_options.allows_derived)
if (! lex->parsing_options.allows_derived)
{
{
my_error(ER_VIEW_SELECT_DERIVED, MYF(0));
my_error(ER_VIEW_SELECT_DERIVED, MYF(0));
MYSQL_YYABORT;
MYSQL_YYABORT;
}
}
SELECT_LEX *sel= lex->current_select;
TABLE_LIST *embedding= lex->current_select->embedding;
TABLE_LIST *embedding;
if (!sel->embedding || sel->end_nested_join(lex->thd))
{
/* we are not in parentheses */
my_parse_error(thd, ER_SYNTAX_ERROR);
MYSQL_YYABORT;
}
embedding= Select->embedding;
$$= embedding &&
$$= embedding &&
!embedding->nested_join->join_list.elements;
!embedding->nested_join->join_list.elements;
/* return true if we are deeply nested */
/* return true if we are deeply nested */
// Now we have the same st_select_lex that we had in the beginning
DBUG_ASSERT($1 == Lex->current_select);
}
}
;
;
...
...
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