Skip to content

Commit

Permalink
Merge branch 'hotfix/last_bug' into 'master'
Browse files Browse the repository at this point in the history
Fix  #ODPS-35337

last应该回到最后一行有效行,UT 等会补到 Merge Request #18 中

See merge request !22
  • Loading branch information
lyman committed Sep 7, 2015
2 parents 4914121 + b574816 commit c9ab3e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/aliyun/odps/jdbc/OdpsQueryResultSet.java
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ public boolean isLast() throws SQLException {
@Override
public boolean last() throws SQLException {
checkClosed();
cursorRow = totalRows;
cursorRow = totalRows - 1;
return totalRows > 0;
}

Expand Down

0 comments on commit c9ab3e5

Please sign in to comment.