Skip to content

bug: interval value parsing #497

@KirillKurdyukov

Description

@KirillKurdyukov

linq2db/linq2db#4954 (comment):

As I mentioned now it could lose precision due to use of microseconds and double instead of ticks

public TimeSpan GetInterval()
{
EnsurePrimitiveTypeId(Type.Types.PrimitiveTypeId.Interval);
return TimeSpan.FromMilliseconds((double)_protoValue.Int64Value / 1000);
}

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions