directory if the user didn't specify one
- Fix Oracle constraint and auto-increment detection for non-owned schemas
(RT #35732)
+ - Handle ResultSetManager deprecation warning in common tests
0.04999_05 Mon Apr 14, 2008
- Fix limiting table list to the specified schema for DB2
};
ok(!$@, "Loader initialization") or diag $@;
+
+ my $warn_count = 2;
+ $warn_count++ if grep /ResultSetManager/, @loader_warnings;
+
if($self->{skip_rels}) {
SKIP: {
- is(scalar(@loader_warnings), 2, "No loader warnings")
+ is(scalar(@loader_warnings), $warn_count, "No loader warnings")
or diag @loader_warnings;
skip "No missing PK warnings without rels", 1;
}
}
else {
- is(scalar(@loader_warnings), 3, "Expected loader warning")
+ $warn_count++;
+ is(scalar(@loader_warnings), $warn_count, "Expected loader warning")
or diag @loader_warnings;
- like($loader_warnings[0], qr/loader_test9 has no primary key/i,
+ is(grep(/loader_test9 has no primary key/, @loader_warnings), 1,
"Missing PK warning");
}
}