We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab65d39 commit 0038f69Copy full SHA for 0038f69
src/Ydb.Sdk/src/Ado/Internal/TypeExtensions.cs
src/Ydb.Sdk/src/Ado/YdbDataReader.cs
@@ -407,7 +407,7 @@ public override object GetValue(int ordinal)
407
return DBNull.Value;
408
}
409
410
- if (type.IsOptional())
+ if (type.TypeCase == Type.TypeOneofCase.OptionalType)
411
{
412
type = type.OptionalType.Item;
413
@@ -576,7 +576,7 @@ private Type UnwrapColumnType(int ordinal)
576
if (CurrentRow[ordinal].IsNull())
577
throw new InvalidCastException("Field is null.");
578
579
- return type.IsOptional() ? type.OptionalType.Item : type;
+ return type.TypeCase == Type.TypeOneofCase.OptionalType ? type.OptionalType.Item : type;
580
581
582
private Type GetColumnType(int ordinal) => ReaderMetadata.GetColumn(ordinal).Type;
0 commit comments