File tree Expand file tree Collapse file tree 3 files changed +18
-0
lines changed Expand file tree Collapse file tree 3 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -770,4 +770,12 @@ create table t (a int);
770
770
select 1 in (select count(*) from t t1 join (t t2 join t t3 on (t1.a != 0)));
771
771
ERROR 42S22: Unknown column 't1.a' in 'on clause'
772
772
drop table t;
773
+ #
774
+ # MDEV-28578 Server crashes in Item_field::fix_outer_field after CREATE SELECT
775
+ #
776
+ create table t1 (i int) ;
777
+ create table t2 (j int) ;
778
+ create table t4 select * from t1 join t2 on (select t3.i);
779
+ ERROR 42S22: Unknown column 't3.i' in 'field list'
780
+ drop table t1, t2;
773
781
# End of 10.4 tests
Original file line number Diff line number Diff line change @@ -638,4 +638,13 @@ create table t (a int);
638
638
select 1 in (select count(*) from t t1 join (t t2 join t t3 on (t1.a != 0)));
639
639
drop table t;
640
640
641
+ --echo #
642
+ --echo # MDEV-28578 Server crashes in Item_field::fix_outer_field after CREATE SELECT
643
+ --echo #
644
+ create table t1 (i int) ;
645
+ create table t2 (j int) ;
646
+ --error ER_BAD_FIELD_ERROR
647
+ create table t4 select * from t1 join t2 on (select t3.i);
648
+ drop table t1, t2;
649
+
641
650
--echo # End of 10.4 tests
Original file line number Diff line number Diff line change @@ -2693,6 +2693,7 @@ create:
2693
2693
lex->create_info.default_table_charset= NULL;
2694
2694
lex->name= null_clex_str;
2695
2695
lex->create_last_non_select_table= lex->last_table();
2696
+ lex->inc_select_stack_outer_barrier();
2696
2697
}
2697
2698
create_body
2698
2699
{
You can’t perform that action at this time.
0 commit comments