From: Mike Bayer Date: Tue, 30 Nov 2010 18:29:23 +0000 (-0500) Subject: - format guid hexstring explicit with 32 chars, [ticket:1988] X-Git-Tag: rel_0_6_6~31^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4c6e93d72a47aa60fd0e7e82603b193eb64f9af4;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git - format guid hexstring explicit with 32 chars, [ticket:1988] --- diff --git a/doc/build/core/types.rst b/doc/build/core/types.rst index ddb40d045f..1910d9b7d9 100644 --- a/doc/build/core/types.rst +++ b/doc/build/core/types.rst @@ -325,10 +325,10 @@ binary in CHAR(16) if desired:: return str(value) else: if not isinstance(value, uuid.UUID): - return "%x" % uuid.UUID(value) + return "%.32x" % uuid.UUID(value) else: # hexstring - return "%x" % value + return "%.32x" % value def process_result_value(self, value, dialect): if value is None: