]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Set the length for MyType implementation
authorScott Dugas <scott.dugas@foundationdb.com>
Wed, 29 Oct 2014 21:42:52 +0000 (17:42 -0400)
committerScott Dugas <scott.dugas@foundationdb.com>
Wed, 29 Oct 2014 21:42:52 +0000 (17:42 -0400)
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.

test/sql/test_types.py

index efa0f90ae8af40afbeaa6289362f945e0dc95efa..26dc6c84259a506714c466625ef373571cbe617d 100644 (file)
@@ -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)