mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-01-07 22:53:45 -06:00
[Python 3 compatibility] 'qtLiteral' functions needs to return data in
unicode.
This commit is contained in:
parent
30a316ad09
commit
b1dbcd0932
@ -760,7 +760,14 @@ class Driver(BaseDriver):
|
||||
|
||||
@staticmethod
|
||||
def qtLiteral(value):
|
||||
return adapt(value).getquoted()
|
||||
|
||||
res = adapt(value).getquoted()
|
||||
|
||||
# Returns in bytes, we need to convert it in string
|
||||
if isinstance(res, bytes):
|
||||
return res.decode()
|
||||
else:
|
||||
return res
|
||||
|
||||
@staticmethod
|
||||
def ScanKeywordExtraLookup(key):
|
||||
|
Loading…
Reference in New Issue
Block a user