File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -141,9 +141,7 @@ public Guid GetGuid(int ordinal)
141
141
if ( value is byte [ ] bytes && bytes . Length == 16 )
142
142
return new Guid ( bytes ) ;
143
143
144
- if ( m_dataOffsets [ ordinal ] == - 1 )
145
- throw new InvalidCastException ( "Column is NULL." ) ;
146
- throw new MySqlException ( "The value could not be converted to a GUID: {0}" . FormatInvariant ( value ) ) ;
144
+ throw new InvalidCastException ( "The value could not be converted to a GUID: {0}" . FormatInvariant ( value ) ) ;
147
145
}
148
146
149
147
public short GetInt16 ( int ordinal )
Original file line number Diff line number Diff line change @@ -394,7 +394,7 @@ public async Task GetGuid(string column, Type fieldType)
394
394
Assert . NotNull ( reader . GetValue ( 0 ) ) ;
395
395
Assert . IsType ( fieldType , reader . GetValue ( 0 ) ) ;
396
396
397
- Type exceptionType = typeof ( MySqlException ) ;
397
+ Type exceptionType = typeof ( GetGuidWhenNullException ) ;
398
398
#if BASELINE
399
399
// baseline throws FormatException when conversion from string fails
400
400
if ( fieldType == typeof ( string ) )
You can’t perform that action at this time.
0 commit comments