Skip to content

Commit 0038f69

Browse files
delete un use class
1 parent ab65d39 commit 0038f69

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

src/Ydb.Sdk/src/Ado/Internal/TypeExtensions.cs

Lines changed: 0 additions & 8 deletions
This file was deleted.

src/Ydb.Sdk/src/Ado/YdbDataReader.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ public override object GetValue(int ordinal)
407407
return DBNull.Value;
408408
}
409409

410-
if (type.IsOptional())
410+
if (type.TypeCase == Type.TypeOneofCase.OptionalType)
411411
{
412412
type = type.OptionalType.Item;
413413
}
@@ -576,7 +576,7 @@ private Type UnwrapColumnType(int ordinal)
576576
if (CurrentRow[ordinal].IsNull())
577577
throw new InvalidCastException("Field is null.");
578578

579-
return type.IsOptional() ? type.OptionalType.Item : type;
579+
return type.TypeCase == Type.TypeOneofCase.OptionalType ? type.OptionalType.Item : type;
580580
}
581581

582582
private Type GetColumnType(int ordinal) => ReaderMetadata.GetColumn(ordinal).Type;

0 commit comments

Comments
 (0)