diff options
-rw-r--r-- | lib/sqlalchemy/databases/mysql.py | 5 | ||||
-rw-r--r-- | test/dialect/mysql.py | 1 |
2 files changed, 5 insertions, 1 deletions
diff --git a/lib/sqlalchemy/databases/mysql.py b/lib/sqlalchemy/databases/mysql.py index d7f65b80b..9154d03d8 100644 --- a/lib/sqlalchemy/databases/mysql.py +++ b/lib/sqlalchemy/databases/mysql.py @@ -283,7 +283,10 @@ class MSEnum(MSString): strict Defaults to False: ensure that a given value is in this ENUM's - range of permissible value when inserting or updating rows. + range of permissible values when inserting or updating rows. + Note that MySQL will not raise a fatal error if you attempt to + store an out of range value- an alternate value will be stored + instead. (See MySQL ENUM documentation.) charset Defaults to None: a column-level character set for this string diff --git a/test/dialect/mysql.py b/test/dialect/mysql.py index 63df5dd13..c74de74ee 100644 --- a/test/dialect/mysql.py +++ b/test/dialect/mysql.py @@ -263,6 +263,7 @@ class TypesTest(AssertMixin): ('a', 'a', 'a', 'a'), ('b', 'b', 'b', 'b'), ('', '', 'a', 'a')]) + enum_table.drop() if __name__ == "__main__": testbase.main() |