mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-01-08 15:13:10 -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
|
@staticmethod
|
||||||
def qtLiteral(value):
|
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
|
@staticmethod
|
||||||
def ScanKeywordExtraLookup(key):
|
def ScanKeywordExtraLookup(key):
|
||||||
|
Loading…
Reference in New Issue
Block a user