diff options
author | unknown <svoj@mysql.com/june.mysql.com> | 2007-12-07 14:44:03 +0400 |
---|---|---|
committer | unknown <svoj@mysql.com/june.mysql.com> | 2007-12-07 14:44:03 +0400 |
commit | 0fdc16bd13bca09abe4026d892d71eccb99fd121 (patch) | |
tree | c1217badd29f96ef8f0e0a4b9169278537890aea /mysql-test/r/csv.result | |
parent | b9ecec8622d26ce82156250e30747a4a0d93c332 (diff) | |
download | mariadb-git-0fdc16bd13bca09abe4026d892d71eccb99fd121.tar.gz |
BUG#32817 - though CSV is marked as supported create table is rejected
with error 1005.
CSV doesn't support nullable fields. Report descriptive error if create
table with nullable field is requested.
mysql-test/r/csv.result:
A test case for BUG#32817.
mysql-test/t/csv.test:
A test case for BUG#32817.
storage/csv/ha_tina.cc:
CSV doesn't support nullable fields. Report descriptive error if create
table with nullable field is requested.
Diffstat (limited to 'mysql-test/r/csv.result')
-rw-r--r-- | mysql-test/r/csv.result | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/mysql-test/r/csv.result b/mysql-test/r/csv.result index 69f77dc3cd8..b0033383f00 100644 --- a/mysql-test/r/csv.result +++ b/mysql-test/r/csv.result @@ -5364,13 +5364,19 @@ BIN(a) 0 drop table t1; create table t1(a enum('foo','bar') default null) engine=csv; -ERROR HY000: Can't create table 'test.t1' (errno: -1) +ERROR 42000: The storage engine for the table doesn't support nullable columns create table t1(a enum('foo','bar') default 'foo') engine=csv; -ERROR HY000: Can't create table 'test.t1' (errno: -1) +ERROR 42000: The storage engine for the table doesn't support nullable columns create table t1(a enum('foo','bar') default 'foo' not null) engine=csv; insert into t1 values(); select * from t1; a foo drop table t1; +CREATE TABLE t1(a INT) ENGINE=CSV; +ERROR 42000: The storage engine for the table doesn't support nullable columns +SHOW WARNINGS; +Level Code Message +Error 1178 The storage engine for the table doesn't support nullable columns +Error 1005 Can't create table 'test.t1' (errno: 138) End of 5.1 tests |