summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian S. O'Neill <bronee@gmail.com>2006-12-27 01:21:37 +0000
committerBrian S. O'Neill <bronee@gmail.com>2006-12-27 01:21:37 +0000
commit4172b31763ca7bf32cfe39637d039913988322fd (patch)
treea5d682a1301697d23e3fa0e415b3fb04b228d034
parentaf99f4bea0dc8eec0bb6f9190ac5d316bd9dcb68 (diff)
Fixed bug in JDBC repository which caused cursor skip to skip everything.
-rw-r--r--RELEASE-NOTES.txt4
-rw-r--r--src/main/java/com/amazon/carbonado/repo/jdbc/JDBCCursor.java1
2 files changed, 5 insertions, 0 deletions
diff --git a/RELEASE-NOTES.txt b/RELEASE-NOTES.txt
index 6e71fbc..f520cf7 100644
--- a/RELEASE-NOTES.txt
+++ b/RELEASE-NOTES.txt
@@ -1,6 +1,10 @@
Carbonado change history
------------------------
+1.1-BETA8 to 1.1-BETA9
+-------------------------------
+- Fixed bug in JDBC repository which caused cursor skip to skip everything.
+
1.1-BETA7 to 1.1-BETA8
-------------------------------
- Removed call to get index metadata in JDBC repository. Oracle bug causes a
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 f0a3752..fc9430d 100644
--- a/src/main/java/com/amazon/carbonado/repo/jdbc/JDBCCursor.java
+++ b/src/main/java/com/amazon/carbonado/repo/jdbc/JDBCCursor.java
@@ -117,6 +117,7 @@ class JDBCCursor<S extends Storable> extends AbstractCursor<S> {
try {
if (rs.next()) {
actual++;
+ amount--;
} else {
mHasNext = false;
close();