summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Sabino Mullane2010-02-01 21:57:41 +0000
committerGreg Sabino Mullane2010-02-01 21:57:41 +0000
commitdce5668693855c2e15ec3e18347a5b88ebaa5583 (patch)
tree52c85e909420cc2632d4aa1a2c87c6c088fed59e
parenteca427ea29be6c0660df7875c90b777205b223e1 (diff)
Don't track "generic" table constraints (e.. $1, $2) using same_schema
-rwxr-xr-xcheck_postgres.pl7
1 files changed, 6 insertions, 1 deletions
diff --git a/check_postgres.pl b/check_postgres.pl
index 6237ee00a..05353e673 100755
--- a/check_postgres.pl
+++ b/check_postgres.pl
@@ -4745,8 +4745,12 @@ sub check_same_schema {
warn "Query processing failed:\n$line\nfrom $SQL\n";
next;
}
+ my ($ichi,$ni,$san,$shi) = ($1,$2,$3,$4);
- $thing{$x}{constraints}{"$1.$2"} = "$3.$4";
+ ## No sense in grabbing "generic" constraints
+ next if $ni =~ /^\$\d+$/o;
+
+ $thing{$x}{constraints}{"$ichi.$ni"} = "$san.$shi";
}
}
$SQL = <<'SQL'; # cribbed from information_schema.constraint_column_usage
@@ -7956,6 +7960,7 @@ Items not specifically attributed are by Greg Sabino Mullane.
Fix bug preventing column constraint differences from 2 > 1 for same_schema from being shown.
Allow aliases 'dbname1', 'dbhost1', 'dbport1',etc.
Added "nolanguage" as a filter for the same_schema option.
+ Don't track "generic" table constraints (e.. $1, $2) using same_schema
=item B<Version 2.13.0> (January 29, 2010)