diff --git a/mysql-test/suite/versioning/r/partition.result b/mysql-test/suite/versioning/r/partition.result index f158206125a..e1daa14587f 100644 --- a/mysql-test/suite/versioning/r/partition.result +++ b/mysql-test/suite/versioning/r/partition.result @@ -18,14 +18,18 @@ x delete from t1; select * from t1; x +select * from t1 partition (p0); +x +select * from t1 partition (p1); +x select * from t1 for system_time all; x 3 300 -select * from t1 partition (p0); +select * from t1 partition (p0) for system_time all; x 3 -select * from t1 partition (p1); +select * from t1 partition (p1) for system_time all; x 300 # Engine change native <-> non-native versioning prohibited diff --git a/mysql-test/suite/versioning/t/partition.test b/mysql-test/suite/versioning/t/partition.test index a08c14eff0c..a0fc00daa80 100644 --- a/mysql-test/suite/versioning/t/partition.test +++ b/mysql-test/suite/versioning/t/partition.test @@ -16,9 +16,11 @@ select * from t1 partition (p1); delete from t1; select * from t1; -select * from t1 for system_time all; select * from t1 partition (p0); select * from t1 partition (p1); +select * from t1 for system_time all; +select * from t1 partition (p0) for system_time all; +select * from t1 partition (p1) for system_time all; --echo # Engine change native <-> non-native versioning prohibited --replace_result $default_engine DEFAULT_ENGINE diff --git a/sql/partition_info.h b/sql/partition_info.h index 1e291a94e3f..b167284d3fd 100644 --- a/sql/partition_info.h +++ b/sql/partition_info.h @@ -292,7 +292,7 @@ public: part_expr(NULL), subpart_expr(NULL), item_free_list(NULL), first_log_entry(NULL), exec_log_entry(NULL), frm_log_entry(NULL), bitmaps_are_initialized(FALSE), - list_array(NULL), err_value(0), + list_array(NULL), vers_info(NULL), err_value(0), part_info_string(NULL), curr_part_elem(NULL), current_partition(NULL), curr_list_object(0), num_columns(0), table(NULL),