Author: shawkins
Date: 2011-11-15 13:08:40 -0500 (Tue, 15 Nov 2011)
New Revision: 3651
Modified:
trunk/client/src/main/java/org/teiid/jdbc/ResultSetImpl.java
Log:
TEIID-1830 correcting the asynch submitNext logic
Modified: trunk/client/src/main/java/org/teiid/jdbc/ResultSetImpl.java
===================================================================
--- trunk/client/src/main/java/org/teiid/jdbc/ResultSetImpl.java 2011-11-15 17:40:20 UTC
(rev 3650)
+++ trunk/client/src/main/java/org/teiid/jdbc/ResultSetImpl.java 2011-11-15 18:08:40 UTC
(rev 3651)
@@ -238,7 +238,7 @@
if (hasNext != null) {
return StatementImpl.booleanFuture(next());
}
- ResultsFuture<ResultsMessage> pendingResult =
submitRequestBatch(batchResults.getHighestRowNumber() + 1);
+ ResultsFuture<ResultsMessage> pendingResult =
submitRequestBatch(batchResults.getCurrentRowNumber() + 1);
final ResultsFuture<Boolean> result = new ResultsFuture<Boolean>();
pendingResult.addCompletionListener(new
ResultsFuture.CompletionListener<ResultsMessage>() {
@Override
Show replies by date