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

caelum at dev.catalyst.perl.org caelum at dev.catalyst.perl.org
Thu Sep 24 21:44:02 GMT 2009


Author: caelum
Date: 2009-09-24 21:44:01 +0000 (Thu, 24 Sep 2009)
New Revision: 7729

Modified:
   DBIx-Class/0.08/trunk/t/74mssql.t
Log:
add test for multiple active statements in mssql over dbd::sybase

Modified: DBIx-Class/0.08/trunk/t/74mssql.t
===================================================================
--- DBIx-Class/0.08/trunk/t/74mssql.t	2009-09-24 13:57:58 UTC (rev 7728)
+++ DBIx-Class/0.08/trunk/t/74mssql.t	2009-09-24 21:44:01 UTC (rev 7729)
@@ -18,7 +18,7 @@
 plan skip_all => 'Set $ENV{DBICTEST_MSSQL_DSN}, _USER and _PASS to run this test'
   unless ($dsn);
 
-my $TESTS = 13;
+my $TESTS = 14;
 
 plan tests => $TESTS * 2;
 
@@ -133,6 +133,15 @@
 
   is $rs->find($row->id)->amount,
     undef, 'updated money value to NULL round-trip';
+
+  # 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;
+    }
+  } 'multiple active statements';
 }
 
 # clean up our mess




More information about the Bast-commits mailing list