type_coerce not working with _make_proxy

Issue #2603 resolved
Mike Bayer repo owner created an issue

this affects 0.8 and 0.7, but for the moment I'd like to keep this in 0.8 only. I don't think type_coerce() is in widespread use yet.

class MyType(TypeDecorator):
    impl = Integer

stmt = select([MyType).label('foo')](type_coerce(column('x'),))
stmt2 = stmt.select()
assert isinstance(stmt._raw_columns[0](0).type, MyType)
assert isinstance(stmt.c.foo.type, MyType)
assert isinstance(stmt2.c.foo.type, MyType)

Comments (2)

  1. Log in to comment