From c19fc3628c6b309bbe123de07913e1f04e0fd0fa Mon Sep 17 00:00:00 2001 From: Akshay Joshi Date: Thu, 20 Apr 2023 15:37:23 +0530 Subject: [PATCH] Ensure that the ERD tool should work with the external database after moving to psycopg3. #6159 --- docs/en_US/release_notes_7_1.rst | 1 + web/pgadmin/tools/erd/__init__.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/en_US/release_notes_7_1.rst b/docs/en_US/release_notes_7_1.rst index 0b9c45813..7271b1a3b 100644 --- a/docs/en_US/release_notes_7_1.rst +++ b/docs/en_US/release_notes_7_1.rst @@ -39,3 +39,4 @@ Bug fixes | `Issue #6130 `_ - Ensure to quote the primary key value if needed while deleting rows from the table. | `Issue #6137 `_ - Fixed error occurring while dumping the servers from CLI. | `Issue #6138 `_ - Throw an appropriate error when a table for which View/Edit data is open, is deleted, and query is executed. + | `Issue #6159 `_ - Ensure that the ERD tool should work with the external database after moving to psycopg3. diff --git a/web/pgadmin/tools/erd/__init__.py b/web/pgadmin/tools/erd/__init__.py index 425ce82da..a95896dc3 100644 --- a/web/pgadmin/tools/erd/__init__.py +++ b/web/pgadmin/tools/erd/__init__.py @@ -478,7 +478,7 @@ def panel(trans_id): if "linux" in _platform: is_linux_platform = True - s = Server.query.filter_by(id=params['sid']).first() + s = Server.query.filter_by(id=int(params['sid'])).first() params.update({ 'bgcolor': s.bgcolor,