use Test::More;
use Test::Exception;
-use Try::Tiny;
use DBIx::Class::_Util 'scope_guard';
use DBICTest;
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,
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,