File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 1+ - Fixed bug ADO.NET: ` ArgumentOutOfRangeException ` when using ` YdbParameter ` with ` YdbDbType = YdbDbType.List | YdbDbType.Unspecified ` ;
2+
13## v0.25.0
24
35- ** Breaking Change** : Renamed ` YdbDbType ` enum members to match the [ ydb.tech] ( https://ydb.tech/docs/en/yql/reference/types/primitive ) naming:
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ public enum YdbDbType
2525 /// This provides convenience, but it may not always match the intended YDB type and
2626 /// doesn't support null values.
2727 /// </remarks>
28- Unspecified ,
28+ Unspecified = 1 ,
2929
3030 /// <summary>
3131 /// Boolean value.
Original file line number Diff line number Diff line change @@ -782,4 +782,9 @@ public void YdbParameter_SetYdbDbTypeList_Throws() =>
782782 "Use Binary-Or with the element type (e.g. Array of dates is YdbDbType.List | YdbDbType.Date). " +
783783 "(Parameter 'value')" ,
784784 Assert . Throws < ArgumentOutOfRangeException > ( ( ) => new YdbParameter ( "list" , YdbDbType . List ) ) . Message ) ;
785+
786+ [ Fact ]
787+ public void YdbParameter_SetYdbDbTypeListWithUnspecified ( ) => Assert . True (
788+ new YdbParameter ( "list" , YdbDbType . List | YdbDbType . Unspecified ) . YdbDbType . HasFlag ( YdbDbType . List )
789+ ) ;
785790}
You can’t perform that action at this time.
0 commit comments