From 50b846b5af17d9b48f10b7830f842b991c45b703 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Wed, 19 Dec 2012 01:26:12 +0100 Subject: [PATCH] Update lib/core/common.py Fixing wrong assumption in case of MySQL inference international character retrieval --- lib/core/common.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/lib/core/common.py b/lib/core/common.py index d6e2fd9ad..e22c656a3 100644 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -2500,13 +2500,7 @@ def decodeIntToUnicode(value): if isinstance(value, int): try: - # http://dev.mysql.com/doc/refman/5.0/en/string-functions.html#function_ord - if Backend.getIdentifiedDbms() in (DBMS.MYSQL,): - retVal = getUnicode(struct.pack('B' if value < 256 else ' 255: - retVal = unichr(value) - else: - retVal = getUnicode(chr(value)) + retVal = unichr(value) except: retVal = INFERENCE_UNKNOWN_CHAR