X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=dbsrgits%2FDBIx-Class.git;a=blobdiff_plain;f=t%2F73oracle.t;h=e7096ea4d4fd32c2099f0aacffa764f7a842f63c;hp=b61a6a8053337fb19472614cbf63846c7b10a108;hb=4c90556806f286093d0806e858abdba329e6dfd3;hpb=514b84f6b60b566d75d2ff2ddd08659c4cf7b427 diff --git a/t/73oracle.t b/t/73oracle.t index b61a6a8..e7096ea 100644 --- a/t/73oracle.t +++ b/t/73oracle.t @@ -109,8 +109,13 @@ my $schema; for my $use_insert_returning ($test_server_supports_insert_returning ? (1,0) : (0) ) { for my $force_ora_joins ($test_server_supports_only_orajoins ? (0) : (0,1) ) { - no warnings qw/once redefine/; + # doing it here instead of the actual class to keep the main thing under dfs + # and thus keep catching false positives (so far none, but one never knows) + mro::set_mro("DBICTest::Schema", "c3"); + my $old_connection = DBICTest::Schema->can('connection'); + + no warnings qw/once redefine/; local *DBICTest::Schema::connection = set_subname 'DBICTest::Schema::connection' => sub { my $s = shift->$old_connection (@_); $s->storage->_use_insert_returning ($use_insert_returning);