Skip to content

Commit 278fbe6

Browse files
committed
Add skipped changes to oracle mode parser.
1 parent fa5f26b commit 278fbe6

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

sql/sql_yacc_ora.yy

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5954,10 +5954,11 @@ opt_part_option:
59545954

59555955
opt_versioning_rotation:
59565956
/* empty */ {}
5957-
| INTERVAL_SYM expr interval opt_versioning_interval_start
5957+
| { Lex->expr_allows_subselect= false; }
5958+
INTERVAL_SYM expr interval opt_versioning_interval_start
59585959
{
59595960
partition_info *part_info= Lex->part_info;
5960-
if (unlikely(part_info->vers_set_interval(thd, $2, $3, $4)))
5961+
if (unlikely(part_info->vers_set_interval(thd, $3, $4, $5)))
59615962
MYSQL_YYABORT;
59625963
}
59635964
| LIMIT ulonglong_num
@@ -12866,11 +12867,16 @@ order_clause:
1286612867
*/
1286712868
DBUG_ASSERT(sel->master_unit()->fake_select_lex);
1286812869
lex->current_select= sel->master_unit()->fake_select_lex;
12870+
lex->push_context(&sel->master_unit()->fake_select_lex->context, thd->mem_root);
1286912871
}
1287012872
}
1287112873
order_list
1287212874
{
12873-
12875+
if (Lex->current_select ==
12876+
Lex->current_select->master_unit()->fake_select_lex)
12877+
{
12878+
Lex->pop_context();
12879+
}
1287412880
}
1287512881
;
1287612882

0 commit comments

Comments
 (0)