X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Finflate%2Fdatetime_firebird.t;h=0f62161bae3318bf97a0dd3b817825a7bd580224;hb=a870aa85e;hp=572fc4eb1da952b5323836e50f2cf6cfa0d1e8f0;hpb=69d3c2708f5564ce38d5878fa694b04f6740cde0;p=dbsrgits%2FDBIx-Class.git diff --git a/t/inflate/datetime_firebird.t b/t/inflate/datetime_firebird.t index 572fc4e..0f62161 100644 --- a/t/inflate/datetime_firebird.t +++ b/t/inflate/datetime_firebird.t @@ -49,10 +49,10 @@ foreach my $conn_idx (0..$#info) { "created_on" TIMESTAMP ) SQL - my $rs = $schema->resultset('Event'); + my $rs = $schema->resultset('Event'); my $dt = DateTime->now; - $dt->set_nanosecond($dsn =~ /odbc/i ? 0 : 555600000); + $dt->set_nanosecond(555600000); my $date_only = DateTime->new( year => $dt->year, month => $dt->month, day => $dt->day @@ -70,7 +70,7 @@ SQL is $row->created_on, $dt, 'TIMESTAMP as DateTime roundtrip'; cmp_ok $row->created_on->nanosecond, '==', $dt->nanosecond, - 'fractional part of a second survived' if 0+$dt->nanosecond; + 'fractional part of a second survived'; is $row->starts_at, $date_only, 'DATE as DateTime roundtrip'; }