datetime millisecond precision for MSSQL
[dbsrgits/DBIx-Class.git] / t / inflate / datetime_sybase.t
index 2b1fbed..f1ff6fc 100644 (file)
@@ -70,7 +70,11 @@ SQL
       ->search({ trackid => $row->trackid }, { select => [$col] })
       ->first
     );
-    is( $row->$col, $dt, 'DateTime roundtrip' );
+    is( $row->$col, $dt, "$type roundtrip" );
+
+    is( $row->$col->nanosecond, $dt->nanosecond,
+      'fractional DateTime portion roundtrip' )
+      if $dt->nanosecond > 0;
   }
 
   # test a computed datetime column