X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Finflate%2Fdatetime_sybase_asa.t;h=761234df091b0adda22ea46b605f1344c279fc6d;hb=1b30006299e186de3f3cc751bfb76e16f8174688;hp=5a20da03869c9c208bd486705c3cfc07f6c067f6;hpb=5be953ff3103bb583a07ed11d9dbbd34cf09c173;p=dbsrgits%2FDBIx-Class-Historic.git diff --git a/t/inflate/datetime_sybase_asa.t b/t/inflate/datetime_sybase_asa.t index 5a20da0..761234d 100644 --- a/t/inflate/datetime_sybase_asa.t +++ b/t/inflate/datetime_sybase_asa.t @@ -44,7 +44,7 @@ foreach my $info (@info) { # coltype, col, date my @dt_types = ( - ['TIMESTAMP', 'last_updated_at', '2004-08-21 14:36:48.080444'], + ['TIMESTAMP', 'last_updated_at', '2004-08-21 14:36:48.080445'], # date only (but minute precision according to ASA docs) ['DATE', 'small_dt', '2004-08-21 00:00:00.000000'], ); @@ -73,6 +73,9 @@ SQL ->first ); is( $row->$col, $dt, 'DateTime roundtrip' ); + + is $row->$col->nanosecond, $dt->nanosecond, + 'nanoseconds survived' if 0+$dt->nanosecond; } }