mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-01-06 14:13:06 -06:00
Fixed RESQL test case.
This commit is contained in:
parent
dea5335ce5
commit
ab01dde2ba
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user