Skip to content

Commit f06ed98

Browse files
committed
Fix for Enum types (DNET-985).
1 parent bd423fa commit f06ed98

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Provider/src/FirebirdSql.Data.FirebirdClient/Common/TypeHelper.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,11 @@ public static FbDbType GetFbDataTypeFromType(Type type)
400400
return GetFbDataTypeFromType(Enum.GetUnderlyingType(type));
401401
}
402402

403-
if (type == typeof(System.String) || type == typeof(System.DBNull))
403+
if (type == typeof(System.DBNull))
404+
{
405+
return FbDbType.VarChar;
406+
}
407+
if (type == typeof(System.String))
404408
{
405409
return FbDbType.VarChar;
406410
}

0 commit comments

Comments
 (0)