X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F74mssql.t;h=04efcf6dec0a61fd328ab0da45708e3c5d8f26b7;hb=8ebb1b5840c02e3332575ef5f3cc615e2bc16e88;hp=02e19504db8a871054cf076aa5de02b80b184e44;hpb=1a789a7270a3d1e0fe3129960aafe8ba389d035e;p=dbsrgits%2FDBIx-Class.git diff --git a/t/74mssql.t b/t/74mssql.t index 02e1950..04efcf6 100644 --- a/t/74mssql.t +++ b/t/74mssql.t @@ -31,13 +31,18 @@ for my $storage_type (@storage_types) { $schema = DBICTest::Schema->clone; - if ($storage_idx != 0) { # autodetect - $schema->storage_type("::$storage_type"); - } - $schema->connection($dsn, $user, $pass); - $schema->storage->ensure_connected; + if ($storage_idx != 0) { # autodetect + no warnings 'redefine'; + local *DBIx::Class::Storage::DBI::_typeless_placeholders_supported = + sub { 0 }; +# $schema->storage_type("::$storage_type"); + $schema->storage->ensure_connected; + } + else { + $schema->storage->ensure_connected; + } if ($storage_idx == 0 && ref($schema->storage) =~ /NoBindVars\z/) { my $tb = Test::More->builder;