diff options
author | unknown <gluh@gluh.mysql.r18.ru> | 2004-12-07 14:08:56 +0300 |
---|---|---|
committer | unknown <gluh@gluh.mysql.r18.ru> | 2004-12-07 14:08:56 +0300 |
commit | 9f48eedb4e2251dbc30019ad012cb808385072ab (patch) | |
tree | ebe503ca4c9de3f70a61ade4be4899055502aab2 /mysql-test/r/type_enum.result | |
parent | 0d8d061f738925d3c9da3cc1804fae0eb91db243 (diff) | |
download | mariadb-git-9f48eedb4e2251dbc30019ad012cb808385072ab.tar.gz |
Fix for bug #6840: Default value is not checked in ALTER column SET DEFAULT 'x'
Diffstat (limited to 'mysql-test/r/type_enum.result')
-rw-r--r-- | mysql-test/r/type_enum.result | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mysql-test/r/type_enum.result b/mysql-test/r/type_enum.result index 2ccf32367fb..e5239dcf769 100644 --- a/mysql-test/r/type_enum.result +++ b/mysql-test/r/type_enum.result @@ -1737,3 +1737,11 @@ def test t1 t1 c c 254 3 0 Y 384 0 8 a b c Y NULL NULL drop table t1; +create table t1 (a enum('x','y') default 'x'); +alter table t1 alter a set default 'z'; +ERROR 42000: Invalid default value for 'a' +drop table t1; +create table t1 (a set('x','y') default 'x'); +alter table t1 alter a set default 'z'; +ERROR 42000: Invalid default value for 'a' +drop table t1; |