From 60cf2a8a48dedbb6986f37daa64e8677a471b702 Mon Sep 17 00:00:00 2001 From: Cheena Malhotra Date: Mon, 24 Sep 2018 17:25:08 -0700 Subject: [PATCH 1/4] Update changelog for Preview Release. --- CHANGELOG.md | 10 ++++++++++ README.md | 12 +++++++++--- build.gradle | 2 +- pom.xml | 2 +- 4 files changed, 21 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ad51b2223e..00740d0cde 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,16 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) +## [7.1.1] Preview Release +### Fixed Issues +- Fixed a bug where calling length() after obtaining a stream would close the stream for Clobs/NClobs [#799](https://github.com/Microsoft/mssql-jdbc/pull/799) +- Fixed issues in BulkCopy exception handling [#801](https://github.com/Microsoft/mssql-jdbc/pull/801) +- Fixed closeable resource leaks in Junit tests [#797](https://github.com/Microsoft/mssql-jdbc/pull/797) +- Fix issues with apostrophe being passed in table name + Improvements in SQLServerParameterMetadata [#780](https://github.com/Microsoft/mssql-jdbc/pull/780) + +### Changed +- Changed error message to be thrown when data out of range for DECIMAL/NUMERIC types [#796](https://github.com/Microsoft/mssql-jdbc/pull/796) + ## [7.1.0] Preview Release ### Added - Added support for LocalDate, LocalTime and LocalDateTime to be passed as 'type' in ResultSet.getObject() [#749](https://github.com/Microsoft/mssql-jdbc/pull/749) diff --git a/README.md b/README.md index 6c304ec078..375137e46d 100644 --- a/README.md +++ b/README.md @@ -74,6 +74,7 @@ For some features (e.g. Integrated Authentication and Distributed Transactions), Don't want to compile anything? We're now on the Maven Central Repository. Add the following to your POM file to get the most stable release: + ```xml com.microsoft.sqlserver @@ -84,13 +85,15 @@ We're now on the Maven Central Repository. Add the following to your POM file to The driver can be downloaded from the [Microsoft Download Center](https://go.microsoft.com/fwlink/?linkid=868287). To get the latest preview version of the driver, add the following to your POM file: + ```xml com.microsoft.sqlserver mssql-jdbc - 7.1.0.jre10-preview + 7.1.1.jre10-preview ``` + ### Using driver as Java Module Starting from version 7.0.0, the driver Jars (jre10 and above) will expose 'Automatic-Module' as **'com.microsoft.sqlserver.jdbc'**. The supporting Jar can now be added to ModulePath to access this module. @@ -115,11 +118,12 @@ mvn dependency:tree Projects that require either of the two features need to explicitly declare the dependency in their pom file. ***For Example:*** If you are using *Azure Active Directory Authentication feature* then you need to redeclare *adal4j* dependency in your project's pom file. Please see the following snippet: + ```xml com.microsoft.sqlserver mssql-jdbc - 7.1.0.jre10-preview + 7.1.1.jre10-preview compile @@ -131,11 +135,12 @@ Projects that require either of the two features need to explicitly declare the ``` ***For Example:*** If you are using *Azure Key Vault feature* then you need to redeclare *azure-keyvault* dependency and *adal4j* dependency in your project's pom file. Please see the following snippet: + ```xml com.microsoft.sqlserver mssql-jdbc - 7.1.0.jre10-preview + 7.1.1.jre10-preview compile @@ -151,6 +156,7 @@ Projects that require either of the two features need to explicitly declare the 1.0.0 ``` + ***Please note*** as of the v6.2.2, the way to construct a `SQLServerColumnEncryptionAzureKeyVaultProvider` object has changed. Please refer to this [Wiki](https://github.com/Microsoft/mssql-jdbc/wiki/New-Constructor-Definition-for-SQLServerColumnEncryptionAzureKeyVaultProvider-after-6.2.2-Release) page for more information. ## Guidelines for Creating Pull Requests diff --git a/build.gradle b/build.gradle index 6109f6b97c..34c86772c9 100644 --- a/build.gradle +++ b/build.gradle @@ -10,7 +10,7 @@ apply plugin: 'java' -version = '7.1.1-SNAPSHOT' +version = '7.1.1' def jreVersion = "" def testOutputDir = file("build/classes/java/test") def archivesBaseName = 'mssql-jdbc' diff --git a/pom.xml b/pom.xml index 72a59bc105..f6de796709 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ com.microsoft.sqlserver mssql-jdbc - 7.1.1-SNAPSHOT + 7.1.1 jar Microsoft JDBC Driver for SQL Server From 4efab8a6c4a5a65618a81f8f278d6ff8e2b0078e Mon Sep 17 00:00:00 2001 From: Cheena Malhotra Date: Tue, 25 Sep 2018 11:50:25 -0700 Subject: [PATCH 2/4] Quick fix --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 00740d0cde..9d36618e81 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,7 +8,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) - Fixed a bug where calling length() after obtaining a stream would close the stream for Clobs/NClobs [#799](https://github.com/Microsoft/mssql-jdbc/pull/799) - Fixed issues in BulkCopy exception handling [#801](https://github.com/Microsoft/mssql-jdbc/pull/801) - Fixed closeable resource leaks in Junit tests [#797](https://github.com/Microsoft/mssql-jdbc/pull/797) -- Fix issues with apostrophe being passed in table name + Improvements in SQLServerParameterMetadata [#780](https://github.com/Microsoft/mssql-jdbc/pull/780) +- Fixed issues with apostrophe being passed in table name + Improvements in SQLServerParameterMetadata [#780](https://github.com/Microsoft/mssql-jdbc/pull/780) ### Changed - Changed error message to be thrown when data out of range for DECIMAL/NUMERIC types [#796](https://github.com/Microsoft/mssql-jdbc/pull/796) From 8cc134d7a9344a80079d6975b50629184612aff4 Mon Sep 17 00:00:00 2001 From: Cheena Malhotra Date: Tue, 25 Sep 2018 12:35:58 -0700 Subject: [PATCH 3/4] Split changes --- CHANGELOG.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9d36618e81..e8a99bafcd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,9 +6,10 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) ## [7.1.1] Preview Release ### Fixed Issues - Fixed a bug where calling length() after obtaining a stream would close the stream for Clobs/NClobs [#799](https://github.com/Microsoft/mssql-jdbc/pull/799) -- Fixed issues in BulkCopy exception handling [#801](https://github.com/Microsoft/mssql-jdbc/pull/801) +- Fixed issues in Bulk Copy exception handling [#801](https://github.com/Microsoft/mssql-jdbc/pull/801) - Fixed closeable resource leaks in Junit tests [#797](https://github.com/Microsoft/mssql-jdbc/pull/797) -- Fixed issues with apostrophe being passed in table name + Improvements in SQLServerParameterMetadata [#780](https://github.com/Microsoft/mssql-jdbc/pull/780) +- Fixed issues with apostrophe being passed in table name [#780](https://github.com/Microsoft/mssql-jdbc/pull/780) +- Fixed statement leaks and exception possibilities in SQLServerParameterMetadata [#780](https://github.com/Microsoft/mssql-jdbc/pull/780) ### Changed - Changed error message to be thrown when data out of range for DECIMAL/NUMERIC types [#796](https://github.com/Microsoft/mssql-jdbc/pull/796) From bc02838e445c3f303e50c842e98f583f00d06619 Mon Sep 17 00:00:00 2001 From: Cheena Malhotra Date: Tue, 25 Sep 2018 12:38:13 -0700 Subject: [PATCH 4/4] Minor fix --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e8a99bafcd..b01ab74e4d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) - Fixed issues in Bulk Copy exception handling [#801](https://github.com/Microsoft/mssql-jdbc/pull/801) - Fixed closeable resource leaks in Junit tests [#797](https://github.com/Microsoft/mssql-jdbc/pull/797) - Fixed issues with apostrophe being passed in table name [#780](https://github.com/Microsoft/mssql-jdbc/pull/780) -- Fixed statement leaks and exception possibilities in SQLServerParameterMetadata [#780](https://github.com/Microsoft/mssql-jdbc/pull/780) +- Fixed statement leaks and improved exception handling in SQLServerParameterMetadata [#780](https://github.com/Microsoft/mssql-jdbc/pull/780) ### Changed - Changed error message to be thrown when data out of range for DECIMAL/NUMERIC types [#796](https://github.com/Microsoft/mssql-jdbc/pull/796)