From ab01dde2ba9baeed3a93ae91614e6fa67b541942 Mon Sep 17 00:00:00 2001 From: Akshay Joshi Date: Wed, 12 Jun 2024 18:46:12 +0530 Subject: [PATCH] Fixed RESQL test case. --- .../browser/server_groups/servers/databases/schemas/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/utils.py b/web/pgadmin/browser/server_groups/servers/databases/schemas/utils.py index fd62afa24..68338c086 100644 --- a/web/pgadmin/browser/server_groups/servers/databases/schemas/utils.py +++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/utils.py @@ -527,7 +527,7 @@ def parse_rule_definition(res): condition_part = condition_part_match.group(1) condition_match = re.search( - r"(?:WHERE)?\s+(\([\s\S]*\))\s+(?:DO)?", condition_part) + r"(?:WHERE)\s+(\([\s\S]*\))\s+(?:DO)", condition_part) if condition_match is not None: condition = condition_match.group(1) @@ -537,7 +537,7 @@ def parse_rule_definition(res): # Parse data for statements statement_match = re.search( - r"(?:DO\s+)?(?:INSTEAD\s+)?([\s\S]*)(?:;)?", data_def) + r"(?:DO\s+)(?:INSTEAD\s+)?([\s\S]*)(?:;)", data_def) statement = '' if statement_match is not None: