summaryrefslogtreecommitdiff
path: root/src/main/java/com/amazon/carbonado/repo
diff options
context:
space:
mode:
authorBrian S. O'Neill <bronee@gmail.com>2008-08-12 18:09:17 +0000
committerBrian S. O'Neill <bronee@gmail.com>2008-08-12 18:09:17 +0000
commitb9165d9262e054c2e9521ed72a0aba77fd7ae9f9 (patch)
tree09882f69ecc970319f53d7c8d576d7a7e78867ed /src/main/java/com/amazon/carbonado/repo
parentcaa97449f6087174ad1970ee8058e164a35f475f (diff)
Fixed bug in JDBCCursor.skipNext which may loop infinitely.
Diffstat (limited to 'src/main/java/com/amazon/carbonado/repo')
-rw-r--r--src/main/java/com/amazon/carbonado/repo/jdbc/JDBCCursor.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/com/amazon/carbonado/repo/jdbc/JDBCCursor.java b/src/main/java/com/amazon/carbonado/repo/jdbc/JDBCCursor.java
index 585b29a..eed142a 100644
--- a/src/main/java/com/amazon/carbonado/repo/jdbc/JDBCCursor.java
+++ b/src/main/java/com/amazon/carbonado/repo/jdbc/JDBCCursor.java
@@ -135,6 +135,8 @@ class JDBCCursor<S extends Storable> extends AbstractCursor<S> {
actual++;
amount--;
mHasNext = false;
+ } else {
+ break;
}
}