File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 1+ - Fixed bug: interval value parsing in microseconds and double instead of ticks.
12- ADO.NET: Changed ` IBulkUpsertImporter.AddRowAsync ` signature: ` object?[] row ` → ` params object[] ` .
23
34## v0.21.0
Original file line number Diff line number Diff line change 1- using Ydb . Sdk . Ado ;
1+ using Google . Protobuf . WellKnownTypes ;
2+ using Ydb . Sdk . Ado ;
23
34namespace Ydb . Sdk . Value ;
45
@@ -96,7 +97,7 @@ public DateTime GetTimestamp()
9697 public TimeSpan GetInterval ( )
9798 {
9899 EnsurePrimitiveTypeId ( Type . Types . PrimitiveTypeId . Interval ) ;
99- return TimeSpan . FromMilliseconds ( ( double ) _protoValue . Int64Value / 1000 ) ;
100+ return TimeSpan . FromTicks ( _protoValue . Int64Value * ( 1000 / Duration . NanosecondsPerTick ) ) ;
100101 }
101102
102103 public byte [ ] GetString ( )
You can’t perform that action at this time.
0 commit comments