Skip to content

Commit 5b9b184

Browse files
committed
In same_schema, do not complain about items inside non-matched schemas
1 parent 90b97ee commit 5b9b184

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

check_postgres.pl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7581,6 +7581,12 @@ sub schema_item_exists {
75817581

75827582
if (! exists $itemhash->{$db2}{$item_class}{$name}) {
75837583

7584+
## Skip if the schema does not match (and we have at least one schema, indicating lack of 'noschema')
7585+
if ($item_class ne 'schema') {
7586+
my $it = $itemhash->{$db1}{$item_class}{$name};
7587+
next if exists $it->{schema} and keys %{ $itemhash->{$db1}{schema} } and ! exists $itemhash->{$db2}{schema}{ $it->{schema} };
7588+
}
7589+
75847590
my $one = '1';
75857591

75867592
## Special exception for columns: do not add if the table is non-existent

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