File tree Expand file tree Collapse file tree 3 files changed +17
-0
lines changed
mysql-test/suite/versioning Expand file tree Collapse file tree 3 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -683,4 +683,11 @@ create table t1 (a int) with system versioning partition by system_time
683
683
alter table t1 add partition (partition p2);
684
684
ERROR HY000: Wrong partitioning type, expected type: `SYSTEM_TIME`
685
685
drop table t1;
686
+ #
687
+ # MDEV-22178 Assertion `info->alias.str' failed in partition_info::check_partition_info instead of ER_VERS_WRONG_PARTS
688
+ #
689
+ create or replace table t1 (a int) with system versioning;
690
+ alter table t1 partition by system_time (partition pn current);
691
+ ERROR HY000: Wrong partitions for `t1`: must have at least one HISTORY and exactly one last CURRENT
692
+ drop table t1;
686
693
# End of 10.3 tests
Original file line number Diff line number Diff line change @@ -652,6 +652,15 @@ alter table t1 add partition (partition p2);
652
652
# Cleanup
653
653
drop table t1;
654
654
655
+ --echo #
656
+ --echo # MDEV-22178 Assertion `info->alias.str' failed in partition_info::check_partition_info instead of ER_VERS_WRONG_PARTS
657
+ --echo #
658
+ create or replace table t1 (a int) with system versioning;
659
+ --error ER_VERS_WRONG_PARTS
660
+ alter table t1 partition by system_time (partition pn current);
661
+ # Cleanup
662
+ drop table t1;
663
+
655
664
--echo # End of 10.3 tests
656
665
657
666
--source suite/versioning/common_finish.inc
Original file line number Diff line number Diff line change @@ -9850,6 +9850,7 @@ do_continue:;
9850
9850
9851
9851
tmp_disable_binlog (thd);
9852
9852
create_info->options |=HA_CREATE_TMP_ALTER;
9853
+ create_info->alias = alter_ctx.table_name ;
9853
9854
error= create_table_impl (thd,
9854
9855
&alter_ctx.db , &alter_ctx.table_name ,
9855
9856
&alter_ctx.new_db , &alter_ctx.tmp_name ,
You can’t perform that action at this time.
0 commit comments