From: Rafael Kitover Date: Fri, 25 Sep 2009 21:26:52 +0000 (+0000) Subject: failing test for simple transaction with mssql via dbd::sybase X-Git-Tag: v0.08113~47 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=8a0720e2d4a3914c84ac2ce1dd5913d5931709a1;p=dbsrgits%2FDBIx-Class.git failing test for simple transaction with mssql via dbd::sybase --- diff --git a/t/74mssql.t b/t/74mssql.t index 60c75c6..172c78d 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 = 14; +my $TESTS = 15; plan tests => $TESTS * 2; @@ -134,14 +134,26 @@ SQL 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