X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Ficdt%2Fengine_specific%2Fmssql.t;fp=t%2Ficdt%2Fengine_specific%2Fmssql.t;h=3ba9d128b5466d8a7c8b3c839146719d8400d3e9;hb=e2741c7fd695dca054614f297b01d351a45bbf38;hp=2756858c8a0ca8ee6c517ffbb2a51d8fab85e298;hpb=82c5f9168e30bc9dc7b681058298bb342582c5ec;p=dbsrgits%2FDBIx-Class.git diff --git a/t/icdt/engine_specific/mssql.t b/t/icdt/engine_specific/mssql.t index 2756858..3ba9d12 100644 --- a/t/icdt/engine_specific/mssql.t +++ b/t/icdt/engine_specific/mssql.t @@ -6,7 +6,6 @@ use warnings; use Test::More; use Test::Exception; -use Try::Tiny; use DBIx::Class::_Util 'scope_guard'; use DBICTest; @@ -56,7 +55,7 @@ for my $connect_info (@connect_info) { my $guard = scope_guard { cleanup($schema) }; # $^W because DBD::ADO is a piece of crap - try { local $^W = 0; $schema->storage->dbh->do("DROP TABLE track") }; + eval { local $^W = 0; $schema->storage->dbh->do("DROP TABLE track") }; $schema->storage->dbh->do(<<"SQL"); CREATE TABLE track ( trackid INT IDENTITY PRIMARY KEY, @@ -65,14 +64,14 @@ CREATE TABLE track ( last_updated_at DATETIME, ) SQL - try { local $^W = 0; $schema->storage->dbh->do("DROP TABLE event_small_dt") }; + eval { local $^W = 0; $schema->storage->dbh->do("DROP TABLE event_small_dt") }; $schema->storage->dbh->do(<<"SQL"); CREATE TABLE event_small_dt ( id INT IDENTITY PRIMARY KEY, small_dt SMALLDATETIME, ) SQL - try { local $^W = 0; $schema->storage->dbh->do("DROP TABLE event") }; + eval { local $^W = 0; $schema->storage->dbh->do("DROP TABLE event") }; $schema->storage->dbh->do(<<"SQL"); CREATE TABLE event ( id int IDENTITY(1,1) NOT NULL,