Commit f8149af
authored
fix: getting resultset metadata twice could skip row (googleapis#323)
* fix: getting resultset metadata twice could skip row
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 googleapis#322
* test: add test for getMetaData twice1 parent 9a32100 commit f8149af
File tree
2 files changed
+28
-1
lines changed- src
- main/java/com/google/cloud/spanner/jdbc
- test/java/com/google/cloud/spanner/jdbc
2 files changed
+28
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
547 | 547 | | |
548 | 548 | | |
549 | 549 | | |
550 | | - | |
| 550 | + | |
551 | 551 | | |
552 | 552 | | |
553 | 553 | | |
| |||
Lines changed: 27 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
802 | 803 | | |
803 | 804 | | |
804 | 805 | | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
805 | 832 | | |
806 | 833 | | |
807 | 834 | | |
| |||
0 commit comments