File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -5954,10 +5954,11 @@ opt_part_option:
5954
5954
5955
5955
opt_versioning_rotation:
5956
5956
/* 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
5958
5959
{
5959
5960
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 )))
5961
5962
MYSQL_YYABORT;
5962
5963
}
5963
5964
| LIMIT ulonglong_num
@@ -12866,11 +12867,16 @@ order_clause:
12866
12867
*/
12867
12868
DBUG_ASSERT(sel->master_unit()->fake_select_lex);
12868
12869
lex->current_select= sel->master_unit()->fake_select_lex;
12870
+ lex->push_context(&sel->master_unit()->fake_select_lex->context, thd->mem_root);
12869
12871
}
12870
12872
}
12871
12873
order_list
12872
12874
{
12873
-
12875
+ if (Lex->current_select ==
12876
+ Lex->current_select->master_unit()->fake_select_lex)
12877
+ {
12878
+ Lex->pop_context();
12879
+ }
12874
12880
}
12875
12881
;
12876
12882
You can’t perform that action at this time.
0 commit comments