Skip to content

Commit

Permalink
fix precedence error in SQL::Translator::Schema::Trigger
Browse files Browse the repository at this point in the history
`!$x eq $y` parses as `(!$x) ne $y`, not `!($x eq $y)`. Just use `ne` to
check for inequality directly.

Fixes #175.
  • Loading branch information
mauke committed Nov 13, 2024
1 parent 682f21a commit 07b1b67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/SQL/Translator/Schema/Trigger.pm
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ around equals => sub {
return $self->error('Names not equal');
}

if (!$self->perform_action_when eq $other->perform_action_when) {
if ($self->perform_action_when ne $other->perform_action_when) {
return $self->error('perform_action_when differs');
}

Expand Down

0 comments on commit 07b1b67

Please sign in to comment.