mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
The CSV format has always relied on numbers being quoted, which doesn't always happen. This fixes that so that numbers can now be unquoted (and the output does this as well so that the log takes up less space).
This commit is contained in:
@@ -5210,16 +5210,32 @@ 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"
|
||||
1,"string"
|
||||
2","string"
|
||||
"3","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"
|
||||
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;
|
||||
create table float_test (id float,string varchar(64)) Engine=CSV;
|
||||
insert into float_test values(1.0,'string');
|
||||
insert into float_test values(2.23,'serg.g');
|
||||
insert into float_test values(0.03,'string');
|
||||
insert into float_test values(0.19,'string');
|
||||
insert into float_test values(.67,'string');
|
||||
insert into float_test values(9.67,'string');
|
||||
select * from float_test;
|
||||
id string
|
||||
1 string
|
||||
2.23 serg.g
|
||||
0.03 string
|
||||
0.19 string
|
||||
0.67 string
|
||||
9.67 string
|
||||
drop table float_test;
|
||||
|
||||
Reference in New Issue
Block a user