Skip to content

Commit

Permalink
MDEV-16490 fix versioning.partition failure
Browse files Browse the repository at this point in the history
  • Loading branch information
FooBarrior committed Sep 9, 2019
1 parent f6a7730 commit aabd1c8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions sql/handler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7252,8 +7252,11 @@ bool Table_scope_and_contents_source_st::vers_check_system_fields(
if (!(alter_info->flags & ALTER_ADD_SYSTEM_VERSIONING))
return false;

return vers_info.check_sys_fields(table_name, db, alter_info,
ha_check_storage_engine_flag(db_type, HTON_NATIVE_SYS_VERSIONING));
bool can_native= ha_check_storage_engine_flag(db_type,
HTON_NATIVE_SYS_VERSIONING)
|| db_type->db_type == DB_TYPE_PARTITION_DB;

return vers_info.check_sys_fields(table_name, db, alter_info, can_native);
}


Expand Down

0 comments on commit aabd1c8

Please sign in to comment.