summaryrefslogtreecommitdiff
path: root/sql/sql_yacc.yy
diff options
context:
space:
mode:
authorbell@sanja.is.com.ua <>2004-02-02 14:58:36 +0200
committerbell@sanja.is.com.ua <>2004-02-02 14:58:36 +0200
commit7593d8a0563d44e44f85bef6aa0487499d782481 (patch)
treee96c96e6e7e04c0e0502278b3eea5238b63d4af8 /sql/sql_yacc.yy
parent8a3e00a05b9f4f59fb4400487bd5dd6c13566832 (diff)
downloadmariadb-git-7593d8a0563d44e44f85bef6aa0487499d782481.tar.gz
fixed parsing mode for derived tables (BUG#2421)
Diffstat (limited to 'sql/sql_yacc.yy')
-rw-r--r--sql/sql_yacc.yy7
1 files changed, 6 insertions, 1 deletions
diff --git a/sql/sql_yacc.yy b/sql/sql_yacc.yy
index f04cc9ec1dc..682ca64f09b 100644
--- a/sql/sql_yacc.yy
+++ b/sql/sql_yacc.yy
@@ -3253,8 +3253,13 @@ select_derived:
YYABORT;
mysql_init_select(lex);
lex->current_select->linkage= DERIVED_TABLE_TYPE;
+ lex->current_select->parsing_place= SELECT_LEX_NODE::SELECT_LIST;
+ }
+ select_options select_item_list
+ {
+ Select->parsing_place= SELECT_LEX_NODE::NO_MATTER;
}
- select_options select_item_list opt_select_from union_opt
+ opt_select_from union_opt
;
opt_outer: