From a0fcb38e6802fe43ec54c2c102b96d82f9e5f6f3 Mon Sep 17 00:00:00 2001 From: Khushboo Vashi Date: Tue, 14 Apr 2020 13:43:56 +0530 Subject: [PATCH] =?UTF-8?q?Fixed=20syntax=20error=20while=20refreshing=20t?= =?UTF-8?q?he=20existing=C2=A0synonyms.=20Fixes=20#5383?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/en_US/release_notes_4_21.rst | 3 ++- .../servers/databases/schemas/synonyms/__init__.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/en_US/release_notes_4_21.rst b/docs/en_US/release_notes_4_21.rst index 364f34665..5e0845a25 100644 --- a/docs/en_US/release_notes_4_21.rst +++ b/docs/en_US/release_notes_4_21.rst @@ -46,4 +46,5 @@ Bug fixes | `Issue #5351 `_ - Fixed compilation warnings while building pgAdmin. | `Issue #5361 `_ - Fixes an issue where pgAdmin4 GUI does not display properly in IE 11. | `Issue #5362 `_ - Fixed an issue where the identical packages and sequences visible as different in the schema diff tool. -| `Issue #5371 `_ - Fixed tab key navigation for some dialogs. \ No newline at end of file +| `Issue #5371 `_ - Fixed tab key navigation for some dialogs. +| `Issue #5383 `_ - Fixed syntax error while refreshing the existing synonyms. \ No newline at end of file diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/synonyms/__init__.py b/web/pgadmin/browser/server_groups/servers/databases/schemas/synonyms/__init__.py index b50f50162..13623b737 100644 --- a/web/pgadmin/browser/server_groups/servers/databases/schemas/synonyms/__init__.py +++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/synonyms/__init__.py @@ -311,7 +311,7 @@ class SynonymView(PGChildNodeView, SchemaDiffObjectCompare): for row in rset['rows']: return make_json_response( data=self.blueprint.generate_browser_node( - row['name'], + row['oid'], scid, row['name'], icon="icon-%s" % self.node_type