mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-09 23:15:58 -06:00
Fixed an issue where an object of type bytes is not JSON serializable when saving the data from the query tool.
This commit is contained in:
parent
5e0daccf76
commit
a0b8676f61
@ -1987,6 +1987,8 @@ Failed to reset the connection to the server due to following error:
|
||||
|
||||
if parameters:
|
||||
mogrified_sql = cursor.mogrify(query, parameters)
|
||||
if isinstance(mogrified_sql, bytes):
|
||||
mogrified_sql = mogrified_sql.decode(self.python_encoding)
|
||||
return mogrified_sql
|
||||
else:
|
||||
return query
|
||||
|
Loading…
Reference in New Issue
Block a user