diff options
author | Greg Sabino Mullane | 2009-07-29 02:37:04 +0000 |
---|---|---|
committer | Greg Sabino Mullane | 2009-07-29 02:37:04 +0000 |
commit | 95de19b00a113f92079ac368ce9e44d04f37d8c8 (patch) | |
tree | 0e99f01f1f73eeb294cfa415b439f8df83229346 /check_postgres.pl | |
parent | 8a7931a3694141b74927b019cea92e3a62c81fa9 (diff) |
Make sure we decrement failcount when avoiding dupes on perf output.
Diffstat (limited to 'check_postgres.pl')
-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--; + } } } } |