X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F64db.t;h=1a0046d3cb1390e22df2daa284b28ce4072a5e60;hb=7cb3585200c48fdf62e6be033517497ce792709b;hp=b207a2940296f95d8a225b806fe1f5b2603afe20;hpb=b9df8e39d03e6da167b2598f6ee70fb16c069112;p=dbsrgits%2FDBIx-Class.git diff --git a/t/64db.t b/t/64db.t index b207a29..1a0046d 100644 --- a/t/64db.t +++ b/t/64db.t @@ -13,7 +13,7 @@ plan tests => 4; # XXX: Is storage->dbh the only way to get a dbh? $schema->storage->txn_begin; for (10..15) { - $schema->resultset("Artist")->create( { + $schema->resultset("Artist")->create( { artistid => $_, name => "artist number $_", } ); @@ -31,7 +31,7 @@ for (21..30) { } ); } $schema->storage->txn_rollback; -($artist) = $schema->resultset("Artist")->search( artistid => 25 ); +($artist) = $schema->resultset("Artist")->search({ artistid => 25 }); is($artist, undef, "Rollback ok"); is_deeply ( @@ -62,7 +62,7 @@ is_deeply ( 'rank' => { 'data_type' => 'integer', 'is_nullable' => 0, - 'default_value' => '13', + DBIx::Class::_ENV_::STRESSTEST_COLUMN_INFO_UNAWARE_STORAGE ? () : ( 'default_value' => '13' ), }, 'charfield' => { 'data_type' => 'char',