Mercurial > hg > monetdb-java
diff src/main/java/nl/cwi/monetdb/jdbc/MonetStatement.java @ 377:8a813f5cef1b
Extend StartOfHeaderParser with method getNextAsLong() and change type of tuplecount to long.
author | Martin van Dinther <martin.van.dinther@monetdbsolutions.com> |
---|---|
date | Fri, 25 Sep 2020 18:51:58 +0200 (2020-09-25) |
parents | ffdc7b0e102d |
children | 02f353f62abe |
line wrap: on
line diff
--- a/src/main/java/nl/cwi/monetdb/jdbc/MonetStatement.java +++ b/src/main/java/nl/cwi/monetdb/jdbc/MonetStatement.java @@ -1544,13 +1544,13 @@ final class MonetVirtualResultSet extend // first calculate what the JDBC row is if (row < 0) { // calculate the negatives... - row = tupleCount + row + 1; + row = (int) tupleCount + row + 1; } // now place the row not farther than just before or after the result if (row < 0) row = 0; // before first else if (row > tupleCount + 1) - row = tupleCount + 1; // after last + row = (int) tupleCount + 1; // after last // store it curRow = row;