Fix query history exception for Python 3.6. Fixes #4750.

This commit is contained in:
Murtuza Zabuawala 2019-09-16 19:09:22 +05:30 committed by Akshay Joshi
parent 426d9d5872
commit 80b05973c6
2 changed files with 6 additions and 2 deletions

View File

@ -61,4 +61,5 @@ Bug fixes
| `Issue #4726 <https://redmine.postgresql.org/issues/4726>`_ - Ensure sequence with negative value should be created.
| `Issue #4727 <https://redmine.postgresql.org/issues/4727>`_ - Fix issue where EXEC script doesn't write the complete script for Procedures.
| `Issue #4736 <https://redmine.postgresql.org/issues/4736>`_ - Fix query tool and view data issue with the Italian language.
| `Issue #4742 <https://redmine.postgresql.org/issues/4742>`_ - Ensure Primary Key should be created with Index.
| `Issue #4742 <https://redmine.postgresql.org/issues/4742>`_ - Ensure Primary Key should be created with Index.
| `Issue #4750 <https://redmine.postgresql.org/issues/4750>`_ - Fix query history exception for Python 3.6.

View File

@ -19,7 +19,10 @@ class QueryHistory:
data={
'status': True,
'msg': '',
'result': [bytes(rec.query_info) for rec in list(result)]
'result': [
bytes(rec.query_info, encoding='utf8')
for rec in list(result)
]
}
)