summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Dugas <scott.dugas@foundationdb.com>2014-10-29 17:42:52 -0400
committerScott Dugas <scott.dugas@foundationdb.com>2014-10-29 17:42:52 -0400
commite01dab9b1fbaf8325022c20f76ea9b99fbfdfd73 (patch)
treeb124cae62353f9a62a0482bd497c42e98517f80a
parentfdbea87958628b641a855d4c3b35833330de49e0 (diff)
downloadsqlalchemy-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.py2
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)