Skip to content

Commit 3abc74c

Browse files
committed
Now that we can same_schema filter by object, make sure the table exists on both side
1 parent a04a349 commit 3abc74c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

check_postgres.pl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7774,10 +7774,13 @@ sub schema_item_exists {
77747774
my $it = $itemhash->{$db1}{$item_class}{$name};
77757775
next if exists $it->{schemaname} and keys %{ $itemhash->{$db1}{schema} } and ! exists $itemhash->{$db2}{schema}{ $it->{schemaname} };
77767776
}
7777+
77777778
## Skip if this item has a table, but the table does not match
77787779
if ($item_class ne 'table') {
77797780
my $it = $itemhash->{$db1}{$item_class}{$name};
7780-
next if exists $it->{tablename} and ! exists $itemhash->{$db2}{table}{ $it->{tablename} };
7781+
next if exists $it->{tablename}
7782+
and exists $itemhash->{$db1}{table}{ $it->{tablename} }
7783+
and exists $itemhash->{$db2}{table}{ $it->{tablename} };
77817784
}
77827785

77837786
my $one = '1';

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy