Skip to content

Commit

Permalink
add test for multiple active statements in mssql over dbd::sybase
Browse files Browse the repository at this point in the history
  • Loading branch information
rkitover committed Sep 24, 2009
1 parent 517f913 commit a467a0c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion t/74mssql.t
Expand Up @@ -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;

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit a467a0c

Please sign in to comment.