mirror of
https://github.com/MariaDB/server.git
synced 2025-11-12 10:22:39 +03:00
Bug#22080
"CHECK fails to identify some corruption" change to allow it to detect more errors in data format
This commit is contained in:
parent
8b80901dcf
commit
f6129d68ce
@@ -5205,3 +5205,22 @@ select * from bug15205;
|
||||
val
|
||||
drop table bug15205;
|
||||
drop table bug15205_2;
|
||||
create table bug22080_1 (id int,string varchar(64)) Engine=CSV;
|
||||
create table bug22080_2 (id int,string varchar(64)) Engine=CSV;
|
||||
create table bug22080_3 (id int,string varchar(64)) Engine=CSV;
|
||||
insert into bug22080_1 values(1,'string');
|
||||
insert into bug22080_1 values(2,'string');
|
||||
insert into bug22080_1 values(3,'string');
|
||||
"1","string"
|
||||
2","string"
|
||||
"3","string"
|
||||
check table bug22080_2;
|
||||
Table Op Msg_type Msg_text
|
||||
test.bug22080_2 check error Corrupt
|
||||
"1","string"
|
||||
"2",string"
|
||||
"3","string"
|
||||
check table bug22080_3;
|
||||
Table Op Msg_type Msg_text
|
||||
test.bug22080_3 check error Corrupt
|
||||
drop tables bug22080_1,bug22080_2,bug22080_3;
|
||||
|
||||
@@ -1582,3 +1582,26 @@ select * from bug15205_2;
|
||||
select * from bug15205;
|
||||
drop table bug15205;
|
||||
drop table bug15205_2;
|
||||
|
||||
#
|
||||
# Bug#22080 "CHECK fails to identify some corruption"
|
||||
#
|
||||
|
||||
create table bug22080_1 (id int,string varchar(64)) Engine=CSV;
|
||||
create table bug22080_2 (id int,string varchar(64)) Engine=CSV;
|
||||
create table bug22080_3 (id int,string varchar(64)) Engine=CSV;
|
||||
insert into bug22080_1 values(1,'string');
|
||||
insert into bug22080_1 values(2,'string');
|
||||
insert into bug22080_1 values(3,'string');
|
||||
|
||||
# Currupt the file as described in the bug report
|
||||
--exec sed -e 's/"2"/2"/' $MYSQLTEST_VARDIR/master-data/test/bug22080_1.CSV > $MYSQLTEST_VARDIR/master-data/test/bug22080_2.CSV
|
||||
--exec sed -e 's/2","/2",/' $MYSQLTEST_VARDIR/master-data/test/bug22080_1.CSV > $MYSQLTEST_VARDIR/master-data/test/bug22080_3.CSV
|
||||
|
||||
--exec cat $MYSQLTEST_VARDIR/master-data/test/bug22080_2.CSV
|
||||
check table bug22080_2;
|
||||
|
||||
--exec cat $MYSQLTEST_VARDIR/master-data/test/bug22080_3.CSV
|
||||
check table bug22080_3;
|
||||
|
||||
drop tables bug22080_1,bug22080_2,bug22080_3;
|
||||
|
||||
Reference in New Issue
Block a user