From 3f089f31a3bb1e787d926c78e8f291e59454fb13 Mon Sep 17 00:00:00 2001 From: "Huang, Jun" Date: Tue, 12 Jan 2021 15:09:57 +0530 Subject: [PATCH] Fixed an issue where target connection is wrong while checking version compatibility in schema diff. --- web/pgadmin/tools/schema_diff/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/pgadmin/tools/schema_diff/__init__.py b/web/pgadmin/tools/schema_diff/__init__.py index ecf55967e..7ca19d2d2 100644 --- a/web/pgadmin/tools/schema_diff/__init__.py +++ b/web/pgadmin/tools/schema_diff/__init__.py @@ -709,7 +709,7 @@ def check_version_compatibility(sid, tid): tar_server = Server.query.filter_by(id=tid).first() tar_manager = driver.connection_manager(tar_server.id) - target_conn = src_manager.connection() + target_conn = tar_manager.connection() if not (src_conn.connected() and target_conn.connected()): return False, gettext('Server(s) disconnected.')