Skip to content

Commit 66ffa40

Browse files
author
Johnny Pham
authored
Move to Shared for TdsEnums.cs (#1483)
1 parent 02cd5f4 commit 66ffa40

File tree

6 files changed

+88
-1224
lines changed

6 files changed

+88
-1224
lines changed

src/Microsoft.Data.SqlClient/netcore/src/Microsoft.Data.SqlClient.csproj

+3-1
Original file line numberDiff line numberDiff line change
@@ -466,6 +466,9 @@
466466
<Compile Include="..\..\src\Microsoft\Data\SqlClient\SqlUtil.cs">
467467
<Link>Microsoft\Data\SqlClient\SqlUtil.cs</Link>
468468
</Compile>
469+
<Compile Include="..\..\src\Microsoft\Data\SqlClient\TdsEnums.cs">
470+
<Link>Microsoft\Data\SqlClient\TdsEnums.cs</Link>
471+
</Compile>
469472
<Compile Include="..\..\src\Microsoft\Data\SqlClient\TdsParameterSetter.cs">
470473
<Link>Microsoft\Data\SqlClient\TdsParameterSetter.cs</Link>
471474
</Compile>
@@ -638,7 +641,6 @@
638641
<Compile Include="Microsoft\Data\SqlClient\SqlSequentialTextReader.cs" />
639642
<Compile Include="Microsoft\Data\SqlClient\SqlTransaction.cs" />
640643
<Compile Include="Microsoft\Data\SqlClient\SqlUtil.cs" />
641-
<Compile Include="Microsoft\Data\SqlClient\TdsEnums.cs" />
642644
<Compile Include="Microsoft\Data\SqlClient\TdsParser.cs" />
643645
<Compile Include="Microsoft\Data\SqlClient\TdsParser.RegisterEncoding.cs" />
644646
<Compile Include="Microsoft\Data\SqlClient\TdsParserHelperClasses.cs" />

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -3596,7 +3596,7 @@ private bool TryProcessLoginAck(TdsParserStateObject stateObj, out SqlLoginAck s
35963596
}
35973597
_is2008 = true;
35983598
break;
3599-
case TdsEnums.SQl2012_MAJOR << 24 | TdsEnums.SQL2012_MINOR:
3599+
case TdsEnums.SQL2012_MAJOR << 24 | TdsEnums.SQL2012_MINOR:
36003600
if (increment != TdsEnums.SQL2012_INCREMENT)
36013601
{
36023602
throw SQL.InvalidTDSVersion();
@@ -8076,7 +8076,7 @@ internal void TdsLogin(SqlLogin rec, TdsEnums.FeatureExtension requestedFeatures
80768076
WriteInt(length, _physicalStateObj);
80778077
if (recoverySessionData == null)
80788078
{
8079-
WriteInt((TdsEnums.SQl2012_MAJOR << 24) | (TdsEnums.SQL2012_INCREMENT << 16) | TdsEnums.SQL2012_MINOR, _physicalStateObj);
8079+
WriteInt((TdsEnums.SQL2012_MAJOR << 24) | (TdsEnums.SQL2012_INCREMENT << 16) | TdsEnums.SQL2012_MINOR, _physicalStateObj);
80808080
}
80818081
else
80828082
{

src/Microsoft.Data.SqlClient/netfx/src/Microsoft.Data.SqlClient.csproj

+3-1
Original file line numberDiff line numberDiff line change
@@ -530,6 +530,9 @@
530530
<Compile Include="..\..\src\Microsoft\Data\SqlClient\SqlUtil.cs">
531531
<Link>Microsoft\Data\SqlClient\SqlUtil.cs</Link>
532532
</Compile>
533+
<Compile Include="..\..\src\Microsoft\Data\SqlClient\TdsEnums.cs">
534+
<Link>Microsoft\Data\SqlClient\TdsEnums.cs</Link>
535+
</Compile>
533536
<Compile Include="..\..\src\Microsoft\Data\SqlClient\TdsParameterSetter.cs">
534537
<Link>Microsoft\Data\SqlClient\TdsParameterSetter.cs</Link>
535538
</Compile>
@@ -624,7 +627,6 @@
624627
<Compile Include="Microsoft\Data\SqlClient\SqlSequentialTextReaderSmi.cs" />
625628
<Compile Include="Microsoft\Data\SqlClient\SqlTransaction.cs" />
626629
<Compile Include="Microsoft\Data\SqlClient\SqlUtil.cs" />
627-
<Compile Include="Microsoft\Data\SqlClient\TdsEnums.cs" />
628630
<Compile Include="Microsoft\Data\SqlClient\TdsParser.cs" />
629631
<Compile Include="Microsoft\Data\SqlClient\TdsParserHelperClasses.cs" />
630632
<Compile Include="Microsoft\Data\SqlClient\TdsParserSafeHandles.cs" />

0 commit comments

Comments
 (0)