X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F71mysql.t;h=eff456db574cffa9e537fd8f145010aec29c087d;hb=c13fabce230792388c8c57fb9cd481be65fe3125;hp=38933527b9c320cb5294a2286904357d5c02e843;hpb=374dd926212299b1913a5c806907e8d77a1eba57;p=dbsrgits%2FDBIx-Class-Historic.git diff --git a/t/71mysql.t b/t/71mysql.t index 3893352..eff456d 100644 --- a/t/71mysql.t +++ b/t/71mysql.t @@ -21,7 +21,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(255), rank INTEGER NOT NULL DEFAULT '13', charfield CHAR(10));"); #'dbi:mysql:host=localhost;database=dbic_test', 'dbic_test', ''); @@ -60,6 +60,12 @@ my $test_type_info = { 'size' => 255, 'default_value' => undef, }, + 'rank' => { + 'data_type' => 'INT', + 'is_nullable' => 0, + 'size' => 11, + 'default_value' => 13, + }, 'charfield' => { 'data_type' => 'CHAR', 'is_nullable' => 1, @@ -86,8 +92,9 @@ SKIP: { } ## Can we properly deal with the null search problem? - -use Data::Dump qw/dump/; +## +## Only way is to do a SET SQL_AUTO_IS_NULL = 0; on connect +## But I'm not sure if we should do this or not (Ash, 2008/06/03) NULLINSEARCH: { @@ -110,8 +117,6 @@ NULLINSEARCH: { is $artist => undef => 'Nothing Found!'; - - warn dump $artist->get_columns if $artist; }