diff options
author | unknown <antony@pcg5ppc.xiphis.org> | 2007-10-25 17:23:12 -0700 |
---|---|---|
committer | unknown <antony@pcg5ppc.xiphis.org> | 2007-10-25 17:23:12 -0700 |
commit | 0724eb88e2540cdbecb3c58a02dc79dba2358359 (patch) | |
tree | bf1e282815c0e6266876e140234b144f527898b8 /mysql-test/t/csv.test | |
parent | 22b367054440a030b6b6eda6eed69459e533fc6f (diff) | |
download | mariadb-git-0724eb88e2540cdbecb3c58a02dc79dba2358359.tar.gz |
protect bug31473 from regressing into 5.0
Diffstat (limited to 'mysql-test/t/csv.test')
-rw-r--r-- | mysql-test/t/csv.test | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/mysql-test/t/csv.test b/mysql-test/t/csv.test index b724b4ce47c..db5cb92c3e6 100644 --- a/mysql-test/t/csv.test +++ b/mysql-test/t/csv.test @@ -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 |