Merge "Update UUID type for py3.5 compat"

This commit is contained in:
Jenkins 2016-07-14 17:28:32 +00:00 committed by Gerrit Code Review
commit 0782116b0c
1 changed files with 2 additions and 2 deletions

View File

@ -42,10 +42,10 @@ class UUID(TypeDecorator):
return str(value)
else:
if not isinstance(value, uuid.UUID):
return "%.32x" % uuid.UUID(value)
return "%.32x" % uuid.UUID(value).int
else:
# hexstring
return "%.32x" % value
return "%.32x" % value.int
def process_result_value(self, value, dialect):
if value is None: