Skip to content

Commit 16890fb

Browse files
authored
Merge | Align Type aliases between netfx and netcore (#2957)
* Align Type aliases between netfx and netcore * Align more type aliases * Fix some more type aliases / minor code style * Add missing ;
1 parent 88c5ada commit 16890fb

File tree

2 files changed

+69
-70
lines changed
  • src/Microsoft.Data.SqlClient

2 files changed

+69
-70
lines changed

src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/TdsParser.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12539,7 +12539,9 @@ private byte[] SerializeUnencryptedValue(object value, MetaType type, byte scale
1253912539
if (type.FixedLength == 4)
1254012540
{
1254112541
if (0 > dt.days || dt.days > UInt16.MaxValue)
12542+
{
1254212543
throw SQL.SmallDateTimeOverflow(MetaType.ToDateTime(dt.days, dt.time, 4).ToString(CultureInfo.InvariantCulture));
12544+
}
1254312545

1254412546
if (stateObj._bIntBytes == null)
1254512547
{

0 commit comments

Comments
 (0)