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

Upgrade dotnet to v8.0 and upgrade C# dependencies #3335

Conversation

shah-nirmit
Copy link
Contributor

@shah-nirmit shah-nirmit commented Dec 31, 2024

Description

  • Upgrading to Latest Dotnet version for test framework also upgrading to Microsoft.Data.SqlClient driver from System.Data.SqlClient as it is deprecated check link

  • Also upgraded other packages being used to latest versions

Couple of changes for migrating to newer driver

  1. Add a new switch in config called runInRegression to turn off encryption for sqlclient driver as its by default on in the new Package , For More Context check link

  2. Add a appcontext switch to avoid rounding on decimals instead of truncation. More details There seems to be a difference in the way Microsoft.Data.SqlClient treats Decimal values when compared to System.Data.SqlClient dotnet/SqlClient#2905

Signed-off-by: Nirmit Shah [email protected]

Check List

  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is under the terms of the Apache 2.0 and PostgreSQL licenses, and grant any person obtaining a copy of the contribution permission to relicense all or a portion of my contribution to the PostgreSQL License solely to contribute all or a portion of my contribution to the PostgreSQL open source project.

For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@shah-nirmit shah-nirmit marked this pull request as ready for review December 31, 2024 06:07
@coveralls
Copy link
Collaborator

Pull Request Test Coverage Report for Build 12556165575

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 2 unchanged lines in 2 files lost coverage.
  • Overall coverage remained the same at 74.865%

Files with Coverage Reduction New Missed Lines %
contrib/babelfishpg_tsql/runtime/functions.c 1 83.16%
contrib/babelfishpg_tds/src/backend/tds/tds.c 1 92.41%
Totals Coverage Status
Change from base Build 12550050176: 0.0%
Covered Lines: 46599
Relevant Lines: 62244

💛 - Coveralls

@shardgupta shardgupta merged commit 40cc725 into babelfish-for-postgresql:BABEL_5_X_DEV Dec 31, 2024
45 checks passed
@shardgupta shardgupta deleted the nirmit-dt-upgrade-5x branch December 31, 2024 07:41
pranavJ23 pushed a commit to pranavJ23/babelfish_extensions that referenced this pull request Jan 6, 2025
…tgresql#3335)

- Upgrading to Latest Dotnet version for test framework also upgrading to `Microsoft.Data.SqlClient` driver from `System.Data.SqlClient` as it is deprecated check [link](https://techcommunity.microsoft.com/blog/sqlserver/announcement-system-data-sqlclient-package-is-now-deprecated/4227205)

- Also upgraded other packages being used to latest versions

Couple of changes for migrating to newer driver
1. Add a new switch in config called `runInRegression` to turn off encryption for sqlclient driver as its by default on in the new Package , For More Context check [link](https://github.com/dotnet/SqlClient/blob/main/porting-cheat-sheet.md)

2. Add a appcontext switch to avoid rounding on decimals instead of truncation. More details dotnet/SqlClient#2905 


Signed-off-by: Nirmit Shah [[email protected]](mailto:[email protected])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants