File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -273,16 +273,22 @@ Table "public.berri" does not exist on all databases:
273
273
\s *Missing on: 1, 3\s *$} s ,
274
274
$t );
275
275
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 .*
280
281
Table "public.berri":
281
282
\s *"relhasoids" is different:
282
283
\s *Database 1: t
283
284
\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
+ }
286
292
287
293
$t = qq{ $S reports simple table acl differences} ;
288
294
$dbh1 -> do(q{ GRANT SELECT ON TABLE berri TO alternate_owner} );
You can’t perform that action at this time.
0 commit comments