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

fix: getting resultset metadata twice could skip row #323

Merged
merged 2 commits into from Jan 17, 2021

Conversation

olavloite
Copy link
Collaborator

If the client application would call ResultSet#getMetaData() more than once before calling ResultSet#next(), the ResultSet would skip a row when the rows would be consumed.

Fixes #322

If the client application would call ResultSet#getMetaData() more than once
**before** calling ResultSet#next(), the ResultSet would skip a row when the
rows would be consumed.

Fixes #322
@olavloite olavloite requested a review from a team as a code owner January 16, 2021 20:21
@product-auto-label product-auto-label bot added the api: spanner Issues related to the googleapis/java-spanner-jdbc API. label Jan 16, 2021
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Jan 16, 2021
@codecov
Copy link

codecov bot commented Jan 16, 2021

Codecov Report

Merging #323 (3992298) into master (e1cd90d) will increase coverage by 0.05%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #323      +/-   ##
============================================
+ Coverage     70.93%   70.99%   +0.05%     
- Complexity     1105     1107       +2     
============================================
  Files            24       24              
  Lines          3423     3423              
  Branches        526      526              
============================================
+ Hits           2428     2430       +2     
+ Misses          780      778       -2     
  Partials        215      215              
Impacted Files Coverage Δ Complexity Δ
...a/com/google/cloud/spanner/jdbc/JdbcResultSet.java 74.79% <100.00%> (+0.54%) 188.00 <0.00> (+2.00)

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 e1cd90d...3992298. Read the comment docs.

@thiagotnunes thiagotnunes merged commit f8149af into master Jan 17, 2021
@thiagotnunes thiagotnunes deleted the resultset-metadata-skips-row branch January 17, 2021 23:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: spanner Issues related to the googleapis/java-spanner-jdbc API. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Calling ResultSet#getMetaData() more than once before calling ResultSet#next() skips a row
2 participants