From 0d0094fe3842bd1996f50f4b51d0b6ab856556e3 Mon Sep 17 00:00:00 2001 From: Jason Kirtland Date: Wed, 2 May 2007 01:00:03 +0000 Subject: [PATCH] - Expanded on the MySQL ENUM 'strict' documentation a little bit. - Oops, clean up after enum unitttest. --- lib/sqlalchemy/databases/mysql.py | 5 ++++- test/dialect/mysql.py | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) 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() -- 2.47.2