From a60cfd3cc33a9ba0486ae4fb517ea8187ebf8fda Mon Sep 17 00:00:00 2001 From: Huang Jun Date: Mon, 18 Jan 2021 14:40:07 +0530 Subject: [PATCH] Fixed an issue while checking the major version of servers in schema diff. --- web/pgadmin/tools/schema_diff/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/pgadmin/tools/schema_diff/__init__.py b/web/pgadmin/tools/schema_diff/__init__.py index 7ca19d2d2..596b976ad 100644 --- a/web/pgadmin/tools/schema_diff/__init__.py +++ b/web/pgadmin/tools/schema_diff/__init__.py @@ -720,8 +720,8 @@ def check_version_compatibility(sid, tid): 'Advanced Server.') def get_round_val(x): - if x < 10000: - return x if x % 100 == 0 else x + 100 - x % 100 + if x < 100000: + return x + 100 - x % 100 else: return x + 10000 - x % 10000