Fixed Unicode character issue causing error on Python2 environment. Fixes #5279

This commit is contained in:
Murtuza Zabuawala 2020-03-20 15:17:45 +05:30 committed by Akshay Joshi
parent 26d0a3e5cb
commit a7ba446703
3 changed files with 4 additions and 3 deletions

View File

@ -24,3 +24,4 @@ Bug fixes
| `Issue #4942 <https://redmine.postgresql.org/issues/4942>`_ - Fixed chrome driver download utility issue for Ubuntu. | `Issue #4942 <https://redmine.postgresql.org/issues/4942>`_ - Fixed chrome driver download utility issue for Ubuntu.
| `Issue #5143 <https://redmine.postgresql.org/issues/5143>`_ - Fix an accessibility issue to maximize the panel for all alertify dialog. | `Issue #5143 <https://redmine.postgresql.org/issues/5143>`_ - Fix an accessibility issue to maximize the panel for all alertify dialog.
| `Issue #5221 <https://redmine.postgresql.org/issues/5221>`_ - Improve logic to get the DDL statements as a part of the comparison. | `Issue #5221 <https://redmine.postgresql.org/issues/5221>`_ - Improve logic to get the DDL statements as a part of the comparison.
| `Issue #5279 <https://redmine.postgresql.org/issues/5279>`_ - Fixed Unicode character issue causing error on Python2 environment.

View File

@ -495,7 +495,7 @@ class PartitionsView(BaseTableView, DataTypeReader, VacuumSettings,
partition_data['default_partition_header'] = \ partition_data['default_partition_header'] = \
'-- Create a default partition to prevent the data loss.\n' \ '-- Create a default partition to prevent the data loss.\n' \
'-- It helps when none of the partitions of a relation\n' \ '-- It helps when none of the partitions of a relation\n' \
'-- matches the inserted data.' '-- matches the inserted data.'
# Create temporary name for partitions # Create temporary name for partitions
for item in source_data['partitions']: for item in source_data['partitions']:

View File

@ -568,7 +568,7 @@ def check_version_compatibility(sid, tid):
tar_manager = driver.connection_manager(tar_server.id) tar_manager = driver.connection_manager(tar_server.id)
if src_manager.server_type != tar_manager.server_type: if src_manager.server_type != tar_manager.server_type:
return False, gettext('Schema diff does not support the comparison ' return False, gettext('Schema diff does not support the comparison '
'between Postgres Server and EDB Postgres ' 'between Postgres Server and EDB Postgres '
'Advanced Server.') 'Advanced Server.')