From: Rafael Kitover Date: Fri, 24 Jul 2009 06:13:35 +0000 (+0000) Subject: revert t/746mssql.t to trunk and move to another branch X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=04d2c73b53d454e53059ae908efac2e81b01a85a;p=dbsrgits%2FDBIx-Class-Historic.git revert t/746mssql.t to trunk and move to another branch --- diff --git a/t/746mssql.t b/t/746mssql.t index e5be28a..fa8f137 100644 --- a/t/746mssql.t +++ b/t/746mssql.t @@ -12,7 +12,7 @@ my ($dsn, $user, $pass) = @ENV{map { "DBICTEST_MSSQL_ODBC_${_}" } qw/DSN USER PA plan skip_all => 'Set $ENV{DBICTEST_MSSQL_ODBC_DSN}, _USER and _PASS to run this test' unless ($dsn && $user); -plan tests => 34; +plan tests => 33; my $schema = DBICTest::Schema->connect($dsn, $user, $pass); @@ -48,22 +48,12 @@ SQL my %seen_id; -my @opts = ( - { on_connect_call => 'use_dynamic_cursors' }, - {}, -); -my $new; +# fresh $schema so we start unconnected +$schema = DBICTest::Schema->connect($dsn, $user, $pass); -# test Auto-PK with different options -for my $opts (@opts) { - $schema = DBICTest::Schema->clone; - $schema->connection($dsn, $user, $pass, $opts); - - $schema->resultset('Artist')->search({ name => 'foo' })->delete; - - $new = $schema->resultset('Artist')->create({ name => 'foo' }); - ok($new->artistid > 0, "Auto-PK worked"); -} +# test primary key handling +my $new = $schema->resultset('Artist')->create({ name => 'foo' }); +ok($new->artistid > 0, "Auto-PK worked"); $seen_id{$new->artistid}++;