Skip to content

Blob fix#595

Merged
rene-ye merged 27 commits intomicrosoft:devfrom
rene-ye:blobStream
Mar 6, 2018
Merged

Blob fix#595
rene-ye merged 27 commits intomicrosoft:devfrom
rene-ye:blobStream

Conversation

@rene-ye
Copy link
Copy Markdown
Member

@rene-ye rene-ye commented Jan 3, 2018

Fills the contents of a blob and makes it availible for use after the RS or statement has been closed. Addresses the TDS issue from #567.

Fills the contents of a blob and makes it availible for use after the RS or statement has been closed. Addresses the TDS issue from microsoft#567.
@codecov-io
Copy link
Copy Markdown

codecov-io commented Jan 3, 2018

Codecov Report

Merging #595 into dev will increase coverage by 0.19%.
The diff coverage is 65%.

Impacted file tree graph

@@             Coverage Diff              @@
##                dev     #595      +/-   ##
============================================
+ Coverage     46.37%   46.57%   +0.19%     
- Complexity     2216     2228      +12     
============================================
  Files           109      109              
  Lines         25411    25431      +20     
  Branches       4188     4190       +2     
============================================
+ Hits          11784    11844      +60     
+ Misses        11602    11548      -54     
- Partials       2025     2039      +14
Flag Coverage Δ Complexity Δ
#JDBC42 46.36% <65%> (+0.07%) 2220 <8> (+9) ⬆️
#JDBC43 46.43% <65%> (+0.21%) 2224 <8> (+15) ⬆️
Impacted Files Coverage Δ Complexity Δ
...va/com/microsoft/sqlserver/jdbc/SQLServerBlob.java 34.19% <60%> (+0.68%) 18 <2> (+2) ⬆️
...m/microsoft/sqlserver/jdbc/SQLServerResultSet.java 33.27% <66.66%> (+0.89%) 246 <6> (+8) ⬆️
...om/microsoft/sqlserver/jdbc/ReaderInputStream.java 42.69% <0%> (-2.25%) 14% <0%> (-2%)
...om/microsoft/sqlserver/jdbc/SQLServerBulkCopy.java 52.67% <0%> (+0.06%) 239% <0%> (ø) ⬇️
...rc/main/java/com/microsoft/sqlserver/jdbc/dtv.java 63.2% <0%> (+0.24%) 0% <0%> (ø) ⬇️
...in/java/com/microsoft/sqlserver/jdbc/IOBuffer.java 54.33% <0%> (+0.59%) 0% <0%> (ø) ⬇️
...rc/main/java/com/microsoft/sqlserver/jdbc/DDC.java 44.92% <0%> (+0.67%) 105% <0%> (+2%) ⬆️
...ncurrentlinkedhashmap/ConcurrentLinkedHashMap.java 39.4% <0%> (+0.85%) 43% <0%> (+1%) ⬆️
...m/microsoft/sqlserver/jdbc/SQLServerException.java 76.85% <0%> (+1.65%) 29% <0%> (+1%) ⬆️

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 923a6f4...152e71b. Read the comment docs.

Fix to issue microsoft#611, where calling length() would close the stream.
rene-ye and others added 7 commits February 22, 2018 13:18
removed arraylist to avoid costly traversal. Blobs now fill anytime the resultset moves its cursor.
added tests which specifically test blob streams and behavior after the RS is closed.
This reverts commit bc074f2, reversing
changes made to 19e8339.
No longer fills blobs on every checkClosed() call. Only attempts to fill them in scenarios where the cursor moves or another change of state which causes the RS to lose its active stream.
@rene-ye rene-ye requested a review from peterbae February 23, 2018 18:25
wasNull() moves the cursor for some reason, need to fill blobs.
@rene-ye rene-ye added this to the 6.5.0 milestone Feb 27, 2018
@ulvii ulvii self-requested a review February 28, 2018 16:46
testing expected behavior if users release a blob() object
@eacarvalho
Copy link
Copy Markdown

Hi all,
Please, I'd like to know if there is an expected date to release this pull request. It will be in the 6.5.0 release? Actually the current version is 6.4.0.
Thanks a lot.

@rene-ye
Copy link
Copy Markdown
Member Author

rene-ye commented Mar 1, 2018

This PR will be in 6.5.0-preview, which will be released sometime in March, when ready.

@Lonzak
Copy link
Copy Markdown

Lonzak commented Aug 6, 2021

I have a question: I don't see a final release of 6.5. Did all the changes of 6.5 went into version 7.0?

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.

6 participants