Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move to Shared for TdsEnums.cs #1483

Merged
merged 29 commits into from
Apr 6, 2022
Merged

Move to Shared for TdsEnums.cs #1483

merged 29 commits into from
Apr 6, 2022

Conversation

johnnypham
Copy link
Contributor

Remake of #1369. I made an error when resolving merge conflicts in the original PR and it was faster to just cherry pick the original commits to a new branch.

lcheunglci and others added 22 commits October 25, 2021 11:21
…rator and GetService for netfx and CreateCommandBuilder for both
@johnnypham johnnypham added the ➕ Code Health Changes related to source code improvements label Jan 20, 2022
@johnnypham johnnypham added this to the 5.0.0-preview1 milestone Jan 20, 2022
public const int SQL2005_MAJOR = 0x72; // the high-byte is sufficient to distinguish later versions
public const int SQL2008_MAJOR = 0x73;
public const int SQl2012_MAJOR = 0x74;
public const int SQL2012_MAJOR = 0x74;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change wasn't made in the original PR. I thought it would be ok to change it since these fields aren't included in the public refs.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's my fault but as problems go it's a small one and I agree that it should have no visible impact.

@codecov
Copy link

codecov bot commented Feb 16, 2022

Codecov Report

Merging #1483 (f8e6f2e) into main (35d9ffe) will decrease coverage by 0.12%.
The diff coverage is 100.00%.

❗ Current head f8e6f2e differs from pull request most recent head 1d4a9ca. Consider uploading reports for the commit 1d4a9ca to get more accurate results

@@            Coverage Diff             @@
##             main    #1483      +/-   ##
==========================================
- Coverage   69.68%   69.56%   -0.13%     
==========================================
  Files         331      330       -1     
  Lines       66503    66485      -18     
==========================================
- Hits        46345    46250      -95     
- Misses      20158    20235      +77     
Flag Coverage Δ
addons 92.38% <ø> (ø)
netcore 71.82% <100.00%> (-0.11%) ⬇️
netfx 67.89% <100.00%> (-0.13%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
.../src/Microsoft/Data/SqlClient/AAsyncCallContext.cs 87.50% <ø> (ø)
.../netcore/src/Microsoft/Data/SqlClient/TdsParser.cs 73.72% <100.00%> (-0.27%) ⬇️
...nt/netfx/src/Microsoft/Data/SqlClient/TdsParser.cs 70.91% <100.00%> (-0.32%) ⬇️
...SqlClient/src/Microsoft/Data/SqlClient/TdsEnums.cs 92.68% <100.00%> (ø)
...ata/SqlClient/SqlConnectionTimeoutErrorInternal.cs 41.96% <0.00%> (-9.83%) ⬇️
...rc/Microsoft/Data/SqlClient/SQLFallbackDNSCache.cs 90.62% <0.00%> (-6.25%) ⬇️
...re/src/Microsoft/Data/SqlClient/SNI/SNINpHandle.cs 73.29% <0.00%> (-5.12%) ⬇️
...c/Microsoft/Data/SqlClient/SqlConnectionFactory.cs 68.85% <0.00%> (-0.82%) ⬇️
...rc/Microsoft/Data/ProviderBase/DbConnectionPool.cs 85.00% <0.00%> (-0.67%) ⬇️
.../Microsoft/Data/SqlClient/SNI/SNIMarsConnection.cs 74.84% <0.00%> (-0.63%) ⬇️
... and 12 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d966a81...1d4a9ca. Read the comment docs.

This reverts commit fc5f0b8.
public static readonly decimal SQL_SMALL_MONEY_MAX = new decimal(214748.3647);

public static readonly decimal SQL_SMALL_MONEY_MIN = new(-214748.3648);
public static readonly decimal SQL_SMALL_MONEY_MAX = new(214748.3647);
Copy link
Contributor

@Kaur-Parminder Kaur-Parminder Feb 26, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: There are number of naming rule violations: Missing prefix s_ in this file.

@DavoudEshtehari DavoudEshtehari merged commit 66ffa40 into dotnet:main Apr 6, 2022
@johnnypham johnnypham deleted the merge-tdsenums branch April 7, 2022 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
➕ Code Health Changes related to source code improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants