diff --git a/CHANGELOG.md b/CHANGELOG.md index 7097b2613..cc6aed7bf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,43 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) +## [13.2.0] Stable Release + +### Changed + +- **Use sys.all_objects for accurate function and procedure filtering** [#2705](https://github.com/microsoft/mssql-jdbc/pull/2705) + **What changed**: Differentiated stored procedures and functions using sys.all_objects instead of sp_stored_procedures. + **Who benefits**: Developers using getProcedures() and getFunctions() in JDBC. + **Impact**: Ensures correct metadata retrieval, preventing confusion from mixed results. + +### Fixed issues + +- **Fix trustStoreType JVM property consultation in SSL Connections** [#2724](https://github.com/microsoft/mssql-jdbc/pull/2724) + **What was fixed**: Ensured fallback to JVM system property javax.net.ssl.trustStoreType if connection property is unset. + **Who benefits**: Users configuring SSL via system properties. + **Impact**: Enables proper SSL trust store resolution, improving compatibility with system configurations. + +- **Addressed a data integrity and performance issue for bulk copy batch inserts with non-Unicode Strings** [#2735](https://github.com/microsoft/mssql-jdbc/pull/2735) + **What was fixed**: Resolved performance degradation and incorrect string handling in bulk copy batch inserts when useBulkCopyForBatchInsert=true and sendStringParametersAsUnicode=false. + **Who benefits**: Applications using SQL Server JDBC Bulk Copy for high-volume inserts, especially with non-Unicode or accented character data. + **Impact**: Restores expected string storage, improves bulk insert performance for bulk copy API. + +- **Handle SQL comments at start of query in getGenerateKeys() method** [#2731](https://github.com/microsoft/mssql-jdbc/pull/2731) + **What was fixed**: Corrected detection of INSERT statements when preceded by SQL comments. + **Who benefits**: Developers using getGeneratedKeys() after commented SQL inserts. + **Impact**: Fixes previously failing key retrieval when comments are present before the query. + +- **Fix update count handling for multi-statement queries executed via PreparedStatement execute method.** [#2737](https://github.com/microsoft/mssql-jdbc/pull/2737) + **What was fixed**: Corrected update count handling for multi-statement queries run using PreparedStatement execute method, ensuring accurate counts for INSERT and other DML operations. + **Who benefits**: Java applications using SQL Server JDBC with multi-statement PreparedStatement executions. + **Impact**: Eliminates inconsistent update counts between Statement and PreparedStatement, improving reliability of result processing logic. + +- **CodeQL suppression fixes** [#2728](https://github.com/microsoft/mssql-jdbc/pull/2728) + **What was fixed**: Suppressed CodeQL rule [SM05141] with justification for broader usage scenarios. + **Who benefits**: Developers maintaining code quality tools like CodeQL. + **Impact**: Prevents unnecessary alerts for valid usage in multi-environment libraries. + + ## [13.1.1] Preview Release ### Added diff --git a/README.md b/README.md index b3f94ca3c..aae191630 100644 --- a/README.md +++ b/README.md @@ -83,7 +83,7 @@ We're now on the Maven Central Repository. Add the following to your POM file to com.microsoft.sqlserver mssql-jdbc - 13.1.1.jre11-preview + 13.2.0.jre11 ``` The driver can be downloaded from [Microsoft](https://aka.ms/downloadmssqljdbc). For driver version 12.1.0 and greater, please use the jre11 version when using Java 11 or greater, and the jre8 version when using Java 8. @@ -94,7 +94,7 @@ To get the latest version of the driver, add the following to your POM file: com.microsoft.sqlserver mssql-jdbc - 13.1.1.jre11-preview + 13.2.0.jre11 ``` @@ -129,7 +129,7 @@ Projects that require either of the two features need to explicitly declare the com.microsoft.sqlserver mssql-jdbc - 13.1.1.jre11-preview + 13.2.0.jre11 compile @@ -147,7 +147,7 @@ Projects that require either of the two features need to explicitly declare the com.microsoft.sqlserver mssql-jdbc - 13.1.1.jre11-preview + 13.2.0.jre11 compile @@ -174,7 +174,7 @@ When setting 'useFmtOnly' property to 'true' for establishing a connection or cr com.microsoft.sqlserver mssql-jdbc - 13.1.1.jre11-preview + 13.2.0.jre11 diff --git a/build.gradle b/build.gradle index c9b2a8da2..a4b679eb1 100644 --- a/build.gradle +++ b/build.gradle @@ -11,8 +11,8 @@ apply plugin: 'java' -version = '13.1.1' -def releaseExt = '-preview' +version = '13.2.0' +def releaseExt = '' def jreVersion = "" def testOutputDir = file("build/classes/java/test") def archivesBaseName = 'mssql-jdbc' diff --git a/mssql-jdbc_auth_LICENSE b/mssql-jdbc_auth_LICENSE index 994860698..3ef8a96d0 100644 --- a/mssql-jdbc_auth_LICENSE +++ b/mssql-jdbc_auth_LICENSE @@ -1,5 +1,5 @@ MICROSOFT SOFTWARE LICENSE TERMS -MICROSOFT JDBC DRIVER 13.1.1 FOR SQL SERVER +MICROSOFT JDBC DRIVER 13.2.0 FOR SQL SERVER These license terms are an agreement between you and Microsoft Corporation (or one of its affiliates). They apply to the software named above and any Microsoft services or software updates (except to the extent such services or updates are accompanied by new or additional terms, in which case those different terms apply prospectively and do not alter your or Microsoft’s rights relating to pre-updated software or services). IF YOU COMPLY WITH THESE LICENSE TERMS, YOU HAVE THE RIGHTS BELOW. BY USING THE SOFTWARE, YOU ACCEPT THESE TERMS. diff --git a/pom.xml b/pom.xml index c17ec0390..a15fd1c76 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ 4.0.0 com.microsoft.sqlserver mssql-jdbc - 13.1.1 + 13.2.0 jar Microsoft JDBC Driver for SQL Server diff --git a/src/main/java/com/microsoft/sqlserver/jdbc/SQLJdbcVersion.java b/src/main/java/com/microsoft/sqlserver/jdbc/SQLJdbcVersion.java index 4de8d099c..de8cdf60d 100644 --- a/src/main/java/com/microsoft/sqlserver/jdbc/SQLJdbcVersion.java +++ b/src/main/java/com/microsoft/sqlserver/jdbc/SQLJdbcVersion.java @@ -7,15 +7,15 @@ final class SQLJdbcVersion { static final int MAJOR = 13; - static final int MINOR = 1; - static final int PATCH = 1; + static final int MINOR = 2; + static final int PATCH = 0; static final int BUILD = 0; /* * Used to load mssql-jdbc_auth DLL. * 1. Set to "-preview" for preview release. * 2. Set to "" (empty String) for official release. */ - static final String RELEASE_EXT = "-preview"; + static final String RELEASE_EXT = ""; private SQLJdbcVersion() { throw new UnsupportedOperationException(SQLServerException.getErrString("R_notSupported")); diff --git a/src/samples/adaptive/pom.xml b/src/samples/adaptive/pom.xml index c90aa24b7..bc72c1ad9 100644 --- a/src/samples/adaptive/pom.xml +++ b/src/samples/adaptive/pom.xml @@ -15,7 +15,7 @@ com.microsoft.sqlserver mssql-jdbc - 13.1.1.jre11-preview + 13.2.0.jre11 diff --git a/src/samples/alwaysencrypted/pom.xml b/src/samples/alwaysencrypted/pom.xml index 0acfb1482..bcce4720a 100644 --- a/src/samples/alwaysencrypted/pom.xml +++ b/src/samples/alwaysencrypted/pom.xml @@ -15,7 +15,7 @@ com.microsoft.sqlserver mssql-jdbc - 13.1.1.jre11-preview + 13.2.0.jre11 diff --git a/src/samples/azureactivedirectoryauthentication/pom.xml b/src/samples/azureactivedirectoryauthentication/pom.xml index b1f1f4036..0fa43a6af 100644 --- a/src/samples/azureactivedirectoryauthentication/pom.xml +++ b/src/samples/azureactivedirectoryauthentication/pom.xml @@ -14,7 +14,7 @@ com.microsoft.sqlserver mssql-jdbc - 13.1.1.jre11-preview + 13.2.0.jre11 diff --git a/src/samples/connections/pom.xml b/src/samples/connections/pom.xml index 5582b6e4a..c2f965af9 100644 --- a/src/samples/connections/pom.xml +++ b/src/samples/connections/pom.xml @@ -14,7 +14,7 @@ com.microsoft.sqlserver mssql-jdbc - 13.1.1.jre11-preview + 13.2.0.jre11 diff --git a/src/samples/constrained/pom.xml b/src/samples/constrained/pom.xml index 55b34f768..bc1f73f0d 100644 --- a/src/samples/constrained/pom.xml +++ b/src/samples/constrained/pom.xml @@ -16,7 +16,7 @@ com.microsoft.sqlserver mssql-jdbc - 13.1.1.jre11-preview + 13.2.0.jre11 diff --git a/src/samples/dataclassification/pom.xml b/src/samples/dataclassification/pom.xml index 180f7b8e1..1d410a098 100644 --- a/src/samples/dataclassification/pom.xml +++ b/src/samples/dataclassification/pom.xml @@ -16,7 +16,7 @@ com.microsoft.sqlserver mssql-jdbc - 13.1.1.jre11-preview + 13.2.0.jre11 diff --git a/src/samples/datatypes/pom.xml b/src/samples/datatypes/pom.xml index 56f6dad00..0d426954f 100644 --- a/src/samples/datatypes/pom.xml +++ b/src/samples/datatypes/pom.xml @@ -15,7 +15,7 @@ com.microsoft.sqlserver mssql-jdbc - 13.1.1.jre11-preview + 13.2.0.jre11 diff --git a/src/samples/resultsets/pom.xml b/src/samples/resultsets/pom.xml index 5db220e1b..cfe8f1482 100644 --- a/src/samples/resultsets/pom.xml +++ b/src/samples/resultsets/pom.xml @@ -14,7 +14,7 @@ com.microsoft.sqlserver mssql-jdbc - 13.1.1.jre11-preview + 13.2.0.jre11 diff --git a/src/samples/sparse/pom.xml b/src/samples/sparse/pom.xml index b09f3f75f..2cb1bd4cd 100644 --- a/src/samples/sparse/pom.xml +++ b/src/samples/sparse/pom.xml @@ -14,7 +14,7 @@ com.microsoft.sqlserver mssql-jdbc - 13.1.1.jre11-preview + 13.2.0.jre11