From: Scott Dugas Date: Wed, 29 Oct 2014 21:42:52 +0000 (-0400) Subject: Set the length for MyType implementation X-Git-Tag: rel_1_0_0~19^2~3^2~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e01dab9b1fbaf8325022c20f76ea9b99fbfdfd73;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git Set the length for MyType implementation Mysql drops the type in these tests, when it does visit_typeclause, since it's an unkown type it just says none, and doesn't do a cast. Firebird also doesn't support varchar with length, it throws an error on these types. --- diff --git a/test/sql/test_types.py b/test/sql/test_types.py index efa0f90ae8..26dc6c8425 100644 --- a/test/sql/test_types.py +++ b/test/sql/test_types.py @@ -558,7 +558,7 @@ class TypeCoerceCastTest(fixtures.TablesTest): @classmethod def define_tables(cls, metadata): class MyType(types.TypeDecorator): - impl = String + impl = String(50) def process_bind_param(self, value, dialect): return "BIND_IN" + str(value)