Commit 0e0f1126 authored by Eugene Kosov's avatar Eugene Kosov Committed by GitHub

MDEV-14649 Assertion `t->mysql_col_len == 8' failed in row_insert_for_mysql

SQL: add check for internal partition table type

Also fixes MDEV-14654
parent 73606a39
......@@ -308,4 +308,7 @@ subpartition by hash(f_int1)
(subpartition subpart11 storage engine = 'innodb',
subpartition subpart12 storage engine = 'innodb'));
insert into t1 values (1);
create or replace table t1 (i int) engine=innodb partition by key(i);
alter table t1 add system versioning;
insert into t1 values();
drop table t1;
......@@ -251,6 +251,10 @@ subpartition by hash(f_int1)
subpartition subpart12 storage engine = 'innodb'));
insert into t1 values (1);
create or replace table t1 (i int) engine=innodb partition by key(i);
alter table t1 add system versioning;
insert into t1 values();
drop table t1;
......
......@@ -7093,6 +7093,8 @@ bool Vers_parse_info::fix_alter_info(THD *thd, Alter_info *alter_info,
{
TABLE_SHARE *share= table->s;
bool integer_fields= create_info->vers_native(thd);
if (create_info->db_type->db_type == DB_TYPE_PARTITION_DB && table->file->native_versioned())
integer_fields= true;
const char *table_name= share->table_name.str;
if (!need_check() && !share->versioned)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment