Loading mysql-test/r/csv.result +42 −0 Original line number Diff line number Diff line Loading @@ -5029,4 +5029,46 @@ F7 FE LATIN SMALL LETTER THORN FF LATIN SMALL LETTER Y WITH DIAERESIS drop table t1; create table t1(a datetime) engine=csv; insert into t1 values(); select * from t1; a 0000-00-00 00:00:00 drop table t1; create table t1(a set('foo','bar')) engine=csv; insert into t1 values(); select * from t1; a drop table t1; create table t1(a varchar(32)) engine=csv; insert into t1 values(); select * from t1; a drop table t1; create table t1(a int) engine=csv; insert into t1 values(); select * from t1; a 0 drop table t1; create table t1(a blob) engine=csv; insert into t1 values(); select * from t1; a drop table t1; create table t1(a bit(1)) engine=csv; insert into t1 values(); select BIN(a) from t1; BIN(a) 0 drop table t1; create table t1(a enum('foo','bar') default 'foo') engine=csv; insert into t1 values(); select * from t1; a foo drop table t1; End of 5.0 tests mysql-test/t/csv.test +33 −0 Original line number Diff line number Diff line Loading @@ -1427,4 +1427,37 @@ insert into t1 values (0xFF,'LATIN SMALL LETTER Y WITH DIAERESIS'); select hex(c), c, name from t1 order by 1; drop table t1; # # Bug #31473: does not work with NULL value in datetime field # This bug is a 5.1 but is here to prevent 5.0 regression. # create table t1(a datetime) engine=csv; insert into t1 values(); select * from t1; drop table t1; create table t1(a set('foo','bar')) engine=csv; insert into t1 values(); select * from t1; drop table t1; create table t1(a varchar(32)) engine=csv; insert into t1 values(); select * from t1; drop table t1; create table t1(a int) engine=csv; insert into t1 values(); select * from t1; drop table t1; create table t1(a blob) engine=csv; insert into t1 values(); select * from t1; drop table t1; create table t1(a bit(1)) engine=csv; insert into t1 values(); select BIN(a) from t1; drop table t1; create table t1(a enum('foo','bar') default 'foo') engine=csv; insert into t1 values(); select * from t1; drop table t1; --echo End of 5.0 tests Loading
mysql-test/r/csv.result +42 −0 Original line number Diff line number Diff line Loading @@ -5029,4 +5029,46 @@ F7 FE LATIN SMALL LETTER THORN FF LATIN SMALL LETTER Y WITH DIAERESIS drop table t1; create table t1(a datetime) engine=csv; insert into t1 values(); select * from t1; a 0000-00-00 00:00:00 drop table t1; create table t1(a set('foo','bar')) engine=csv; insert into t1 values(); select * from t1; a drop table t1; create table t1(a varchar(32)) engine=csv; insert into t1 values(); select * from t1; a drop table t1; create table t1(a int) engine=csv; insert into t1 values(); select * from t1; a 0 drop table t1; create table t1(a blob) engine=csv; insert into t1 values(); select * from t1; a drop table t1; create table t1(a bit(1)) engine=csv; insert into t1 values(); select BIN(a) from t1; BIN(a) 0 drop table t1; create table t1(a enum('foo','bar') default 'foo') engine=csv; insert into t1 values(); select * from t1; a foo drop table t1; End of 5.0 tests
mysql-test/t/csv.test +33 −0 Original line number Diff line number Diff line Loading @@ -1427,4 +1427,37 @@ insert into t1 values (0xFF,'LATIN SMALL LETTER Y WITH DIAERESIS'); select hex(c), c, name from t1 order by 1; drop table t1; # # Bug #31473: does not work with NULL value in datetime field # This bug is a 5.1 but is here to prevent 5.0 regression. # create table t1(a datetime) engine=csv; insert into t1 values(); select * from t1; drop table t1; create table t1(a set('foo','bar')) engine=csv; insert into t1 values(); select * from t1; drop table t1; create table t1(a varchar(32)) engine=csv; insert into t1 values(); select * from t1; drop table t1; create table t1(a int) engine=csv; insert into t1 values(); select * from t1; drop table t1; create table t1(a blob) engine=csv; insert into t1 values(); select * from t1; drop table t1; create table t1(a bit(1)) engine=csv; insert into t1 values(); select BIN(a) from t1; drop table t1; create table t1(a enum('foo','bar') default 'foo') engine=csv; insert into t1 values(); select * from t1; drop table t1; --echo End of 5.0 tests