Skip to content

Commit 9ffe0db

Browse files
committed
Filter out table items from same_schema if 'notable' is set
1 parent 3abc74c commit 9ffe0db

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

check_postgres.pl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7775,12 +7775,13 @@ sub schema_item_exists {
77757775
next if exists $it->{schemaname} and keys %{ $itemhash->{$db1}{schema} } and ! exists $itemhash->{$db2}{schema}{ $it->{schemaname} };
77767776
}
77777777

7778-
## Skip if this item has a table, but the table does not match
7778+
## Skip if this item has a table, but the table does not match (or if 'notables' is set)
77797779
if ($item_class ne 'table') {
77807780
my $it = $itemhash->{$db1}{$item_class}{$name};
77817781
next if exists $it->{tablename}
77827782
and exists $itemhash->{$db1}{table}{ $it->{tablename} }
7783-
and exists $itemhash->{$db2}{table}{ $it->{tablename} };
7783+
and ! exists $itemhash->{$db2}{table}{ $it->{tablename} };
7784+
next if exists $it->{tablename} and $opt{filtered}{notable};
77847785
}
77857786

77867787
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