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,