try { row = mc.fetch(stmt); rowNum++;  if (row != null) copyToSQLVAR(row);  return (row != null); } catch (GDSException ge) { throw new SQLException("fetch problem: " + ge.toString()); }
if (isEmpty) return false; else if (nextRow == null || (fbStatement.maxRows!=0 && rowNum==fbStatement.maxRows)){ isAfterLast = true; rowNum=0; return false; } else { try { row = nextRow; nextRow = c.fetch(stmt); rowNum++; copyToSQLVAR(row); if(rowNum==1) isFirst=true; if((nextRow==null) || (fbStatement.maxRows!=0 && rowNum==fbStatement.maxRows)) isLast = true; return true; } catch (GDSException ge) { throw new SQLException("fetch problem: " + ge.toString()); } }
        public boolean next() throws SQLException {            log.debug("FBResultSet next - FBStatementFetcher");            try {                row = mc.fetch(stmt);                rowNum++;                if (row != null)                    copyToSQLVAR(row);                return (row != null);            }            catch (GDSException ge) {                throw new SQLException("fetch problem: " + ge.toString());            }        }