X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F64db.t;h=9f293e2db39c60f1bb9e02133feb9c86fd92a0fb;hb=f4dc39d649672ff4452cf827ca204a1e937bc8b7;hp=ebe22f1aa4389d669b712369afea0ca1a2b966bf;hpb=450e6dbf39a2620b3b9c939e8cce3c16eec766d6;p=dbsrgits%2FDBIx-Class.git diff --git a/t/64db.t b/t/64db.t index ebe22f1..9f293e2 100644 --- a/t/64db.t +++ b/t/64db.t @@ -1,8 +1,10 @@ +BEGIN { do "./t/lib/ANFANG.pm" or die ( $@ || $! ) } + use strict; use warnings; use Test::More; -use lib qw(t/lib); + use DBICTest; my $schema = DBICTest->init_schema(); @@ -13,7 +15,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 $_", } ); @@ -62,7 +64,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',