diff options
-rwxr-xr-x | check_postgres.pl | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/check_postgres.pl b/check_postgres.pl index 1a1bd7f74..062f0a522 100755 --- a/check_postgres.pl +++ b/check_postgres.pl @@ -5438,6 +5438,9 @@ SQL if (! exists $doublec{$name}) { $db->{perf} .= qq{ Table "$tname" on 1 has constraint "$name" on column "$cname", but 2 does not. }; } + else { + $failcount--; + } } } if (exists $fail{colconstraints}{notexist}{2}) { @@ -5446,6 +5449,9 @@ SQL if (! exists $doublec{$name}) { $db->{perf} .= qq{ Table "$tname" on 2 has constraint "$name" on column "$cname", but 1 does not. }; } + else { + $failcount--; + } } } } @@ -5455,6 +5461,9 @@ SQL if (! exists $doublec{$name}) { $db->{perf} .= qq{ Constraint "$name" is applied to "$t1" on 1, but to "$t2" on 2. }; } + else { + $failcount--; + } } } if (exists $fail{colconstraints}{columndiff}) { @@ -5463,6 +5472,9 @@ SQL if (! exists $doublec{$name}) { $db->{perf} .= qq{ Constraint "$name" on 1 is applied to $t1.$c1, but to $t2.$c2 on 2. }; } + else { + $failcount--; + } } } if (exists $fail{colconstraints}{defdiff}) { @@ -5471,6 +5483,9 @@ SQL if (! exists $doublec{$name}) { $db->{perf} .= qq{ Constraint "$name" on 1 differs from 2 ("$d1" vs. "$d2")}; } + else { + $failcount--; + } } } } |