mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-11-26 02:30:21 -06:00
Fix query mogrify issue.
This commit is contained in:
parent
9b7a38ac52
commit
c35d449d7e
@ -1017,7 +1017,6 @@ WHERE db.datname = current_database()""")
|
||||
encoding = self.python_encoding
|
||||
|
||||
query = query.encode(encoding)
|
||||
|
||||
self.__async_cursor = cur
|
||||
self.__async_query_id = query_id
|
||||
|
||||
@ -1814,7 +1813,7 @@ Failed to reset the connection to the server due to following error:
|
||||
else:
|
||||
|
||||
if parameters:
|
||||
return psycopg.sql.SQL(query.format(parameters)
|
||||
).as_string(self.conn)
|
||||
with psycopg.ClientCursor(self.conn) as _cur:
|
||||
return _cur.mogrify(query, parameters)
|
||||
else:
|
||||
return query
|
||||
|
Loading…
Reference in New Issue
Block a user