Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 093a939 commit c75560bCopy full SHA for c75560b
1 file changed
lib/core/common.py
@@ -2590,7 +2590,10 @@ def decodeIntToUnicode(value):
2590
try:
2591
# http://dev.mysql.com/doc/refman/5.0/en/string-functions.html#function_ord
2592
if Backend.getIdentifiedDbms() in (DBMS.MYSQL,):
2593
- retVal = getUnicode(hexdecode(hex(value)))
+ _ = "%x" % value
2594
+ if len(_) % 2 == 1:
2595
+ _ = "0%s" % _
2596
+ retVal = getUnicode(hexdecode(_))
2597
elif value > 255:
2598
retVal = unichr(value)
2599
else:
0 commit comments