Revision history for DBIx::Class
+ - ensure_connected before txn_begin to catch stomping on transaction
+ depth
- new method "rethrow" for our exception objects
0.08001 2007-06-17 21:21:02
my $schema = DBICTest->init_schema();
-plan tests => 39;
+plan tests => 40;
my $code = sub {
my ($artist, @cd_titles) = @_;
ok(!defined($cd), q{failed txn_do didn't add failed txn's cd});
}
+# Grab a new schema to test txn before connect
+{
+ my $schema2 = DBICTest->init_schema(no_deploy => 1);
+ eval {
+ $schema2->txn_begin();
+ $schema2->txn_begin();
+ };
+ my $err = $@;
+ ok(($err eq ''), 'Pre-connection nested transactions.');
+}