Skip to content

Commit fef629e

Browse files
committed
Adjust tests for no-more-oids feature of Postgres 12
1 parent acc57de commit fef629e

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

t/02_same_schema.t

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -273,16 +273,22 @@ Table "public.berri" does not exist on all databases:
273273
\s*Missing on: 1, 3\s*$}s,
274274
$t);
275275

276-
$t = qq{$S reports table attribute differences};
277-
$dbh1->do(q{CREATE TABLE berri(bfd int) WITH OIDS});
278-
like ($cp1->run($connect2),
279-
qr{^$label CRITICAL.*Items not matched: 1 .*
276+
$t = qq{$S reports table attribute (WITH OIDS) differences};
277+
if ($ver < 120000) {
278+
$dbh1->do(q{CREATE TABLE berri(bfd int) WITH OIDS});
279+
like ($cp1->run($connect2),
280+
qr{^$label CRITICAL.*Items not matched: 1 .*
280281
Table "public.berri":
281282
\s*"relhasoids" is different:
282283
\s*Database 1: t
283284
\s*Database 2: f\s*$}s,
284-
$t);
285-
$dbh1->do(q{ALTER TABLE berri SET WITHOUT OIDS});
285+
$t);
286+
$dbh1->do(q{ALTER TABLE berri SET WITHOUT OIDS});
287+
}
288+
else {
289+
$dbh1->do(q{CREATE TABLE berri(bfd int)});
290+
pass ('No need to test relhasoids on modern databases');
291+
}
286292

287293
$t = qq{$S reports simple table acl differences};
288294
$dbh1->do(q{GRANT SELECT ON TABLE berri TO alternate_owner});

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