pg.UUID() should accept uuid()
Issue #1956
resolved
patch forthcoming
Comments (4)
-
Account Deleted -
reporter - marked as enhancement
OK just for reference, here's the workaround. This ticket is targeted at 0.6 as we aren't really doing 0.5 releases at this point:
class GUIDType(TypeDecorator): impl = PGUuid def process_bind_param(self, value, dialect): if value is None: return value else: return str(value) def process_result_value(self, value, dialect): if value is None: return value else: return uuid.UUID(value)
-
reporter - changed status to resolved
-
reporter - removed milestone
Removing milestone: 0.6.6 (automated comment)
- Log in to comment
Copied from post by Jonathan Gardner on sqlalchemy mailing list http://groups.google.com/group/sqlalchemy/browse_thread/thread/38215e14b1b89feb/570bedff1a414311?lnk=gst&q=uuid#570bedff1a414311: