diff options
author | Scott Dugas <scott.dugas@foundationdb.com> | 2014-10-29 17:42:52 -0400 |
---|---|---|
committer | Scott Dugas <scott.dugas@foundationdb.com> | 2014-10-29 17:42:52 -0400 |
commit | e01dab9b1fbaf8325022c20f76ea9b99fbfdfd73 (patch) | |
tree | b124cae62353f9a62a0482bd497c42e98517f80a | |
parent | fdbea87958628b641a855d4c3b35833330de49e0 (diff) | |
download | sqlalchemy-e01dab9b1fbaf8325022c20f76ea9b99fbfdfd73.tar.gz |
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.
-rw-r--r-- | test/sql/test_types.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/sql/test_types.py b/test/sql/test_types.py index efa0f90ae..26dc6c842 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) |