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

Changes in preparation for 6.5.1 preview release #670

Merged
merged 18 commits into from
Apr 6, 2018

Conversation

rene-ye
Copy link
Member

@rene-ye rene-ye commented Apr 6, 2018

Updates to POM, README, CHANGELOG, and Driver version.

rene-ye and others added 13 commits February 2, 2018 15:46
To help debug an irreproducable/random mismatch error if it occurs in the future.
…#666)

* Dont throw exception for colmetadata token

* Adding a comment

* Update comment

* Adding a warning message

* remove ignoreLengthPrefixedToken
* Added more information to error messages

To help debug an irreproducable/random mismatch error if it occurs in the future.

* Revert "Added information to error message"

This reverts commit 25301e6.

* Fix for microsoft#659

Added error handling logic for special cases.

* Read message length

Read the message length instead of reading until terminating character

* Unsigned byte update

Message length is an unsigned byte, converting before using.

* Removed clunky hex conversions

convert the byte straight to an int and use existing constants instead of making new ones

* Narrowed trigger conditions

fixed an issue where column names who had the hex token 'AA' would cause an error to be thrown.

* Spacing fixes

* Added test case

* spacing adjustment

* Edited test drop procedures

Changed IF EXISTS DROP commands to be compatible with sql server 2008

* github spacing misalignment fixes

* Changed test condition

now only runs on compatible database or higher

* Removed error check

Removed a previous implementation in favor of one that changes the TDS parser

* tdsreader change

* removing test for now

* enabled tests

* github spacing fix

* removed array import

* removed "arrays" instead of "array"

* spacing changes
Implement a more generic and compatible test in the future
Used in removed test
@codecov-io
Copy link

codecov-io commented Apr 6, 2018

Codecov Report

Merging #670 into dev will decrease coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff              @@
##                dev     #670      +/-   ##
============================================
- Coverage     48.18%   48.16%   -0.02%     
- Complexity     2575     2577       +2     
============================================
  Files           113      113              
  Lines         26587    26587              
  Branches       4436     4436              
============================================
- Hits          12810    12806       -4     
- Misses        11645    11653       +8     
+ Partials       2132     2128       -4
Flag Coverage Δ Complexity Δ
#JDBC42 48.08% <ø> (-0.02%) 2573 <ø> (+3)
#JDBC43 48.04% <ø> (+0.06%) 2571 <ø> (+3) ⬆️
Impacted Files Coverage Δ Complexity Δ
...a/com/microsoft/sqlserver/jdbc/SQLJdbcVersion.java 0% <ø> (ø) 0 <0> (ø) ⬇️
...om/microsoft/sqlserver/jdbc/ReaderInputStream.java 44.94% <0%> (-1.13%) 16% <0%> (-1%)
...in/java/com/microsoft/sqlserver/jdbc/IOBuffer.java 54.63% <0%> (-0.67%) 0% <0%> (ø)
...ncurrentlinkedhashmap/ConcurrentLinkedHashMap.java 38.54% <0%> (-0.65%) 42% <0%> (-1%)
...m/microsoft/sqlserver/jdbc/SQLServerResultSet.java 33.14% <0%> (+0.07%) 245% <0%> (+1%) ⬆️
...rc/main/java/com/microsoft/sqlserver/jdbc/dtv.java 63.47% <0%> (+0.36%) 0% <0%> (ø) ⬇️
...m/microsoft/sqlserver/jdbc/SQLServerException.java 77.23% <0%> (+1.62%) 30% <0%> (+1%) ⬆️
...rc/main/java/com/microsoft/sqlserver/jdbc/DDC.java 45.41% <0%> (+2.23%) 108% <0%> (+3%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 501f2b8...30927f1. Read the comment docs.

peterbae
peterbae previously approved these changes Apr 6, 2018
@rene-ye rene-ye changed the title Change in preperation for 6.5.1 preview release Changes in preperation for 6.5.1 preview release Apr 6, 2018
@cheenamalhotra cheenamalhotra changed the title Changes in preperation for 6.5.1 preview release Changes in preparation for 6.5.1 preview release Apr 6, 2018
CHANGELOG.md Outdated
- Test cases for Date, Time, and Datetime2 data types. [#558](https://github.com/Microsoft/mssql-jdbc/pull/558)

### Fixed Issues
- Fixed an issue where column type was not being returned correctly for spatial data types [#657](https://github.com/Microsoft/mssql-jdbc/pull/657)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Fixed an issue where ResultSetMetadata returned incorrect columnType for Geometry and Geography data types."

CHANGELOG.md Outdated

### Fixed Issues
- Fixed an issue where column type was not being returned correctly for spatial data types [#657](https://github.com/Microsoft/mssql-jdbc/pull/657)
- Fixed unnecessarily creating 2 connections when multiSubnetFailover is true [#662](https://github.com/Microsoft/mssql-jdbc/pull/662)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Fixed server side CPU Affinity problems caused by uneven connection distribution across NUMA Nodes when multiSubnetFailover is true"

CHANGELOG.md Outdated
### Fixed Issues
- Fixed an issue where column type was not being returned correctly for spatial data types [#657](https://github.com/Microsoft/mssql-jdbc/pull/657)
- Fixed unnecessarily creating 2 connections when multiSubnetFailover is true [#662](https://github.com/Microsoft/mssql-jdbc/pull/662)
- Fixed an issue where TDS Packets weren't being completely parsed after reading rows [#664](https://github.com/Microsoft/mssql-jdbc/pull/664)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Fixed an issue where Driver wasn't parsing TDS Packets completely to capture exceptions raised inside executed stored procedures"

CHANGELOG.md Outdated
- Fixed an issue where setMaxRows() would throw an exception if showplan_text is on [#666](https://github.com/Microsoft/mssql-jdbc/pull/666)

### Changed
- Removed unused imports which force users to import the ADAL4J library [#652](https://github.com/Microsoft/mssql-jdbc/pull/652)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

*forced

CHANGELOG.md Outdated
- Fixed an issue where column type was not being returned correctly for spatial data types [#657](https://github.com/Microsoft/mssql-jdbc/pull/657)
- Fixed unnecessarily creating 2 connections when multiSubnetFailover is true [#662](https://github.com/Microsoft/mssql-jdbc/pull/662)
- Fixed an issue where TDS Packets weren't being completely parsed after reading rows [#664](https://github.com/Microsoft/mssql-jdbc/pull/664)
- Fixed an issue where setMaxRows() would throw an exception if showplan_text is on [#666](https://github.com/Microsoft/mssql-jdbc/pull/666)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The issue isn't really exception from setMaxRows..

It should rather be: "Fixed an issue where driver throws exception when using setMaxRows() followed by query execution when SHOWPLAN_TEXT is ON"

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not really. Driver was throwing an exception on setMaxRows().

Copy link
Member

@cheenamalhotra cheenamalhotra Apr 6, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's still change it, as the internal call of setMaxRows (that throws exception) is done when client calls executeQuery(). So to the client app, its exception from query execution.

@cheenamalhotra cheenamalhotra merged commit 03c6617 into microsoft:dev Apr 6, 2018
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.

5 participants