Skip to content

Commit

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

Fixes #175.
  • Loading branch information
mauke authored Nov 14, 2024
1 parent 682f21a commit a80a423
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 a80a423

Please sign in to comment.