Skip to content

Commit 3cd946e

Browse files
12.6.0 version update (#2307)
* 12.6.0 misc update * Delete src/test/java/com/microsoft/sqlserver/jdbc/TestCl.java
1 parent 69bf8ad commit 3cd946e

File tree

15 files changed

+46
-30
lines changed

15 files changed

+46
-30
lines changed

CHANGELOG.md

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,42 @@ All notable changes to this project will be documented in this file.
33

44
The format is based on [Keep a Changelog](http://keepachangelog.com/)
55

6+
## [12.6.0] Stable Release
7+
### Changed
8+
- Adjusted PreparedStatement cache, so it's cleared before every execute [#2272](https://github.com/microsoft/mssql-jdbc/pull/2272)
9+
- Updated azure-identity, azure-security-keyvault-keys, bouncycastle, and msal library versions [#2279](https://github.com/microsoft/mssql-jdbc/pull/2279)
10+
- Changed `socketTimeout` to ensure it's always less than or equal to `loginTimeout` [#2280](https://github.com/microsoft/mssql-jdbc/pull/2280)
11+
- Change BulkCopy behavior from serializing and deserializing Timestamp objects, to using the objects directly [#2291](https://github.com/microsoft/mssql-jdbc/pull/2291)
12+
13+
### Fixed issues
14+
- Fixed the way ActivityID was defined and used to be more in line with the behavior of other Microsoft drivers [#2254](https://github.com/microsoft/mssql-jdbc/pull/2254)
15+
- - Fixed missing getters and setters for `useBulkCopyForBatchInsert` [#2277](https://github.com/microsoft/mssql-jdbc/pull/2277)
16+
- - Fixed an issue where, when using the TOP qualifier in a query, the driver returns an error concerning ParameterMetadata [#2287](https://github.com/microsoft/mssql-jdbc/pull/2287)
17+
- Fixed an issue where insert statements with missing whitespace worked correctly in regular cases, but not when using batch inserts [#2290](https://github.com/microsoft/mssql-jdbc/pull/2290)
18+
- Fixed timezone not being properly applied to Timestamps when inserted using batch insert with bulkcopy [#2291](https://github.com/microsoft/mssql-jdbc/pull/2291)
19+
- Fixed locks in IOBuffer to prevent deadlock issues that could arise [#2295](https://github.com/microsoft/mssql-jdbc/pull/2295)
20+
- Fixed an issue where, when an exception has no cause, the exception itself is passed along instead, preventing it from being lost [#2300](https://github.com/microsoft/mssql-jdbc/pull/2300)
21+
622
## [12.5.0] Preview Release
723
### Added
824
- Added connection property, `useDefaultJaasConfig`, to allow Kerberos authentication without any additional external configuration [#2147](https://github.com/microsoft/mssql-jdbc/pull/2147)
9-
- Allow calling of stored procedures directly, simplifying the procedure and improving performance [#2154](https://github.com/microsoft/mssql-jdbc/pull/2154)
25+
- Allow calling of stored procedures directly through use of new connection property `useFlexibleCallableStatements`, simplifying the procedure and improving performance [#2154](https://github.com/microsoft/mssql-jdbc/pull/2154)
1026
- Added connection property, `useDefaultGSSCredential`, to allow the driver to create GSSCredential on behalf of a user using Native GSS-API for Kerberos authentication [#2177](https://github.com/microsoft/mssql-jdbc/pull/2177)
1127
- Added Java 21 support [#2229](https://github.com/microsoft/mssql-jdbc/pull/2229)
12-
- Added connection property, `calcBigDecimalScale`, to allow the driver to calculate scale and percision from Big Decimal inputs [#2248](https://github.com/microsoft/mssql-jdbc/pull/2248)
28+
- Added connection property, `calcBigDecimalScale`, to allow the driver to calculate scale and precision from Big Decimal inputs [#2248](https://github.com/microsoft/mssql-jdbc/pull/2248)
1329
- Added a new named logger for connection open retries and idle connection resiliency reconnects [#2250](https://github.com/microsoft/mssql-jdbc/pull/2250)
1430

1531
### Changed
16-
- Changed how IBM JDK is checked for to prevent issues with OSGi environments [#2150](https://github.com/microsoft/mssql-jdbc/pull/2150)
17-
- Updated azure-security-keyvault-keys, bouncycastle, and h2 library versions [#2162](https://github.com/microsoft/mssql-jdbc/pull/2162)[#2182](https://github.com/microsoft/mssql-jdbc/pull/2182)[#2249](https://github.com/microsoft/mssql-jdbc/pull/2249)
32+
- Changed how IBM JDK is checked for to prevent issues with OSGi environments [#2150](https://github.com/microsoft/mssql-jdbc/pull/2150)[#2209](https://github.com/microsoft/mssql-jdbc/pull/2209)
33+
- Updated azure-security-keyvault-keys, bouncycastle, and h2 library versions. As well, Upgraded from `bcprov-jdk15on` and `bcpkix-jdk15on` to `bcprov-jdk18on` and `bcpkix-jdk18on` as the former is no longer being updated [#2162](https://github.com/microsoft/mssql-jdbc/pull/2162)[#2182](https://github.com/microsoft/mssql-jdbc/pull/2182)[#2249](https://github.com/microsoft/mssql-jdbc/pull/2249)
1834
- Changes to bulkcopy to allow for performance improvements when loading a large number of timestamps [#2194](https://github.com/microsoft/mssql-jdbc/pull/2194)
1935
- Added additional errors that should translate to RMFAIL [#2201](https://github.com/microsoft/mssql-jdbc/pull/2201)
20-
- Properly synchronize all calls to MSAL, preventing the driver from making extra calls and providing unneccessary dialogues [#2218](https://github.com/microsoft/mssql-jdbc/pull/2218)
21-
- Changed driver retry behavior to retry the correct number of times based on connectRetryCount [#2247](https://github.com/microsoft/mssql-jdbc/pull/2247)
36+
- Properly synchronize all calls to MSAL, preventing the driver from making extra calls and providing unnecessary dialogues [#2218](https://github.com/microsoft/mssql-jdbc/pull/2218)
37+
- Changed driver retry behavior to retry the correct number of times based on connectRetryCount. These changes were later reverted prior to the 12.6.0 release [#2247](https://github.com/microsoft/mssql-jdbc/pull/2247)[#2267](https://github.com/microsoft/mssql-jdbc/pull/2267)
2238

2339
### Fixed issues
2440
- Fix to ignore irrelevant computed columns during bulk insert [#1562](https://github.com/microsoft/mssql-jdbc/pull/1562)
25-
- Fixed an issue where signature was not properly verfied when using Java Key Store, as well as adding a new API to sign column master key metadata (and return generated signature) for use with Java Key Store and Azure Key Vault [#2160](https://github.com/microsoft/mssql-jdbc/pull/2160)
41+
- Fixed an issue where signature was not properly verified when using Java Key Store, as well as adding a new API to sign column master key metadata (and return generated signature) for use with Java Key Store and Azure Key Vault [#2160](https://github.com/microsoft/mssql-jdbc/pull/2160)
2642
- Fixed an issue where a null SQLState was returned when trying to convert a date to a long [#2185](https://github.com/microsoft/mssql-jdbc/pull/2185)
2743
- Fixed an issue where schemaPattern was not properly being escaped in SQLServerDatabaseMetadata [#2195](https://github.com/microsoft/mssql-jdbc/pull/2195)
2844
- Fixes getObject()'s erroneous conversion of DateTimeOffset to LocalDateTime [#2204](https://github.com/microsoft/mssql-jdbc/pull/2204)

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ We're now on the Maven Central Repository. Add the following to your POM file to
8181
<dependency>
8282
<groupId>com.microsoft.sqlserver</groupId>
8383
<artifactId>mssql-jdbc</artifactId>
84-
<version>12.4.1.jre11</version>
84+
<version>12.6.0.jre11</version>
8585
</dependency>
8686
```
8787
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.
@@ -92,7 +92,7 @@ To get the latest version of the driver, add the following to your POM file:
9292
<dependency>
9393
<groupId>com.microsoft.sqlserver</groupId>
9494
<artifactId>mssql-jdbc</artifactId>
95-
<version>12.4.1.jre11</version>
95+
<version>12.6.0.jre11</version>
9696
</dependency>
9797
```
9898

@@ -106,7 +106,7 @@ This project has following dependencies:
106106
Compile Time:
107107
- `com.azure:azure-security-keyvault-keys` : Microsoft Azure Client Library For KeyVault Keys (optional)
108108
- `com.azure:azure-identity` : Microsoft Azure Client Library For Identity (optional)
109-
- `org.bouncycastle:bcprov-jdk15on` : Bouncy Castle Provider for Always Encrypted with secure enclaves feature with JAVA 8 only (optional)
109+
- `org.bouncycastle:bcprov-jdk18on` : Bouncy Castle Provider for Always Encrypted with secure enclaves feature with JAVA 8 only (optional)
110110
- `com.google.code.gson:gson` : Gson for Always Encrypted with secure enclaves feature (optional)
111111

112112
Test Time:
@@ -127,7 +127,7 @@ Projects that require either of the two features need to explicitly declare the
127127
<dependency>
128128
<groupId>com.microsoft.sqlserver</groupId>
129129
<artifactId>mssql-jdbc</artifactId>
130-
<version>12.4.1.jre11</version>
130+
<version>12.6.0.jre11</version>
131131
<scope>compile</scope>
132132
</dependency>
133133

@@ -145,7 +145,7 @@ Projects that require either of the two features need to explicitly declare the
145145
<dependency>
146146
<groupId>com.microsoft.sqlserver</groupId>
147147
<artifactId>mssql-jdbc</artifactId>
148-
<version>12.4.1.jre11</version>
148+
<version>12.6.0.jre11</version>
149149
<scope>compile</scope>
150150
</dependency>
151151

@@ -172,7 +172,7 @@ When setting 'useFmtOnly' property to 'true' for establishing a connection or cr
172172
<dependency>
173173
<groupId>com.microsoft.sqlserver</groupId>
174174
<artifactId>mssql-jdbc</artifactId>
175-
<version>12.4.1.jre11</version>
175+
<version>12.6.0.jre11</version>
176176
</dependency>
177177

178178
<dependency>
@@ -212,7 +212,7 @@ Preview releases happen approximately monthly between stable releases. This give
212212
You can see what is going into a future release by monitoring [Milestones](https://github.com/Microsoft/mssql-jdbc/milestones) in the repository.
213213

214214
### Version conventions
215-
Starting with 6.0, stable versions have an even minor version. For example, 6.0, 6.2, 6.4, 7.0, 7.2, 7.4, 8.2, 8.4, 9.2, 9.4, 10.2, 11.2, 12.2, 12.4. Preview versions have an odd minor version. For example, 6.1, 6.3, 6.5, 7.1, 7.3, 8.1, 9.1, 10.1, 11.1, 12.1, 12.3, and so on.
215+
Starting with 6.0, stable versions have an even minor version. For example, 6.0, 6.2, 6.4, 7.0, 7.2, 7.4, 8.2, 8.4, 9.2, 9.4, 10.2, 11.2, 12.2, 12.4, 12.6. Preview versions have an odd minor version. For example, 6.1, 6.3, 6.5, 7.1, 7.3, 8.1, 9.1, 10.1, 11.1, 12.1, 12.3, 12.5, and so on.
216216

217217
## Contributors
218218
Special thanks to everyone who has contributed to the project.

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111

1212
apply plugin: 'java'
1313

14-
version = '12.5.0'
15-
def releaseExt = '-preview'
14+
version = '12.6.0'
15+
def releaseExt = ''
1616
def jreVersion = ""
1717
def testOutputDir = file("build/classes/java/test")
1818
def archivesBaseName = 'mssql-jdbc'

mssql-jdbc_auth_LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
MICROSOFT SOFTWARE LICENSE TERMS
2-
MICROSOFT JDBC DRIVER 12.4.0 FOR SQL SERVER
2+
MICROSOFT JDBC DRIVER 12.6.0 FOR SQL SERVER
33

44
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.
55

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<modelVersion>4.0.0</modelVersion>
66
<groupId>com.microsoft.sqlserver</groupId>
77
<artifactId>mssql-jdbc</artifactId>
8-
<version>12.5.0</version>
8+
<version>12.6.0</version>
99
<packaging>jar</packaging>
1010
<name>Microsoft JDBC Driver for SQL Server</name>
1111
<description>
@@ -51,7 +51,7 @@
5151
Default testing enabled with SQL Server 2019 (SQLv15) -->
5252
<excludedGroups>xSQLv12,xSQLv15,NTLM,MSI,reqExternalSetup,clientCertAuth,fedAuth,kerberos</excludedGroups>
5353
<!-- Use -preview for preview release, leave empty for official release. -->
54-
<releaseExt>-preview</releaseExt>
54+
<releaseExt></releaseExt>
5555
<!-- Driver Dependencies -->
5656
<org.osgi.core.version>6.0.0</org.osgi.core.version>
5757
<azure-security-keyvault-keys.version>4.7.3</azure-security-keyvault-keys.version>

src/main/java/com/microsoft/sqlserver/jdbc/SQLJdbcVersion.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77

88
final class SQLJdbcVersion {
99
static final int MAJOR = 12;
10-
static final int MINOR = 5;
10+
static final int MINOR = 6;
1111
static final int PATCH = 0;
1212
static final int BUILD = 0;
1313
/*
1414
* Used to load mssql-jdbc_auth DLL.
1515
* 1. Set to "-preview" for preview release.
1616
* 2. Set to "" (empty String) for official release.
1717
*/
18-
static final String RELEASE_EXT = "-preview";
18+
static final String RELEASE_EXT = "";
1919

2020
private SQLJdbcVersion() {
2121
throw new UnsupportedOperationException(SQLServerException.getErrString("R_notSupported"));

src/samples/adaptive/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<dependency>
1616
<groupId>com.microsoft.sqlserver</groupId>
1717
<artifactId>mssql-jdbc</artifactId>
18-
<version>12.4.0.jre11</version>
18+
<version>12.6.0.jre11</version>
1919
</dependency>
2020
</dependencies>
2121
<profiles>

src/samples/alwaysencrypted/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<dependency>
1616
<groupId>com.microsoft.sqlserver</groupId>
1717
<artifactId>mssql-jdbc</artifactId>
18-
<version>12.4.0.jre11</version>
18+
<version>12.6.0.jre11</version>
1919
</dependency>
2020
</dependencies>
2121
<profiles>

src/samples/azureactivedirectoryauthentication/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<dependency>
1515
<groupId>com.microsoft.sqlserver</groupId>
1616
<artifactId>mssql-jdbc</artifactId>
17-
<version>12.4.0.jre11</version>
17+
<version>12.6.0.jre11</version>
1818
</dependency>
1919
</dependencies>
2020
<profiles>

src/samples/connections/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<dependency>
1515
<groupId>com.microsoft.sqlserver</groupId>
1616
<artifactId>mssql-jdbc</artifactId>
17-
<version>12.4.0.jre11</version>
17+
<version>12.6.0.jre11</version>
1818
</dependency>
1919
</dependencies>
2020
<profiles>

0 commit comments

Comments
 (0)