X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F74mssql.t;h=204a640c10cde0698e764293d4926695791730e9;hb=b8b1b9696425b0d19a3b7fc5386f3075d0a1261e;hp=f21d9e2b0be87a96d0f91a28d479f7d9771c7394;hpb=d6915f449e2d68ac184d6bc616043fd605913757;p=dbsrgits%2FDBIx-Class-Historic.git diff --git a/t/74mssql.t b/t/74mssql.t index f21d9e2..204a640 100644 --- a/t/74mssql.t +++ b/t/74mssql.t @@ -14,7 +14,12 @@ plan skip_all => 'Set $ENV{DBICTEST_MSSQL_DSN}, _USER and _PASS to run this test plan tests => 4; -$schema->compose_connection( 'MSSQLTest' => $dsn, $user, $pass ); +my $storage_type = '::DBI::MSSQL'; +$storage_type = '::DBI::Sybase::MSSQL' if $dsn =~ /^dbi:Sybase:/; +# Add more for others in the future when they exist (ODBC? ADO? JDBC?) + +DBICTest::Schema->storage_type($storage_type); +DBICTest::Schema->compose_connection( 'MSSQLTest' => $dsn, $user, $pass ); my $dbh = MSSQLTest->schema->storage->dbh;