From 4c6e93d72a47aa60fd0e7e82603b193eb64f9af4 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Tue, 30 Nov 2010 13:29:23 -0500 Subject: [PATCH] - format guid hexstring explicit with 32 chars, [ticket:1988] --- doc/build/core/types.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: -- 2.47.2