Skip to content

Commit

Permalink
Code from PR fordfrog#273
Browse files Browse the repository at this point in the history
  • Loading branch information
jalisson committed Oct 2, 2021
1 parent a42c324 commit 36f3de3
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,14 +108,13 @@ public static void parse(final PgDatabase database,
}

parser.expect("EXECUTE");

if (parser.expectOptional("PROCEDURE")) {
trigger.setFunction(parser.getRest());
} else if (parser.expectOptional("FUNCTION")) {
trigger.setFunction(parser.getRest());
if (parser.expectOptional("PROCEDURE")) {
} else if (parser.expectOptional("FUNCTION")) {
} else {
parser.throwUnsupportedCommand();
}

trigger.setFunction(parser.getRest());

final boolean ignoreSlonyTrigger = ignoreSlonyTriggers
&& ("_slony_logtrigger".equals(trigger.getName())
Expand Down

0 comments on commit 36f3de3

Please sign in to comment.