X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F64db.t;h=ebe22f1aa4389d669b712369afea0ca1a2b966bf;hb=2235a95179bf17c30a1e5364e78da5bbad23ddd6;hp=7631439e73c49eccb5b870dd75a1af3df656395b;hpb=a7b999562e09b4e7132fcba4028d272198376fdc;p=dbsrgits%2FDBIx-Class.git diff --git a/t/64db.t b/t/64db.t index 7631439..ebe22f1 100644 --- a/t/64db.t +++ b/t/64db.t @@ -1,5 +1,5 @@ use strict; -use warnings; +use warnings; use Test::More; use lib qw(t/lib); @@ -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 ( @@ -47,9 +47,7 @@ is_deeply ( 'Correctly retrieve column info (no size or is_nullable)' ); -TODO: { - local $TODO = 'All current versions of SQLite seem to mis-report is_nullable'; - +{ is_deeply ( get_storage_column_info ($schema->storage, 'artist', qw/size/), { @@ -64,6 +62,11 @@ TODO: { 'rank' => { 'data_type' => 'integer', 'is_nullable' => 0, + 'default_value' => '13', + }, + 'charfield' => { + 'data_type' => 'char', + 'is_nullable' => 1, }, }, 'Correctly retrieve column info (mixed null and non-null columns)'