From 4a960b10125828f045eda36a2142c3d4b18503b0 Mon Sep 17 00:00:00 2001 From: JRahnama Date: Tue, 13 Jul 2021 15:19:14 -0700 Subject: [PATCH] address the DBType in netfx and netcore --- .../netcore/src/Microsoft/Data/SqlClient/SqlEnums.cs | 2 +- .../netfx/src/Microsoft/Data/SqlClient/SqlEnums.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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: