From: Jason Kirtland Date: Wed, 2 May 2007 01:00:03 +0000 (+0000) Subject: - Expanded on the MySQL ENUM 'strict' documentation a little bit. X-Git-Tag: rel_0_3_8~63 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d0094fe3842bd1996f50f4b51d0b6ab856556e3;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git - Expanded on the MySQL ENUM 'strict' documentation a little bit. - Oops, clean up after enum unitttest. --- diff --git a/lib/sqlalchemy/databases/mysql.py b/lib/sqlalchemy/databases/mysql.py index d7f65b80b1..9154d03d80 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 63df5dd139..c74de74ee3 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()