- changed status to resolved
regression in CAST behavior due to type_coerce enhancement
Issue #2899
resolved
works in 0.8, fails in 0.9:
from sqlalchemy import *
class MyType(TypeDecorator):
impl = Unicode
type_ = MyType()
value = cast(literal("hi", type_), Unicode)
assert value.clause.type is type_ # <- becomes unicode, MyType is lost
Comments (2)
-
reporter -
reporter - removed milestone
Removing milestone: 0.9.0 (automated comment)
- Log in to comment
cac7320eeb16e62f347dbf009