From a37f5aca6196e2c047fbda2705f90e23e44ad419 Mon Sep 17 00:00:00 2001 From: mdb Date: Sun, 10 Feb 2002 04:17:49 +0000 Subject: [PATCH] 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 --- .../src/java/com/samskivert/jdbc/jora/Cursor.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/projects/samskivert/src/java/com/samskivert/jdbc/jora/Cursor.java b/projects/samskivert/src/java/com/samskivert/jdbc/jora/Cursor.java index b581211a..bfb3f12d 100644 --- a/projects/samskivert/src/java/com/samskivert/jdbc/jora/Cursor.java +++ b/projects/samskivert/src/java/com/samskivert/jdbc/jora/Cursor.java @@ -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; }