Fix to ensure metadata returned follows JDBC data type specs#2326
Merged
barryw-mssql merged 10 commits intomainfrom Mar 5, 2024
Merged
Fix to ensure metadata returned follows JDBC data type specs#2326barryw-mssql merged 10 commits intomainfrom
barryw-mssql merged 10 commits intomainfrom
Conversation
… is Incorrect for Some Columns (1751) Fix ensures the correct data types for each metadata column match the data type from the SQL Server and the JDBC spec
lilgreenbird
suggested changes
Feb 22, 2024
lilgreenbird
previously requested changes
Feb 22, 2024
Contributor
lilgreenbird
left a comment
There was a problem hiding this comment.
there should be a test case to cover the error msg R_colCountNotMatchColTypeCount path
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2326 +/- ##
=======================================
Coverage ? 50.04%
Complexity ? 3793
=======================================
Files ? 143
Lines ? 33179
Branches ? 5631
=======================================
Hits ? 16605
Misses ? 14191
Partials ? 2383 ☔ View full report in Codecov by Sentry. |
tkyc
approved these changes
Mar 1, 2024
Jeffery-Wasty
approved these changes
Mar 4, 2024
David-Engel
approved these changes
Mar 4, 2024
dongjoon-hyun
pushed a commit
to apache/spark
that referenced
this pull request
Aug 3, 2024
…QLServer docker image tag to `2022-CU14-ubuntu-22.04` ### What changes were proposed in this pull request? This PR aims to upgrade `mssql-jdbc` to 12.8.0.jre11 and MySQLServer docker image to `mcr.microsoft.com/mssql/server:2022-CU14-ubuntu-22.04`. ### Why are the changes needed? This is the latest stable version of `mssql-jdbc`, related release notes: https://github.com/microsoft/mssql-jdbc/releases/tag/v12.7.0 https://github.com/microsoft/mssql-jdbc/releases/tag/v12.7.1 https://github.com/microsoft/mssql-jdbc/releases/tag/v12.8.0 Some fixed issues: - Fix to ensure metadata returned follows JDBC data type specs microsoft/mssql-jdbc#2326 - Added token cache map to fix use of unintended auth token for subsequent connections microsoft/mssql-jdbc#2341 - Clear prepared statement handle before reconnect microsoft/mssql-jdbc#2364 - Reset socketTimeout to original value after a successful connection open microsoft/mssql-jdbc#2355 - Clear prepared statement cache when resetting statement pool connection microsoft/mssql-jdbc#2361 - Fixed ClassLoader leak of ActivityCorrelator ThreadLocal microsoft/mssql-jdbc#2366 ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Pass GA. ### Was this patch authored or co-authored using generative AI tooling? No. Closes #47569 from wayneguow/ms_12_8. Authored-by: Wei Guo <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ResultSetMetadata of the ResultSet from DatabaseMetadata.getColumns() is Incorrect for Some Columns (1751)
Fix ensures the correct data types for each metadata column by mapping the data type from the SQL Server to the type specified in the JDBC spec