Fix incorrect comparison
Peter Rabbitson [Mon, 3 May 2010 16:31:19 +0000 (16:31 +0000)]
t/inflate/datetime_mssql.t

index c1ce5dd..25524de 100644 (file)
@@ -95,8 +95,8 @@ SQL
       ->first
     );
     is( $row->$col, $dt, "$type roundtrip" );
-    
-    is( $row->$col->nanosecond, $sample_dt->{nanosecond},
+
+    cmp_ok( $row->$col->nanosecond, '==', $sample_dt->{nanosecond},
       'DateTime fractional portion roundtrip' )
       if exists $sample_dt->{nanosecond};
   }