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 /storage/csv | |
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 'storage/csv')
-rw-r--r-- | storage/csv/ha_tina.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/storage/csv/ha_tina.cc b/storage/csv/ha_tina.cc index 75c3f70dec4..b5ef4620108 100644 --- a/storage/csv/ha_tina.cc +++ b/storage/csv/ha_tina.cc @@ -1486,7 +1486,10 @@ int ha_tina::create(const char *name, TABLE *table_arg, for (Field **field= table_arg->s->field; *field; field++) { if ((*field)->real_maybe_null()) - DBUG_RETURN(-1); + { + my_error(ER_CHECK_NOT_IMPLEMENTED, MYF(0), "nullable columns"); + DBUG_RETURN(HA_ERR_UNSUPPORTED); + } } |