Skip to content

Commit

Permalink
Fixed RESQL test case.
Browse files Browse the repository at this point in the history
  • Loading branch information
akshay-joshi committed Jun 12, 2024
1 parent dea5335 commit ab01dde
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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:
Expand Down

0 comments on commit ab01dde

Please sign in to comment.