diff options
author | Igor Babaev <igor@askmonty.org> | 2016-09-30 17:39:55 -0700 |
---|---|---|
committer | Igor Babaev <igor@askmonty.org> | 2016-09-30 17:40:43 -0700 |
commit | 3b314ec6339e391f1e0670a3d584dbc3a5a5cb29 (patch) | |
tree | f321ccc09898c749828a63f0ad36cba16d85cd50 /sql | |
parent | 6681a4998e6c05f6350f9160012a6b6ef84ff513 (diff) | |
download | mariadb-git-3b314ec6339e391f1e0670a3d584dbc3a5a5cb29.tar.gz |
Fixed bug mdev-10933.
The bug was caused by a misplaced construct opt_with_clause
for one of the variants of CREATE ... SELECT.
Diffstat (limited to 'sql')
-rw-r--r-- | sql/sql_yacc.yy | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_yacc.yy b/sql/sql_yacc.yy index b833ade350f..1865f2e6321 100644 --- a/sql/sql_yacc.yy +++ b/sql/sql_yacc.yy @@ -5529,10 +5529,10 @@ opt_part_option: */ create_select_query_specification: - SELECT_SYM opt_with_clause create_select_part2 create_select_part3 + opt_with_clause SELECT_SYM create_select_part2 create_select_part3 create_select_part4 { - Select->set_with_clause($2); + Select->set_with_clause($1); } ; |