mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fix regression issue caused due to encoding fixes.
This commit is contained in:
parent
9d96d6123e
commit
efeb9d6d20
@ -936,10 +936,6 @@ WHERE
|
||||
formatted exception message
|
||||
"""
|
||||
|
||||
encoding = self.python_encoding
|
||||
|
||||
query = query.encode(encoding)
|
||||
|
||||
# Convert the params based on python_encoding
|
||||
params = self.escape_params_sqlascii(params)
|
||||
|
||||
@ -950,6 +946,10 @@ WHERE
|
||||
return False, str(cur)
|
||||
query_id = random.randint(1, 9999999)
|
||||
|
||||
encoding = self.python_encoding
|
||||
|
||||
query = query.encode(encoding)
|
||||
|
||||
current_app.logger.log(
|
||||
25,
|
||||
u"Execute (async) for server #{server_id} - {conn_id} (Query-id: "
|
||||
|
Loading…
Reference in New Issue
Block a user