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
27dc59e7
Commit
27dc59e7
authored
Nov 28, 2002
by
pem@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed the reduce/reduce conflicts introduced by subselects.
parent
c6e6fa8f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
14 deletions
+19
-14
sql/sql_yacc.yy
sql/sql_yacc.yy
+19
-14
No files found.
sql/sql_yacc.yy
View file @
27dc59e7
...
...
@@ -1635,17 +1635,9 @@ table_to_table:
select:
select_init { Lex->sql_command=SQLCOM_SELECT; };
/* Need select_init2 for subselects. */
select_init:
SELECT_SYM select_part2
{
LEX *lex= Lex;
if (lex->current_select->set_braces(false))
{
send_error(lex->thd, ER_SYNTAX_ERROR);
YYABORT;
}
}
union
SELECT_SYM select_init2
|
'(' SELECT_SYM select_part2 ')'
{
...
...
@@ -1661,6 +1653,19 @@ select_init:
sel->master_unit();
} union_opt;
select_init2:
select_part2
{
LEX *lex= Lex;
if (lex->current_select->set_braces(false))
{
send_error(lex->thd, ER_SYNTAX_ERROR);
YYABORT;
}
}
union
;
select_part2:
{
LEX *lex=Lex;
...
...
@@ -4388,7 +4393,7 @@ singleval_subselect:
};
singleval_subselect_init:
select_init
select_init
2
{
$$= new Item_singleval_subselect(YYTHD,
Lex->current_select->master_unit()->
...
...
@@ -4403,7 +4408,7 @@ exists_subselect:
};
exists_subselect_init:
select_init
select_init
2
{
$$= new Item_exists_subselect(YYTHD,
Lex->current_select->master_unit()->
...
...
@@ -4418,13 +4423,13 @@ in_subselect:
};
in_subselect_init:
select_init
select_init
2
{
$$= Lex->current_select->master_unit()->first_select();
};
subselect_start:
'('
'('
SELECT_SYM
{
if (mysql_new_select(Lex, 1))
YYABORT;
...
...
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