SKIP: {
if (my $err = ($@ || $DBI::err )) {
chomp $err;
- skip "No connection to test db. DBI says '$err'", 59;
+ skip "No connection to test db. DBI says '$err'", 60;
}
ok($dbh, "dbh setup correctly");
$| = 1;
+$dbh->begin_work;
$dbh->do($sql);
my $t = SQL::Translator->new(
my $t2_c1 = shift @t2_constraints;
is( $t2_c1->type, FOREIGN_KEY, "Constraint is a FK" );
+$dbh->rollback;
$dbh->disconnect;
} # end of SKIP block
-END {
- if ($dbh) {
- for (
- 'drop table if exists sqlt_test2',
- 'drop table if exists sqlt_test1',
- 'drop table if exists sqlt_products_1',
- ) {
- local $SIG{__WARN__} = sub {};
- eval { $dbh->do($_) };
- }
- }
-}