Commit 8f8340ab authored by unknown's avatar unknown
Browse files

Bug#8283 - OPTIMIZE TABLE causes data loss

After merge fix. MyISAM version 10.

parent 91be4f6f
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -841,7 +841,7 @@ _id
DELETE FROM t1 WHERE _id < 8;
SHOW TABLE STATUS LIKE 't1';
Name	Engine	Version	Row_format	Rows	Avg_row_length	Data_length	Max_data_length	Index_length	Data_free	Auto_increment	Create_time	Update_time	Check_time	Collation	Checksum	Create_options	Comment
t1	MyISAM	9	Dynamic	2	#	#	#	#	140	#	#	#	#	#	#		
t1	MyISAM	10	Dynamic	2	#	#	#	#	140	#	#	#	#	#	#		
CHECK TABLE t1 EXTENDED;
Table	Op	Msg_type	Msg_text
test.t1	check	status	OK
@@ -853,7 +853,7 @@ Table Op Msg_type Msg_text
test.t1	check	status	OK
SHOW TABLE STATUS LIKE 't1';
Name	Engine	Version	Row_format	Rows	Avg_row_length	Data_length	Max_data_length	Index_length	Data_free	Auto_increment	Create_time	Update_time	Check_time	Collation	Checksum	Create_options	Comment
t1	MyISAM	9	Dynamic	2	#	#	#	#	0	#	#	#	#	#	#		
t1	MyISAM	10	Dynamic	2	#	#	#	#	0	#	#	#	#	#	#		
SELECT _id FROM t1;
_id
8
@@ -900,7 +900,7 @@ _id
DELETE FROM t1 WHERE _id < 8;
SHOW TABLE STATUS LIKE 't1';
Name	Engine	Version	Row_format	Rows	Avg_row_length	Data_length	Max_data_length	Index_length	Data_free	Auto_increment	Create_time	Update_time	Check_time	Collation	Checksum	Create_options	Comment
t1	MyISAM	9	Dynamic	2	#	#	#	#	140	#	#	#	#	#	#		
t1	MyISAM	10	Dynamic	2	#	#	#	#	140	#	#	#	#	#	#		
CHECK TABLE t1 EXTENDED;
Table	Op	Msg_type	Msg_text
test.t1	check	status	OK
@@ -912,7 +912,7 @@ Table Op Msg_type Msg_text
test.t1	check	status	OK
SHOW TABLE STATUS LIKE 't1';
Name	Engine	Version	Row_format	Rows	Avg_row_length	Data_length	Max_data_length	Index_length	Data_free	Auto_increment	Create_time	Update_time	Check_time	Collation	Checksum	Create_options	Comment
t1	MyISAM	9	Dynamic	2	#	#	#	#	140	#	#	#	#	#	#		
t1	MyISAM	10	Dynamic	2	#	#	#	#	140	#	#	#	#	#	#		
SELECT _id FROM t1;
_id
8