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:
mdb
2002-02-10 04:17:49 +00:00
parent 3c3648a4af
commit a37f5aca61
@@ -36,9 +36,9 @@ public class Cursor {
public Object next()
throws SQLException
{
// if we closed everything up after the last call to next(), we'll
// have a null table here and should bail immediately
if (table == null) {
// if we closed everything up after the last call to next(),
// nTables will be zero here and we should bail immediately
if (nTables == 0) {
return null;
}