Fix issue where query history is not visible in the query history tab. Fixes #4777

This commit is contained in:
Akshay Joshi 2019-09-25 13:18:33 +05:30
parent c54017eac5
commit 051e5038b5
2 changed files with 4 additions and 1 deletions

View File

@ -21,3 +21,4 @@ Bug fixes
| `Issue #4199 <https://redmine.postgresql.org/issues/4199>`_ - Ensure that 'ENTER' key in the data filter should not run the query.
| `Issue #4755 <https://redmine.postgresql.org/issues/4755>`_ - Ensure that pgAdmin should work behind reverse proxy if the inbuilt server is used as it is.
| `Issue #4756 <https://redmine.postgresql.org/issues/4756>`_ - Fix issue where pgAdmin does not load completely if loaded in an iframe.
| `Issue #4777 <https://redmine.postgresql.org/issues/4777>`_ - Fix issue where query history is not visible in the query history tab.

View File

@ -18,6 +18,8 @@ class QueryHistory:
# In Python 2.7, rec.query_info has buffer data type. Cast it.
if IS_PY2:
result = [bytes(rec.query_info) for rec in list(result)]
else:
result = [rec.query_info for rec in list(result)]
return make_json_response(
data={