use Test::More;
use Test::Exception;
use DBIx::Class::Optional::Dependencies;
-use DBIx::Class::_Util qw(modver_gt_or_eq sigwarn_silencer scope_guard);
-
+use DBIx::Class::_Util qw(sigwarn_silencer scope_guard);
use DBICTest;
is_deeply( $schema->storage->savepoints, [], 'All savepoints forgotten' );
-SKIP: {
- skip "FIXME: Reading inexplicably fails on very old replicated DBD::SQLite<1.33", 1 if (
- $ENV{DBICTEST_VIA_REPLICATED}
- and
- $prefix eq 'SQLite Internal DB'
- and
- ! modver_gt_or_eq('DBD::SQLite', '1.33')
- );
-
ok($ars->search({ name => 'in_outer_transaction' })->first,
'commit from outer transaction');
ok($ars->search({ name => 'in_outer_transaction2' })->first,
is $ars->search({ name => 'in_inner_transaction_rolling_back' })->first,
undef,
'rollback from inner transaction';
-}
+
+ # make sure a fresh txn will work after above
+ $schema->storage->txn_do(sub { ok "noop" } );
### cleanupz
$schema->storage->dbh_do(sub { $_[1]->do("DROP TABLE artist") });
done_testing;
END {
- local $SIG{__WARN__} = sigwarn_silencer( qr/Internal transaction state of handle/ )
- unless modver_gt_or_eq('DBD::SQLite', '1.33');
eval { $schema->storage->dbh_do(sub { $_[1]->do("DROP TABLE artist") }) } if defined $schema;
undef $schema;
}