We can't look for null 'table', because that might extraneously reference
some not-actually-derived table. We need to be looking at nTables because that's the real indicator of whether or not there are more derived tables to be looking at. git-svn-id: https://samskivert.googlecode.com/svn/trunk@571 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -36,9 +36,9 @@ public class Cursor {
|
|||||||
public Object next()
|
public Object next()
|
||||||
throws SQLException
|
throws SQLException
|
||||||
{
|
{
|
||||||
// if we closed everything up after the last call to next(), we'll
|
// if we closed everything up after the last call to next(),
|
||||||
// have a null table here and should bail immediately
|
// nTables will be zero here and we should bail immediately
|
||||||
if (table == null) {
|
if (nTables == 0) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user