[Bast-commits] r7731 - DBIx-Class/0.08/trunk/t

caelum at dev.catalyst.perl.org caelum at dev.catalyst.perl.org
Fri Sep 25 21:26:52 GMT 2009


Author: caelum
Date: 2009-09-25 21:26:52 +0000 (Fri, 25 Sep 2009)
New Revision: 7731

Modified:
   DBIx-Class/0.08/trunk/t/74mssql.t
Log:
failing test for simple transaction with mssql via dbd::sybase

Modified: DBIx-Class/0.08/trunk/t/74mssql.t
===================================================================
--- DBIx-Class/0.08/trunk/t/74mssql.t	2009-09-25 06:46:22 UTC (rev 7730)
+++ DBIx-Class/0.08/trunk/t/74mssql.t	2009-09-25 21:26:52 UTC (rev 7731)
@@ -18,7 +18,7 @@
 plan skip_all => 'Set $ENV{DBICTEST_MSSQL_DSN}, _USER and _PASS to run this test'
   unless ($dsn);
 
-my $TESTS = 14;
+my $TESTS = 15;
 
 plan tests => $TESTS * 2;
 
@@ -134,14 +134,26 @@
   is $rs->find($row->id)->amount,
     undef, 'updated money value to NULL round-trip';
 
+  $rs->create({ amount => 300 }) for (1..3);
+
   # test multiple active statements
   lives_ok {
-    $rs->create({ amount => 300 }) for (1..3);
     my $artist_rs = $schema->resultset('Artist');
     while (my $row = $rs->next) {
       my $artist = $artist_rs->next;
     }
+    $rs->reset;
   } 'multiple active statements';
+
+  # test multiple active statements in a transaction
+  TODO: {
+    local $TODO = 'needs similar FreeTDS fixes to the ones in Sybase.pm';
+    lives_ok {
+      $schema->txn_do(sub {
+        $rs->create({ amount => 400 });
+      });
+    } 'simple transaction';
+  }
 }
 
 # clean up our mess




More information about the Bast-commits mailing list