Partition: uninitialized vers_info fix

This commit is contained in:
Aleksey Midenkov 2017-12-22 16:39:28 +03:00
parent 9cbf9e3b92
commit ea49441c41
3 changed files with 10 additions and 4 deletions

View File

@ -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

View File

@ -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

View File

@ -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),