diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlEnums.cs b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlEnums.cs index e07a449607..f40a5b50fa 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlEnums.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlEnums.cs @@ -302,7 +302,7 @@ internal static MetaType GetMetaTypeFromDbType(DbType target) case DbType.StringFixedLength: return s_metaNChar; case DbType.Time: - return MetaTime; + return s_metaDateTime; case DbType.Xml: return MetaXml; case DbType.DateTime2: diff --git a/src/Microsoft.Data.SqlClient/netfx/src/Microsoft/Data/SqlClient/SqlEnums.cs b/src/Microsoft.Data.SqlClient/netfx/src/Microsoft/Data/SqlClient/SqlEnums.cs index 288eead39f..f2028aaddc 100644 --- a/src/Microsoft.Data.SqlClient/netfx/src/Microsoft/Data/SqlClient/SqlEnums.cs +++ b/src/Microsoft.Data.SqlClient/netfx/src/Microsoft/Data/SqlClient/SqlEnums.cs @@ -303,7 +303,7 @@ internal static MetaType GetMetaTypeFromDbType(DbType target) case DbType.StringFixedLength: return MetaNChar; case DbType.Time: - return MetaTime; + return MetaDateTime; case DbType.Xml: return MetaXml; case DbType.DateTime2: