mirror of
https://github.com/sqlalchemy/sqlalchemy.git
synced 2026-05-23 17:11:39 -04:00
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.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user