From: Rafael Kitover Date: Thu, 24 Sep 2009 21:44:01 +0000 (+0000) Subject: add test for multiple active statements in mssql over dbd::sybase X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a467a0c9b15d95410a0fb35940c24a24239cb30e;p=dbsrgits%2FDBIx-Class-Historic.git add test for multiple active statements in mssql over dbd::sybase --- diff --git a/t/74mssql.t b/t/74mssql.t index c93aee0..60c75c6 100644 --- a/t/74mssql.t +++ b/t/74mssql.t @@ -18,7 +18,7 @@ my ($dsn, $user, $pass) = @ENV{map { "DBICTEST_MSSQL_${_}" } qw/DSN USER PASS/}; 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 @@ SQL 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