]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
- Expanded on the MySQL ENUM 'strict' documentation a little bit.
authorJason Kirtland <jek@discorporate.us>
Wed, 2 May 2007 01:00:03 +0000 (01:00 +0000)
committerJason Kirtland <jek@discorporate.us>
Wed, 2 May 2007 01:00:03 +0000 (01:00 +0000)
- Oops, clean up after enum unitttest.

lib/sqlalchemy/databases/mysql.py
test/dialect/mysql.py

index d7f65b80b1d970d8de43e00c40c407e8f675a017..9154d03d80fc66fa96d13f59f65258b3e42a6352 100644 (file)
@@ -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
index 63df5dd1394d7b87f4652a441f843897aa095f2c..c74de74ee3cb97d1ef537a5163da13ca5f493b44 100644 (file)
@@ -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()