X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F93nobindvars.t;h=8a72864d8f194bc668e2fe46849c5bf01d4f4942;hb=b95f66d0e42dac7d62b845e1ccfe84b9da697339;hp=e64dbb691e6ef037376d30eeabc8c80ce53594a3;hpb=d944c5aea7c21750ce97107aacb50db173ff2ddb;p=dbsrgits%2FDBIx-Class.git diff --git a/t/93nobindvars.t b/t/93nobindvars.t index e64dbb6..8a72864 100644 --- a/t/93nobindvars.t +++ b/t/93nobindvars.t @@ -40,7 +40,7 @@ my $dbh = $schema->storage->dbh; $dbh->do("DROP TABLE IF EXISTS artist;"); -$dbh->do("CREATE TABLE artist (artistid INTEGER NOT NULL AUTO_INCREMENT PRIMARY KEY, name VARCHAR(255), charfield CHAR(10));"); +$dbh->do("CREATE TABLE artist (artistid INTEGER NOT NULL AUTO_INCREMENT PRIMARY KEY, name VARCHAR(100), rank INTEGER NOT NULL DEFAULT '13', charfield CHAR(10));"); $schema->class('Artist')->load_components('PK::Auto'); @@ -65,5 +65,5 @@ is( $it->next, undef, "next past end of resultset ok" ); # clean up our mess END { - $dbh->do("DROP TABLE artist"); + $dbh->do("DROP TABLE artist") if $dbh; }